pub struct MemoryReport {
pub images: PoolReport,
pub atlas: [AtlasReport; 2],
pub targets: PoolReport,
pub host_buffer: PoolReport,
pub contours: PoolReport,
pub glyph_paths: PoolReport,
pub ramps: PoolReport,
pub raster_cache: PoolReport,
pub wgpu: WgpuCounters,
}Expand description
MemoryReport summarizes resources retained between frames.
Pool byte counts are estimates derived from resource descriptors. wgpu
contains separate internal counters when that feature is enabled.
Fields§
§images: PoolReportimages reports live uploaded images, including mip levels.
atlas: [AtlasReport; 2]atlas reports [mask and SDF, color] glyph-atlas families.
targets: PoolReporttargets reports pooled layer, snapshot, filter, and scratch targets.
host_buffer: PoolReporthost_buffer reports transient upload-buffer blocks.
contours: PoolReportcontours reports cached flattened path contours.
glyph_paths: PoolReportglyph_paths reports cached vector glyph paths.
ramps: PoolReportramps reports cached gradient-ramp textures.
raster_cache: PoolReportraster_cache reports cached display-list textures.
wgpu: WgpuCounterswgpu contains wgpu’s internal object and memory counters.
Implementations§
Source§impl MemoryReport
impl MemoryReport
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
total_bytes returns the sum of Valo’s estimated retained memory.
The separate wgpu counters are excluded.
Trait Implementations§
Source§impl Clone for MemoryReport
impl Clone for MemoryReport
Source§fn clone(&self) -> MemoryReport
fn clone(&self) -> MemoryReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more