Skip to main content

discards_frag_depth

Function discards_frag_depth 

Source
fn discards_frag_depth(entry_point: &EntryPoint) -> bool
Expand description

Returns true if the depth that entry_point writes must be discarded.

HLSL has no way to specify that depth is unchanged. Discarding the depth has the same effect, and keeps early depth tests enabled.