logo
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 device API version must be at least 1.3, or 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 device API version must be at least 1.3, or the extended_dynamic_state feature must be enabled on the device.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Creates a DepthBoundsState with no dynamic state and the bounds set to 0.0..=1.0.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.