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§impl PartialOrd for EarlyDepthTest
impl PartialOrd 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.