Skip to main content

depth_clear

Function depth_clear 

Source
pub const fn depth_clear() -> LoadOp<f32>
Expand description

The depth load op of the renderer’s reverse-z convention: a clear to the far plane.

Pipelines built by LitOptions::standard compare with CompareFunction::Greater, so depth starts at the far plane and nearer geometry carries the greater value. Clearing a depth attachment with any other value would put the convention out of joint.