pub enum DepthTest {
Never,
Less,
Equal,
LessOrEqual,
Greater,
NotEqual,
GreaterOrEqual,
Always,
}
Expand description
Determines whether or not a fragment/pixel from the current render call should be discarded when comparing its depth with the depth of the current fragment/pixel.
Note: Depth test is disabled if the render call is not writing to a depth texture.
Variants§
Trait Implementations§
impl Copy for DepthTest
impl StructuralPartialEq for DepthTest
Auto Trait Implementations§
impl Freeze for DepthTest
impl RefUnwindSafe for DepthTest
impl Send for DepthTest
impl Sync for DepthTest
impl Unpin for DepthTest
impl UnwindSafe for DepthTest
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