Struct vulkano::pipeline::graphics::depth_stencil::DepthState [−][src]
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
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
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
extended_dynamic_state
feature must be
enabled on the device.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DepthState
impl Send for DepthState
impl Sync for DepthState
impl Unpin for DepthState
impl UnwindSafe for DepthState
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.