Struct vulkano::pipeline::graphics::rasterization::DepthBiasState
source · pub struct DepthBiasState {
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 multiplied to every depth value.
The default value is 1.0
.
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.
The default value is 0.0
.
slope_factor: f32
A scalar factor to multiply with a fragment’s slope in depth bias calculations.
The default value is 1.0
.
Trait Implementations§
source§impl Clone for DepthBiasState
impl Clone for DepthBiasState
source§fn clone(&self) -> DepthBiasState
fn clone(&self) -> DepthBiasState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DepthBiasState
impl Debug for DepthBiasState
source§impl Default for DepthBiasState
impl Default for DepthBiasState
impl Copy for DepthBiasState
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more