Skip to main content

Module chunk_pipeline

Module chunk_pipeline 

Source
Expand description

The chunk pipeline recording context + render-thread job.

Mirrors pipeline.rs (Ctx/PlanetJob) for the chunk (grass/foliage) render path. Two nodes — chunk-uploadchunk-realize — wired through the descriptor/instance/verts resources, executed inside one render-thread job.

Structs§

CesChunkJob
Render-thread job owning the chunk graph + GPU resources. (CEL-58 pattern: a separate RefCounted so inline callbacks can’t re-enter the node’s borrow.)
ChunkCtx
Production recording context for the chunk pipeline: wraps the main RenderingDevice, the chunk GPU resources, and the staged upload for this execute. Mirrors Ctx<'a> from pipeline.rs.
ChunkStage
One chunk batch’s CPU-staged data, handed from the main thread to the render thread. desc_bytes is pack_chunks output; instance_bytes is pack_instances output.

Constants§

CHUNK_DESC_STRIDE
Bytes of one packed ChunkGpu descriptor in desc_bytes.
SCATTER_AUX_STRIDE
Bytes of one packed scatter-aux entry (ScatterAuxGpu), parallel to desc.

Functions§

merge_stage
Merge a newly staged batch into a still-pending one instead of replacing it.