Struct vulkano::pipeline::graphics::depth_stencil::DepthBoundsState
source · [−]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
sourceimpl Clone for DepthBoundsState
impl Clone for DepthBoundsState
sourcefn clone(&self) -> DepthBoundsState
fn clone(&self) -> DepthBoundsState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DepthBoundsState
impl Debug for DepthBoundsState
sourceimpl Default for DepthBoundsState
impl Default for DepthBoundsState
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more