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<'de> Deserialize<'de> for CompareFunction
impl<'de> Deserialize<'de> for CompareFunction
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CompareFunction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<CompareFunction, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Hash for CompareFunction
impl Hash for CompareFunction
impl PartialEq<CompareFunction> for CompareFunction
impl PartialEq<CompareFunction> for CompareFunction
impl Serialize for CompareFunction
impl Serialize for CompareFunction
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.