Overview
Registry of SpriteFont objects (DirectXTK) with names and GPU descriptor handles.
loadFonts called from font pass init path: editor enumerates AssetType::FONT from asset index; release reads build.cfg font lines.
Exposes glyph lookup, texture SRV, line spacing for FontPass.
How it works
- Font pass init invokes
loadFontswith device, upload batch, and descriptor heap. - Editor loads all font assets from the asset index; release loads fonts listed in
build.cfg. FontPassqueries glyphs, SRVs, and line spacing at draw time.
Internal architecture
ModuleFont
├── SpriteFont vector + name table
├── loadFonts(device, upload batch, heap)
└── Glyph/texture queries for FontPass
Relationships
ModuleAssetsfont assets;ModuleUIUIText;ModuleRender::FontPass.
Technical features
- DirectXTK
SpriteFontregistry with GPU descriptor handles. - Editor asset-index-driven loading vs release
build.cfgfont lines.
Implementation notes
- Verified: asset-driven font loading paths for editor and release.