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
Auto Trait Implementations
impl RefUnwindSafe for DepthBias
impl Send for DepthBias
impl Sync for DepthBias
impl Unpin for DepthBias
impl UnwindSafe for DepthBias
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more