Module text_atlas

Source
Expand description

Multi-page GPU glyph atlas with per-frame pinning and LRU page eviction.

Structs§

Glyph
UV layout and metrics for a glyph in the atlas.
GlyphKey
Cache key for one rasterized glyph in the text atlas.
TextAtlas
Multi-page GPU glyph atlas with LRU eviction.
TextAtlasFrame
Scoped atlas access for one frame (pins pages until drop).
TextAtlasStats
Per-frame atlas cache statistics.

Constants§

MAX_ATLAS_PAGES
Maximum atlas pages: eight 1024² RGBA8 textures (about 32 MiB total).