Glyph atlas — per-font-size glyph cache as GPU texture. More...
#include <texture_atlas.hpp>
Classes | |
| struct | Entry |
Public Member Functions | |
| GlyphAtlas (int size=1024) | |
| bool | allocate (uint64_t glyph_key, int w, int h, AtlasPacker::Region &out) |
| void | mark_used (uint64_t key, uint64_t frame) |
| size_t | evict_stale (uint64_t current_frame, uint64_t max_age=300) |
| size_t | entry_count () const |
| int | width () const |
| Read-only introspection for the inspector's atlas viewer. | |
| int | height () const |
| float | occupancy () const |
Glyph atlas — per-font-size glyph cache as GPU texture.
Skia manages its own internal glyph cache via SkStrike, so this atlas is a supplementary cache for custom text rendering paths (e.g., SDF text).
|
inlineexplicit |
| bool pulp::render::GlyphAtlas::allocate | ( | uint64_t | glyph_key, |
| int | w, | ||
| int | h, | ||
| AtlasPacker::Region & | out ) |
|
inline |
| size_t pulp::render::GlyphAtlas::evict_stale | ( | uint64_t | current_frame, |
| uint64_t | max_age = 300 ) |
|
inline |
| void pulp::render::GlyphAtlas::mark_used | ( | uint64_t | key, |
| uint64_t | frame ) |
|
inline |
|
inline |
Read-only introspection for the inspector's atlas viewer.