Enum wgpu_types::CompareFunction [−][src]
#[repr(C)]
pub enum CompareFunction {
Never,
Less,
Equal,
LessEqual,
Greater,
NotEqual,
GreaterEqual,
Always,
}
Expand description
Comparison function used for depth and stencil operations.
Variants
Never
Function never passes
Less
Function passes if new value less than existing value
Equal
Function passes if new value is equal to existing value
LessEqual
Function passes if new value is less than or equal to existing value
Greater
Function passes if new value is greater than existing value
NotEqual
Function passes if new value is not equal to existing value
GreaterEqual
Function passes if new value is greater than or equal to existing value
Always
Function always passes
Implementations
Returns true if the comparison depends on the reference value.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompareFunction
impl Send for CompareFunction
impl Sync for CompareFunction
impl Unpin for CompareFunction
impl UnwindSafe for CompareFunction
Blanket Implementations
Mutably borrows from an owned value. Read more