Skip to main content

Module image

Module image 

Source
Expand description

The backend’s image table.

A display list names artwork by its [AssetHash]; the bytes behind a hash arrive once, in the hand-off of the first frame that painted it, and the front end registers them here — minting a loader URI that carries the [Asset]’s own format so egui picks the right decoder. Every replay after that is a lookup. The table is fed from the hand-off and nothing else: a hash it does not hold is one the front end never registered.

Structs§

ImageRegistry
Loader URIs by the hash the display list names them under. Owned by the View and read by each frame’s replay.