pub struct WgpuMemoryStats {Show 23 fields
pub glyph_atlas_size: u32,
pub glyph_atlas_bytes: usize,
pub glyph_atlas_entries: usize,
pub glyph_atlas_occupancy: f32,
pub sprite_atlas_size: u32,
pub sprite_atlas_bytes: usize,
pub sprite_atlas_entries: usize,
pub sprite_atlas_occupancy: f32,
pub ramp_atlas_bytes: usize,
pub instance_buf_bytes: usize,
pub uploaded_primitives_cpu_bytes: usize,
pub layer_pool_targets: usize,
pub layer_pool_target_bytes: usize,
pub layer_pool_masks: usize,
pub layer_pool_mask_bytes: usize,
pub canvas_scenes: usize,
pub canvas_gpu_bytes: usize,
pub slug_cached_glyphs: usize,
pub slug_gpu_bytes: usize,
pub slug_last_drawn_glyphs: usize,
pub text_layout_cache_entries: usize,
pub backdrop_blur_cache_hits: u64,
pub backdrop_blur_cache_misses: u64,
}Expand description
WgpuRenderer GPU 与伴随 CPU 缓存字节统计快照(用于四层内存账本剖析)。
Fields§
§glyph_atlas_size: u32§glyph_atlas_bytes: usize§glyph_atlas_entries: usize§glyph_atlas_occupancy: f32§sprite_atlas_size: u32§sprite_atlas_bytes: usize§sprite_atlas_entries: usize§sprite_atlas_occupancy: f32§ramp_atlas_bytes: usize§instance_buf_bytes: usize§uploaded_primitives_cpu_bytes: usize§layer_pool_targets: usize§layer_pool_target_bytes: usize§layer_pool_masks: usize§layer_pool_mask_bytes: usize§canvas_scenes: usize§canvas_gpu_bytes: usize§slug_cached_glyphs: usize§slug_gpu_bytes: usize§slug_last_drawn_glyphs: usize§text_layout_cache_entries: usize§backdrop_blur_cache_hits: u64§backdrop_blur_cache_misses: u64Implementations§
Source§impl WgpuMemoryStats
impl WgpuMemoryStats
Sourcepub const fn total_gpu_bytes(&self) -> usize
pub const fn total_gpu_bytes(&self) -> usize
估算该渲染器持有的全部 GPU 纹理与缓冲总字节。
Trait Implementations§
Source§impl Clone for WgpuMemoryStats
impl Clone for WgpuMemoryStats
impl Copy for WgpuMemoryStats
Source§impl Debug for WgpuMemoryStats
impl Debug for WgpuMemoryStats
Source§impl Default for WgpuMemoryStats
impl Default for WgpuMemoryStats
Source§impl PartialEq for WgpuMemoryStats
impl PartialEq for WgpuMemoryStats
impl StructuralPartialEq for WgpuMemoryStats
Auto Trait Implementations§
impl Forget for WgpuMemoryStats
impl Freeze for WgpuMemoryStats
impl Move for WgpuMemoryStats
impl RefUnwindSafe for WgpuMemoryStats
impl Send for WgpuMemoryStats
impl Sync for WgpuMemoryStats
impl Unpin for WgpuMemoryStats
impl UnsafeUnpin for WgpuMemoryStats
impl UnwindSafe for WgpuMemoryStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。