Struct vulkano::pipeline::graphics::depth_stencil::DepthBoundsState [−][src]
pub struct DepthBoundsState {
pub enable_dynamic: bool,
pub bounds: StateMode<RangeInclusive<f32>>,
}
Expand description
The state in a graphics pipeline describing how the depth bounds test should behave when enabled.
Fields
enable_dynamic: bool
Sets whether depth bounds testing should be enabled and disabled dynamically. If set to
false
, depth bounds testing is always enabled.
If set to true
, the
extended_dynamic_state
feature must be
enabled on the device.
bounds: StateMode<RangeInclusive<f32>>
The minimum and maximum depth values to use for the test. Fragments with values outside this range are discarded.
If set to Dynamic
, the
extended_dynamic_state
feature must be
enabled on the device.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DepthBoundsState
impl Send for DepthBoundsState
impl Sync for DepthBoundsState
impl Unpin for DepthBoundsState
impl UnwindSafe for DepthBoundsState
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.