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-upload → chunk-realize — wired through the
descriptor/instance/verts resources, executed inside one render-thread job.
Structs§
- CesChunk
Job - Render-thread job owning the chunk graph + GPU resources. (CEL-58 pattern:
a separate
RefCountedso inline callbacks can’t re-enter the node’s borrow.) - Chunk
Ctx - Production recording context for the chunk pipeline: wraps the main
RenderingDevice, the chunk GPU resources, and the staged upload for this execute. MirrorsCtx<'a>frompipeline.rs. - Chunk
Stage - One chunk batch’s CPU-staged data, handed from the main thread to the render
thread.
desc_bytesispack_chunksoutput;instance_bytesispack_instancesoutput.
Constants§
- CHUNK_
DESC_ STRIDE - Bytes of one packed
ChunkGpudescriptor indesc_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.