Expand description
Canonical indirect visibility, HZB and multi-representation stream delegation.
Structs§
- Cull
Uniforms Gpu - Uniform buffer layout for
instance_cull_indirect.wgsl(288 bytes). - Draw
Indexed Indirect Command - WebGPU-standard 20-byte
DrawIndexedIndirectcommand payload. - HzbPyramid
View - Lightweight zero-heap view over a 2-phase Hierarchical Z-Buffer (HZB) mip chain.
- Indirect
Cull Pipeline Gpu - GPU-resident compute pipeline and indirect stream buffers for
INSTANCE_CULL_INDIRECT_WGSL. - Indirect
Cull Stream Counts - Output stream counts produced by
cull_and_select_lod_indirect_zero_heap. - Instance
Cull Descriptor - GPU-aligned per-instance culling & multi-modal routing descriptor (80 bytes,
5 x vec4).
Enums§
- Representation
Policy - Multi-modal representation policy encoded in
InstanceCullDescriptor::rep_policy.
Constants§
- DEFAULT_
LOD_ HYSTERESIS - Default fractional hysteresis deadband around LOD thresholds (
10%). - DEFAULT_
LOD_ THRESHOLDS_ PX - Default screen-space projected radius thresholds in pixels (
[LOD0, LOD1, LOD2]). - DEFAULT_
MIN_ CULL_ RADIUS_ PX - Default minimum projected radius in pixels below which an instance is sub-pixel culled.
Functions§
- build_
hzb_ mip_ chain_ zero_ heap - Returns
(total_texels_written, mip_slices, mip_count). - cull_
and_ select_ lod_ indirect_ zero_ heap - Zero-heap CPU/GPU parity execution of 6-plane frustum culling, 2-phase HZB depth-pyramid occlusion culling, 4-tier hybrid LOD selection with hysteresis, and multi-modal stream routing.
- select_
lod_ tier_ with_ hysteresis - Selects the 4-tier LOD index (
0..=3) from an epistemic-weighted screen-space projected radius in pixels, applying a fractional hysteresis deadband around threshold transitions.