logo
pub struct DepthBias {
    pub constant_factor: f32,
    pub clamp: f32,
    pub slope_factor: f32,
}
Expand description

The values to use for depth biasing.

Fields

constant_factor: f32

Specifies a constant factor to be added to every depth value.

clamp: f32

The maximum (or minimum) depth bias of a fragment.

Setting this to a value other than 0.0 requires the depth_bias_clamp feature to be enabled on the device.

slope_factor: f32

A scalar factor applied to a fragment’s slope in depth bias calculations.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.