Struct vulkano::pipeline::graphics::depth_stencil::DepthState
source · pub struct DepthState {
pub write_enable: bool,
pub compare_op: CompareOp,
}
Expand description
The state in a graphics pipeline describing how the depth test should behave when enabled.
Fields§
§write_enable: bool
Sets whether the value in the depth buffer will be updated when the depth test succeeds.
The default value is false
.
compare_op: CompareOp
Comparison operation to use between the depth value of each incoming fragment and the depth value currently in the depth buffer.
The default value is CompareOp::Always
.
Implementations§
source§impl DepthState
impl DepthState
Trait Implementations§
source§impl Clone for DepthState
impl Clone for DepthState
source§fn clone(&self) -> DepthState
fn clone(&self) -> DepthState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DepthState
impl Debug for DepthState
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more