Skip to main content

depth_load_op

Function depth_load_op 

Source
pub fn depth_load_op(pre_cleared: bool) -> LoadOp<f32>
Expand description

The load operation a frame’s first depth-using pass applies — the surface opening, which clears colour and depth and draws the opaque strips in one pass, or the bare clear pass when the renderer records them apart (see crate::renderer’s The frame’s passes). Every later pass loads.

pre_cleared is the caller’s statement that the attachment it supplied already holds the depth it wants tested against.