pub struct FrameCacheStatistics { /* private fields */ }Expand description
Library-owned retained allocation sizes and the last composition’s cache work. CPU byte counts use actual Vec capacities, uniform and transfer-storage bytes use buffer sizes, and texture bytes count each cached resource identity once.
Implementations§
Source§impl FrameCacheStatistics
impl FrameCacheStatistics
Sourcepub const fn cpu_bytes(self) -> usize
pub const fn cpu_bytes(self) -> usize
Idle retained CPU allocation bytes, including spare capacities.
Sourcepub const fn uniform_bytes(self) -> usize
pub const fn uniform_bytes(self) -> usize
Idle retained uniform buffer allocation bytes.
Sourcepub const fn texture_bytes(self) -> usize
pub const fn texture_bytes(self) -> usize
Distinct nominal texture bytes kept alive by cached bindings.
Sourcepub const fn binding_count(self) -> usize
pub const fn binding_count(self) -> usize
Number of populated reusable binding slots.
Sourcepub const fn created_buffers(self) -> usize
pub const fn created_buffers(self) -> usize
Uniform buffers created by the previous composed frame.
Sourcepub const fn created_bind_groups(self) -> usize
pub const fn created_bind_groups(self) -> usize
Bind groups created by the previous composed frame.
Sourcepub const fn reused_bind_groups(self) -> usize
pub const fn reused_bind_groups(self) -> usize
Bind groups reused from retained slots or earlier items of this frame.
Subset of reused bind groups shared with an earlier identical draw binding in the same frame. Shared aliases are never retained in a second mutable uniform slot. The bounded memo may miss older duplicates.
Sourcepub const fn uploaded_uniform_bytes(self) -> usize
pub const fn uploaded_uniform_bytes(self) -> usize
Uniform bytes actually written by the previous composed frame.
Sourcepub const fn uniform_upload_calls(self) -> usize
pub const fn uniform_upload_calls(self) -> usize
Actual uniform-payload queue writes, including a packed write as one call. Copies from packed storage into uniform buffers are not uploads.
Sourcepub const fn batched_uniform_copies(self) -> usize
pub const fn batched_uniform_copies(self) -> usize
GPU-to-GPU copies from packed storage to independent uniform buffers.
Their bytes are not counted a second time in uploaded_uniform_bytes.
Sourcepub const fn batched_uniform_bytes(self) -> usize
pub const fn batched_uniform_bytes(self) -> usize
Additional GPU-to-GPU transfer bytes from packed storage. This is a subset of uploaded uniform payload, not a second host upload. Batching trades this bounded copy work for fewer queue staging allocations.
Sourcepub const fn upload_staging_bytes(self) -> usize
pub const fn upload_staging_bytes(self) -> usize
Idle retained GPU transfer-buffer bytes, separate from uniform bytes.
Sourcepub const fn peak_upload_staging_bytes(self) -> usize
pub const fn peak_upload_staging_bytes(self) -> usize
Conservative old/new GPU transfer-buffer overlap during the last frame.
Sourcepub const fn created_upload_staging_buffers(self) -> usize
pub const fn created_upload_staging_buffers(self) -> usize
GPU transfer buffers created by the previous composed frame.
Sourcepub const fn peak_cpu_bytes(self) -> usize
pub const fn peak_cpu_bytes(self) -> usize
Conservative CPU scratch bound: initial retained bytes plus twice the final owned capacities, covering transient old/new Vec growth. This is not an allocator high-water measurement and excludes driver staging.
Sourcepub const fn peak_uniform_bytes(self) -> usize
pub const fn peak_uniform_bytes(self) -> usize
Conservative peak including buffers replaced during this frame.
Sourcepub const fn peak_texture_bytes(self) -> usize
pub const fn peak_texture_bytes(self) -> usize
Conservative peak of distinct cached old/new texture references.
Trait Implementations§
Source§impl Clone for FrameCacheStatistics
impl Clone for FrameCacheStatistics
impl Copy for FrameCacheStatistics
Source§impl Debug for FrameCacheStatistics
impl Debug for FrameCacheStatistics
Source§impl Default for FrameCacheStatistics
impl Default for FrameCacheStatistics
impl Eq for FrameCacheStatistics
Source§impl PartialEq for FrameCacheStatistics
impl PartialEq for FrameCacheStatistics
impl StructuralPartialEq for FrameCacheStatistics
Auto Trait Implementations§
impl Freeze for FrameCacheStatistics
impl RefUnwindSafe for FrameCacheStatistics
impl Send for FrameCacheStatistics
impl Sync for FrameCacheStatistics
impl Unpin for FrameCacheStatistics
impl UnsafeUnpin for FrameCacheStatistics
impl UnwindSafe for FrameCacheStatistics
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.