Skip to main content

Module pass

Module pass 

Source
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§

AttachmentPass
One render pass’s worth of state — used for both 2D atlas slots and individual cube faces, hence the generic name.
ShadowDrawCmd
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.