pub struct AtlasKeys(/* private fields */);Expand description
Which renderer key each of one pack’s cellmaps resolves to.
The runtime speaks in cellmap hashes — DrawBatch.texture_hash, an effect
command’s cellmap_hash, a mask writer’s cutout — and a cellmap hash is
unique only inside its own .ssab. SSRenderer’s texture map is scoped
to the device instead, because that is what lets N players of one pack share
one upload. This is the join between the two: the player assigns a key that
identifies the image (see AssetLoader::texture_key) and translates every
hash through this table on the way to a draw call.
A slot with no entry resolves to itself: the cellmap hash is the key, for a
pack whose atlases the host registered against SSRenderer directly.
A Vec rather than a map: packs have a handful of cellmaps (usually one), and
this is read once per draw batch.