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
Function never passes
Function passes if new value less than existing value
Function passes if new value is equal to existing value
Function passes if new value is less than or equal to existing value
Function passes if new value is greater than existing value
Function passes if new value is not equal to existing value
Function passes if new value is greater than or equal to existing value
Function always passes
Implementations
Returns true if the comparison depends on the reference value.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompareFunctionimpl Send for CompareFunctionimpl Sync for CompareFunctionimpl Unpin for CompareFunctionimpl UnwindSafe for CompareFunctionBlanket Implementations
Mutably borrows from an owned value. Read more