Enum three_d::core::render_states::DepthTest [−][src]
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. This means depth testing does not work when writing to a ColorTargetTexture2D or ColorTargetTexture2DArray, but do work when writing to the Screen, a RenderTarget, RenderTargetArray, DepthTargetTexture2D or DepthTargetTexture2DArray.
Variants
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DepthTest
impl UnwindSafe for DepthTest
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more