pub enum Compare {
Never,
Less,
Equal,
LessEqual,
Greater,
NotEqual,
GreaterEqual,
Always,
}Expand description
How two values are compared; the left one is the fragment’s own (its depth or alpha, or the stencil reference), the right one what it is tested against.
Variants§
Never
Never passes.
Less
Passes where less.
Equal
Passes where equal.
LessEqual
Passes where less than or equal.
Greater
Passes where greater.
NotEqual
Passes where not equal.
GreaterEqual
Passes where greater than or equal.
Always
Always passes.
Trait Implementations§
impl Copy for Compare
impl Eq for Compare
Source§impl Serialize for Compare
impl Serialize for Compare
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 StructuralPartialEq for Compare
Auto Trait Implementations§
impl Forget for Compare
impl Freeze for Compare
impl RefUnwindSafe for Compare
impl Send for Compare
impl Sync for Compare
impl Unpin for Compare
impl UnsafeUnpin for Compare
impl UnwindSafe for Compare
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