Struct wgpu::DepthBiasState[][src]

#[repr(C)]pub struct DepthBiasState {
    pub constant: i32,
    pub slope_scale: f32,
    pub clamp: f32,
}

Describes the biasing setting for the depth target.

Fields

constant: i32

Constant depth biasing factor, in basic units of the depth format.

slope_scale: f32

Slope depth biasing factor.

clamp: f32

Depth bias clamp value (absolute).

Implementations

impl DepthBiasState[src]

pub fn is_enabled(&self) -> bool[src]

Returns true if the depth biasing is enabled.

Trait Implementations

impl Clone for DepthBiasState[src]

impl Debug for DepthBiasState[src]

impl Default for DepthBiasState[src]

impl<'de> Deserialize<'de> for DepthBiasState[src]

impl PartialEq<DepthBiasState> for DepthBiasState[src]

impl Serialize for DepthBiasState[src]

impl StructuralPartialEq for DepthBiasState[src]

Auto Trait Implementations

impl RefUnwindSafe for DepthBiasState

impl Send for DepthBiasState

impl Sync for DepthBiasState

impl Unpin for DepthBiasState

impl UnwindSafe for DepthBiasState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T[src]