pub struct TextAtlasStats {
pub hits: u32,
pub misses: u32,
pub rasterized: u32,
pub resets: u32,
pub evictions_blocked: u32,
pub glyphs_skipped: u32,
pub pages_active: u32,
}Expand description
Per-frame atlas cache statistics.
Counters saturate at u32::MAX; pages_active reflects the current atlas,
including pages allocated in earlier frames.
§Examples
use ailloli_ui_render_wgpu::text::TextAtlasStats;
let stats = TextAtlasStats::default();
assert_eq!((stats.hits, stats.misses, stats.pages_active), (0, 0, 0));Fields§
§hits: u32Cache hits in the current frame.
misses: u32Cache misses in the current frame.
rasterized: u32Glyph bitmaps uploaded in the current frame.
resets: u32Atlas page resets caused by eviction in the current frame.
evictions_blocked: u32Allocations skipped because every candidate page was frame-pinned.
glyphs_skipped: u32Glyphs skipped for missing faces, raster failures, or allocation failure.
pages_active: u32Total allocated atlas pages after the latest operation.
Trait Implementations§
Source§impl Clone for TextAtlasStats
impl Clone for TextAtlasStats
Source§fn clone(&self) -> TextAtlasStats
fn clone(&self) -> TextAtlasStats
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextAtlasStats
impl Debug for TextAtlasStats
Source§impl Default for TextAtlasStats
impl Default for TextAtlasStats
Source§fn default() -> TextAtlasStats
fn default() -> TextAtlasStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextAtlasStats
impl PartialEq for TextAtlasStats
impl Copy for TextAtlasStats
impl Eq for TextAtlasStats
impl StructuralPartialEq for TextAtlasStats
Auto Trait Implementations§
impl Freeze for TextAtlasStats
impl RefUnwindSafe for TextAtlasStats
impl Send for TextAtlasStats
impl Sync for TextAtlasStats
impl Unpin for TextAtlasStats
impl UnwindSafe for TextAtlasStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().