pub struct WgpuCounters {
pub enabled: bool,
pub buffers: i64,
pub textures: i64,
pub bind_groups: i64,
pub buffer_memory: i64,
pub texture_memory: i64,
}Expand description
WgpuCounters reports wgpu’s internal live-object accounting.
All values are zero unless the counters feature is enabled.
Fields§
§enabled: boolenabled indicates whether the counters feature is active.
buffers: i64buffers is the number of live wgpu buffers.
textures: i64textures is the number of live wgpu textures.
bind_groups: i64bind_groups is the number of live wgpu bind groups.
buffer_memory: i64buffer_memory is wgpu’s reported buffer memory in bytes.
texture_memory: i64texture_memory is wgpu’s reported texture memory in bytes.
Trait Implementations§
Source§impl Clone for WgpuCounters
impl Clone for WgpuCounters
Source§fn clone(&self) -> WgpuCounters
fn clone(&self) -> WgpuCounters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WgpuCounters
Source§impl Debug for WgpuCounters
impl Debug for WgpuCounters
Source§impl Default for WgpuCounters
impl Default for WgpuCounters
Source§fn default() -> WgpuCounters
fn default() -> WgpuCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WgpuCounters
impl RefUnwindSafe for WgpuCounters
impl Send for WgpuCounters
impl Sync for WgpuCounters
impl Unpin for WgpuCounters
impl UnsafeUnpin for WgpuCounters
impl UnwindSafe for WgpuCounters
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