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.

MSL has no way to specify that depth is unchanged, and it does not allow functions that force early fragment tests to output depth. Discarding the depth has the same effect as either of those, and keeps early depth tests enabled.