pub struct UiAgent { /* private fields */ }Expand description
The agent responsible for the UI subsystem (LaneKind::Ui).
Holds only its own GORNA / strategy state. The GPU texture atlas
and the persistent AssetUUID → AtlasRect cache both live in the
UiImageAtlas Resource. Every other
dependency (graphics device, render system, font cache, text renderer,
per-frame UiScene) is looked up from EngineContext::runtime per
frame.
Trait Implementations§
Source§impl Agent for UiAgent
impl Agent for UiAgent
Source§fn access(&self) -> AgentAccess
fn access(&self) -> AgentAccess
Reads the LaneBus and records its own encoder, but mutates the shared
UiImageAtlas (GPU glyph/image uploads). It never touches the World,
but the shared-resource write puts it in the SharedWorld tier — the
scheduler runs at most one such agent per wave (alongside Isolated
agents), so its atlas writes never race another shared-resource writer.
Source§fn deck_writes(&self) -> Vec<TypeId>
fn deck_writes(&self) -> Vec<TypeId>
Buffers its pass into the [UiPassSlot] deck slot.