pub enum ConservativeDepth {
    GreaterEqual,
    LessEqual,
    Unchanged,
}Expand description
Enables adjusting depth without disabling early Z.
To use in a shader:
- GLSL: 
layout (depth_<greater/less/unchanged/any>) out float gl_FragDepth;depth_anyoption behaves as if the layout qualifier was not present.
 - HLSL: 
SV_DepthGreaterEqual/SV_DepthLessEqual/SV_Depth - SPIR-V: 
ExecutionMode Depth<Greater/Less/Unchanged> - WGSL: 
@early_depth_test(greater_equal/less_equal/unchanged) 
For more, see:
Variants§
GreaterEqual
Shader may rewrite depth only with a value greater than calculated.
LessEqual
Shader may rewrite depth smaller than one that would have been written without the modification.
Unchanged
Shader may not rewrite depth value.
Trait Implementations§
Source§impl Clone for ConservativeDepth
 
impl Clone for ConservativeDepth
Source§fn clone(&self) -> ConservativeDepth
 
fn clone(&self) -> ConservativeDepth
Returns a duplicate 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 ConservativeDepth
 
impl Debug for ConservativeDepth
Source§impl Hash for ConservativeDepth
 
impl Hash for ConservativeDepth
Source§impl Ord for ConservativeDepth
 
impl Ord for ConservativeDepth
Source§fn cmp(&self, other: &ConservativeDepth) -> Ordering
 
fn cmp(&self, other: &ConservativeDepth) -> 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 ConservativeDepth
 
impl PartialEq for ConservativeDepth
Source§impl PartialOrd for ConservativeDepth
 
impl PartialOrd for ConservativeDepth
impl Copy for ConservativeDepth
impl Eq for ConservativeDepth
impl StructuralPartialEq for ConservativeDepth
Auto Trait Implementations§
impl Freeze for ConservativeDepth
impl RefUnwindSafe for ConservativeDepth
impl Send for ConservativeDepth
impl Sync for ConservativeDepth
impl Unpin for ConservativeDepth
impl UnwindSafe for ConservativeDepth
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§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§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.