Expand description
Shared types and helpers for the canonical shadow lane’s depth passes.
Both the 2D atlas (directional / spot) and the cube atlas (point) emit
identical depth-only render passes; only the target view changes. This
module factors the per-pass record types and the record_depth_pass
helper so super::atlas_2d and super::atlas_cube stay focused on
their own data flow.
Structs§
- Attachment
Pass - One render pass’s worth of state — used for both 2D atlas slots and individual cube faces, hence the generic name.
- Shadow
Draw Cmd - Pre-collected draw command for one mesh within a shadow pass.
Functions§
- build_
draw_ cmds - Helper used by both atlas modules: builds the per-mesh draw command list for one pass by pushing model uniforms into the shared model ring buffer.
- record_
depth_ pass - Records one depth-only render pass into
encoder.