Skip to main content

Module chunk_nodes

Module chunk_nodes 

Source
Expand description

Chunk pipeline nodes as self-contained units behind the ChunkNode trait.

Mirrors nodes/mod.rs for the chunk (grass/foliage) pipeline. Two nodes: chunk-upload (CPU → GPU descriptor + instance buffers) and chunk-realize (compute dispatch into the chunk multimesh). The graph is assembled from the data-driven registry in build_chunk_pipeline.

GPU bodies are stubs; Task 10 fleshes them out.

Structs§

ChunkBake
ChunkRealize
ChunkRegistry
Node ids the job needs to address after the graph is built.
ChunkScatterCompact
ChunkScatterPlace
ChunkSurfaceCustom
ChunkUpload

Traits§

ChunkNode
A schedulable chunk operation. Knows its static name and how to record itself; resource reads/writes are owned by the registry, not the node.

Functions§

build_chunk_pipeline
Build the chunk graph from the registry. Allocates resources, adds every node in registry order, and returns the ids the job addresses.