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<'arbitrary> Arbitrary<'arbitrary> for EarlyDepthTest
impl<'arbitrary> Arbitrary<'arbitrary> for EarlyDepthTest
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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<'de> Deserialize<'de> for EarlyDepthTest
impl<'de> Deserialize<'de> for EarlyDepthTest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 moresource§impl Serialize for EarlyDepthTest
impl Serialize for EarlyDepthTest
impl Copy for EarlyDepthTest
impl Eq for EarlyDepthTest
impl StructuralEq for EarlyDepthTest
impl StructuralPartialEq for EarlyDepthTest
Auto Trait Implementations§
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.