Enum nannou::wgpu::CompareFunction [−]
#[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
impl CompareFunction
impl CompareFunction
pub fn needs_ref_value(self) -> bool
pub fn needs_ref_value(self) -> bool
Returns true if the comparison depends on the reference value.
Trait Implementations
impl Clone for CompareFunction
impl Clone for CompareFunction
pub fn clone(&self) -> CompareFunction
pub fn clone(&self) -> CompareFunction
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for CompareFunction
impl Debug for CompareFunction
impl Hash for CompareFunction
impl Hash for CompareFunction
impl PartialEq<CompareFunction> for CompareFunction
impl PartialEq<CompareFunction> for CompareFunction
impl Copy for CompareFunction
impl Eq for CompareFunction
impl StructuralEq for CompareFunction
impl StructuralPartialEq for CompareFunction
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
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V