Enum vulkano::pipeline::graphics::depth_stencil::CompareOp [−][src]
#[repr(i32)]
pub enum CompareOp {
Never,
Less,
Equal,
LessOrEqual,
Greater,
NotEqual,
GreaterOrEqual,
Always,
}
Expand description
Specifies how two values should be compared to decide whether a test passes or fails.
Used for both depth testing and stencil testing.
Variants
Never
The test never passes.
Less
The test passes if value < reference_value
.
Equal
The test passes if value == reference_value
.
LessOrEqual
The test passes if value <= reference_value
.
Greater
The test passes if value > reference_value
.
NotEqual
The test passes if value != reference_value
.
GreaterOrEqual
The test passes if value >= reference_value
.
Always
The test always passes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompareOp
impl UnwindSafe for CompareOp
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.