Struct vulkano::pipeline::graphics::depth_stencil::DepthState
source · [−]pub struct DepthState {
pub enable_dynamic: bool,
pub write_enable: StateMode<bool>,
pub compare_op: StateMode<CompareOp>,
}
Expand description
The state in a graphics pipeline describing how the depth test should behave when enabled.
Fields
enable_dynamic: bool
Sets whether depth testing should be enabled and disabled dynamically. If set to false
,
depth testing is always enabled.
If set to true
, the device API version must be at least 1.3, or the
extended_dynamic_state
feature must be
enabled on the device.
write_enable: StateMode<bool>
Sets whether the value in the depth buffer will be updated when the depth test succeeds.
If set to Dynamic
, the device API version must be at least 1.3, or the
extended_dynamic_state
feature must be
enabled on the device.
compare_op: StateMode<CompareOp>
Comparison operation to use between the depth value of each incoming fragment and the depth value currently in the depth buffer.
If set to Dynamic
, the device API version must be at least 1.3, or the
extended_dynamic_state
feature must be
enabled on the device.
Trait Implementations
sourceimpl Clone for DepthState
impl Clone for DepthState
sourcefn clone(&self) -> DepthState
fn clone(&self) -> DepthState
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more