pub struct GpuResourcePoolStats {
pub budget_bytes: u64,
pub cached_bytes: u64,
pub cached_resources: usize,
pub allocation_count: u64,
pub reuse_count: u64,
pub discarded_count: u64,
}Expand description
Snapshot of one pool’s retained resources and lifetime acquisition counters.
Bytes describe requested buffer sizes or RGBA8 texel payloads, excluding driver overhead, live caller-owned resources, uniforms, and readback staging.
Fields§
§budget_bytes: u64Maximum bytes retained after resources are recycled.
cached_bytes: u64Bytes currently retained for reuse.
cached_resources: usizeResources currently retained for reuse.
allocation_count: u64Device allocations requested through this pool since its creation.
reuse_count: u64Acquisitions satisfied by an already retained resource.
discarded_count: u64Recycled or cached resources dropped instead of retained.
Trait Implementations§
Source§impl Clone for GpuResourcePoolStats
impl Clone for GpuResourcePoolStats
Source§fn clone(&self) -> GpuResourcePoolStats
fn clone(&self) -> GpuResourcePoolStats
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 GpuResourcePoolStats
Source§impl Debug for GpuResourcePoolStats
impl Debug for GpuResourcePoolStats
Source§impl Default for GpuResourcePoolStats
impl Default for GpuResourcePoolStats
Source§fn default() -> GpuResourcePoolStats
fn default() -> GpuResourcePoolStats
Returns the “default value” for a type. Read more
impl Eq for GpuResourcePoolStats
Source§impl PartialEq for GpuResourcePoolStats
impl PartialEq for GpuResourcePoolStats
impl StructuralPartialEq for GpuResourcePoolStats
Auto Trait Implementations§
impl Freeze for GpuResourcePoolStats
impl RefUnwindSafe for GpuResourcePoolStats
impl Send for GpuResourcePoolStats
impl Sync for GpuResourcePoolStats
impl Unpin for GpuResourcePoolStats
impl UnsafeUnpin for GpuResourcePoolStats
impl UnwindSafe for GpuResourcePoolStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more