pub struct FrameStatistics { /* private fields */ }Expand description
Bounded work and retained allocations referenced by one composed frame.
Implementations§
Source§impl FrameStatistics
impl FrameStatistics
Sourcepub const fn pass_count(self) -> usize
pub const fn pass_count(self) -> usize
Returns ordered source count.
Sourcepub const fn command_count(self) -> usize
pub const fn command_count(self) -> usize
Returns referenced scene-command count.
Sourcepub const fn vertex_count(self) -> usize
pub const fn vertex_count(self) -> usize
Returns referenced or generated vertex count.
Sourcepub const fn streaming_vertex_count(self) -> usize
pub const fn streaming_vertex_count(self) -> usize
Returns streaming vertices selected by draws during this frame.
Repeated references may share one within-frame upload; use
Self::streaming_upload_bytes for the actual transferred payload.
Sourcepub const fn reused_vertex_count(self) -> usize
pub const fn reused_vertex_count(self) -> usize
Returns retained prepared or dynamic vertices reused without frame upload.
Sourcepub const fn upload_bytes(self) -> usize
pub const fn upload_bytes(self) -> usize
Returns bytes uploaded for streaming vertices and per-item uniforms.
Sourcepub const fn streaming_upload_bytes(self) -> usize
pub const fn streaming_upload_bytes(self) -> usize
Returns the subset uploaded for streaming geometry or instances.
Sourcepub const fn texture_bytes(self) -> usize
pub const fn texture_bytes(self) -> usize
Returns nominal retained texel-storage bytes referenced by frame items.
Repeated image, scalar-field, and render-target identities are
deduplicated. Opaque backend alignment, tiling, page allocation, and
metadata are excluded because wgpu does not expose them. Color-map LUT
bytes follow the renderer’s one-entry cache:
adjacent equal LUTs share one allocation, while an A, B, A sequence
keeps three views/allocations alive until submission.
Sourcepub const fn retained_cpu_bytes(self) -> usize
pub const fn retained_cpu_bytes(self) -> usize
Returns CPU recovery or source bytes held by unique referenced resources.
Drawing the same scene, buffer, image, atlas, or run more than once does not multiply this value. Distinct retained resources are summed even when their contents happen to be equal.
Sourcepub const fn retained_buffer_bytes(self) -> usize
pub const fn retained_buffer_bytes(self) -> usize
Returns GPU vertex or instance-buffer bytes held by unique referenced resources.
Sourcepub const fn draw_calls(self) -> usize
pub const fn draw_calls(self) -> usize
Returns the conservative number of scheduled draw calls.
Sourcepub const fn source_counts(self) -> FrameSourceStatistics
pub const fn source_counts(self) -> FrameSourceStatistics
Returns accepted ordered inputs grouped by renderer source path.
Trait Implementations§
Source§impl Clone for FrameStatistics
impl Clone for FrameStatistics
Source§fn clone(&self) -> FrameStatistics
fn clone(&self) -> FrameStatistics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FrameStatistics
Source§impl Debug for FrameStatistics
impl Debug for FrameStatistics
Source§impl Default for FrameStatistics
impl Default for FrameStatistics
Source§fn default() -> FrameStatistics
fn default() -> FrameStatistics
impl Eq for FrameStatistics
Source§impl PartialEq for FrameStatistics
impl PartialEq for FrameStatistics
impl StructuralPartialEq for FrameStatistics
Auto Trait Implementations§
impl Freeze for FrameStatistics
impl RefUnwindSafe for FrameStatistics
impl Send for FrameStatistics
impl Sync for FrameStatistics
impl Unpin for FrameStatistics
impl UnsafeUnpin for FrameStatistics
impl UnwindSafe for FrameStatistics
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.