Enum vulkano::pipeline::depth_stencil::Compare
source · #[repr(u32)]
pub enum Compare {
Never,
Less,
Equal,
LessOrEqual,
Greater,
NotEqual,
GreaterOrEqual,
Always,
}
Expand description
Specifies how two values should be compared to decide whether a test passes or fails.
Used for both depth testing and stencil testing.
Variants
Never
The test never passes.
Less
The test passes if value < reference_value
.
Equal
The test passes if value == reference_value
.
LessOrEqual
The test passes if value <= reference_value
.
Greater
The test passes if value > reference_value
.
NotEqual
The test passes if value != reference_value
.
GreaterOrEqual
The test passes if value >= reference_value
.
Always
The test always passes.
Trait Implementations
impl Copy for Compare
impl Eq for Compare
impl StructuralEq for Compare
impl StructuralPartialEq for Compare
Auto Trait Implementations
impl RefUnwindSafe for Compare
impl Send for Compare
impl Sync for Compare
impl Unpin for Compare
impl UnwindSafe for Compare
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.