pub enum CompareFunction {
Less,
LessEqual,
Greater,
GreaterEqual,
Equal,
NotEqual,
Always,
Never,
}Expand description
Optional depth-compare function for shadow/depth sampling.
Variants§
Less
Passes when the sampled value is less than the reference.
LessEqual
Passes when the sampled value is less than or equal to the reference.
Greater
Passes when the sampled value is greater than the reference.
GreaterEqual
Passes when the sampled value is greater than or equal to the reference.
Equal
Passes when the sampled value equals the reference.
NotEqual
Passes when the sampled value differs from the reference.
Always
Always passes.
Never
Never passes.
Trait Implementations§
Source§impl Clone for CompareFunction
impl Clone for CompareFunction
Source§fn clone(&self) -> CompareFunction
fn clone(&self) -> CompareFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompareFunction
Source§impl Debug for CompareFunction
impl Debug for CompareFunction
impl Eq for CompareFunction
Source§impl Hash for CompareFunction
impl Hash for CompareFunction
Source§impl PartialEq for CompareFunction
impl PartialEq for CompareFunction
Source§fn eq(&self, other: &CompareFunction) -> bool
fn eq(&self, other: &CompareFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompareFunction
Auto Trait Implementations§
impl Freeze for CompareFunction
impl RefUnwindSafe for CompareFunction
impl Send for CompareFunction
impl Sync for CompareFunction
impl Unpin for CompareFunction
impl UnsafeUnpin for CompareFunction
impl UnwindSafe for CompareFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more