Struct naga::EarlyDepthTest
source · pub struct EarlyDepthTest {
pub conservative: Option<ConservativeDepth>,
}
Expand description
Early fragment tests.
In a standard situation, if a driver determines that it is possible to switch on early depth test, it will.
Typical situations when early depth test is switched off:
- Calling
discard
in a shader. - Writing to the depth buffer, unless ConservativeDepth is enabled.
To use in a shader:
- GLSL:
layout(early_fragment_tests) in;
- HLSL:
Attribute earlydepthstencil
- SPIR-V:
ExecutionMode EarlyFragmentTests
- WGSL:
@early_depth_test
For more, see:
Fields§
§conservative: Option<ConservativeDepth>
Trait Implementations§
source§impl Clone for EarlyDepthTest
impl Clone for EarlyDepthTest
source§fn clone(&self) -> EarlyDepthTest
fn clone(&self) -> EarlyDepthTest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EarlyDepthTest
impl Debug for EarlyDepthTest
source§impl Hash for EarlyDepthTest
impl Hash for EarlyDepthTest
source§impl Ord for EarlyDepthTest
impl Ord for EarlyDepthTest
source§fn cmp(&self, other: &EarlyDepthTest) -> Ordering
fn cmp(&self, other: &EarlyDepthTest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EarlyDepthTest
impl PartialEq for EarlyDepthTest
source§fn eq(&self, other: &EarlyDepthTest) -> bool
fn eq(&self, other: &EarlyDepthTest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EarlyDepthTest
impl PartialOrd for EarlyDepthTest
source§fn partial_cmp(&self, other: &EarlyDepthTest) -> Option<Ordering>
fn partial_cmp(&self, other: &EarlyDepthTest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EarlyDepthTest
impl Eq for EarlyDepthTest
impl StructuralPartialEq for EarlyDepthTest
Auto Trait Implementations§
impl Freeze for EarlyDepthTest
impl RefUnwindSafe for EarlyDepthTest
impl Send for EarlyDepthTest
impl Sync for EarlyDepthTest
impl Unpin for EarlyDepthTest
impl UnwindSafe for EarlyDepthTest
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.