Type Alias wgpu_core::track::UsageScopePool
source · pub(crate) type UsageScopePool = Mutex<Vec<(BufferUsageScope, TextureUsageScope)>>;
Expand description
A pool for storing the memory used by UsageScope
s. We take and store this memory when the
scope is dropped to avoid reallocating. The memory required only grows and allocation cost is
significant when a large number of resources have been used.
Aliased Type§
struct UsageScopePool(Mutex<RawMutex, Vec<(BufferUsageScope, TextureUsageScope)>>);
Fields§
§0: Mutex<RawMutex, Vec<(BufferUsageScope, TextureUsageScope)>>