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
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 DepthState
impl Debug for DepthState
sourceimpl Default for DepthState
impl Default for DepthState
impl Copy for DepthState
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
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