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§impl PartialOrd for EarlyDepthTest
impl PartialOrd for EarlyDepthTest
Source§impl Serialize for EarlyDepthTest
impl Serialize for EarlyDepthTest
impl 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.