Enum naga::ConservativeDepth[][src]

pub enum ConservativeDepth {
    GreaterEqual,
    LessEqual,
    Unchanged,
}

Enables adjusting depth without disabling early Z.

SPIR-V: ExecutionMode DepthGreater/DepthLess/DepthUnchanged GLSL: layout (depth_<greater/less/unchanged/any>) out float gl_FragDepth;

  • depth_any option behaves as if the layout qualifier was not present. HLSL: SV_Depth/SV_DepthGreaterEqual/SV_DepthLessEqual

For more, see:

  • https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_conservative_depth.txt
  • https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-semantics#system-value-semantics

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

impl Clone for ConservativeDepth[src]

impl Copy for ConservativeDepth[src]

impl Debug for ConservativeDepth[src]

impl Eq for ConservativeDepth[src]

impl Hash for ConservativeDepth[src]

impl Ord for ConservativeDepth[src]

impl PartialEq<ConservativeDepth> for ConservativeDepth[src]

impl PartialOrd<ConservativeDepth> for ConservativeDepth[src]

impl StructuralEq for ConservativeDepth[src]

impl StructuralPartialEq for ConservativeDepth[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.