Skip to main content

Module extractor

Module extractor 

Source

Structs§

ExtractedTileMessage
Message sent from the render world to the main world when a tile is read back from GPU.
PendingReadbacks
Render-world store of all in-flight readbacks.
TerrainExtractor
Queue of tiles to read back from the GPU. Lives in both the main world (as a write target for game systems) and the render world (consumed by initiate_tile_readbacks).
TerrainExtractorPlugin

Enums§

TerrainRenderSets
System sets for ordering terrain render-world work. External plugins that write terrain textures (e.g. wde-terrain-editor) should place their compute dispatch systems inside TerrainRenderSets::TextureWrite. initiate_tile_readbacks is configured to run after this set so it always captures post-compute texture data.

Functions§

extract_dirty
Transfer the main world’s extraction queue into the render world. Called by TerrainRendererGPU::extract_dirty during the Extract phase.
initiate_tile_readbacks
Render phase: copy each queued tile to a staging buffer and start async mapping. Must run after the paint compute pass so the copy captures post-compute data. This ordering is enforced in [PaintProcessorPlugin].