euv-core 0.41.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

/// Memoized glyph rasterization cache shared across frames to avoid redundant glyph work.
#[derive(Clone, Data, Debug, Default)]
pub struct GlyphAtlas {
    /// Cached rasterized glyph bitmaps indexed by quantized `GlyphKey`.
    #[get(pub(crate))]
    #[get_mut(pub(crate))]
    #[set(pub(crate))]
    pub(crate) glyphs: HashMap<GlyphKey, RasterizedGlyph>,
    /// Monotonic counter incremented when new glyphs are inserted for GPU texture sync.
    #[get(type(copy))]
    #[get_mut(pub(crate))]
    #[set(pub(crate))]
    pub(crate) revision: u64,
}