#[non_exhaustive]
#[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 (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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
impl Copy for CompareOp
impl Eq for CompareOp
impl StructuralEq for CompareOp
impl StructuralPartialEq for CompareOp
Auto Trait Implementations
impl RefUnwindSafe for CompareOp
impl Send for CompareOp
impl Sync for CompareOp
impl Unpin for CompareOp
impl UnwindSafe for CompareOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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