Struct wgpu::DepthBiasState[][src]

pub struct DepthBiasState { pub constant: i32, pub slope_scale: f32, pub clamp: f32, }

Describes the biasing setting for the depth target.


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).


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 Copy 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

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Downcast<T> for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T