Enum naga::ConservativeDepth [−][src]
pub enum ConservativeDepth {
GreaterEqual,
LessEqual,
Unchanged,
}
Expand description
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:
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
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConservativeDepth
impl Send for ConservativeDepth
impl Sync for ConservativeDepth
impl Unpin for ConservativeDepth
impl UnwindSafe for ConservativeDepth
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.