Skip to main content

Module image_atlas

Module image_atlas 

Source
Expand description

UiImageAtlas — engine-level resource holding the GPU texture atlas and the persistent AssetUUID → AtlasRect cache used by the UI render pipeline.

Previously these two pieces lived as fields on UiAgent, which made the agent own GPU state in violation of the “agents stay strategists, no buffered output” rule. They now live in [khora_core::Resources] so the agent can be recreated freely without losing the atlas, and the UiAgent code holds no GPU state at all.

Structs§

UiImageAtlas
Resource holding the UI image atlas (GPU texture) and an AssetUUID → AtlasRect cache mapping each uploaded UI image to its position inside the atlas.