enumstd.gpu.DepthMode[src]

Fields

replacing = 12

Declares that this entry point dynamically writes the fragmentDepth built in-decorated variable.

greater = 14

Indicates that per-fragment tests may assume that any fragmentDepth built in-decorated value written by the shader is greater-than-or-equal to the fragment’s interpolated depth value

less = 15

Indicates that per-fragment tests may assume that any fragmentDepth built in-decorated value written by the shader is less-than-or-equal to the fragment’s interpolated depth value

unchanged = 16

Indicates that per-fragment tests may assume that any fragmentDepth built in-decorated value written by the shader is the same as the fragment’s interpolated depth value

Source Code

Source code
pub const DepthMode = enum(u32) {
    /// Declares that this entry point dynamically writes the
    /// `fragmentDepth` built in-decorated variable.
    replacing = 12,
    /// Indicates that per-fragment tests may assume that
    /// any `fragmentDepth` built in-decorated value written by the shader is
    /// greater-than-or-equal to the fragment’s interpolated depth value
    greater = 14,
    /// Indicates that per-fragment tests may assume that
    /// any `fragmentDepth` built in-decorated value written by the shader is
    /// less-than-or-equal to the fragment’s interpolated depth value
    less = 15,
    /// Indicates that per-fragment tests may assume that
    /// any `fragmentDepth` built in-decorated value written by the shader is
    /// the same as the fragment’s interpolated depth value
    unchanged = 16,
}