Enum wgpu_core::device::queue::TempResource
source · pub enum TempResource<A: Api> {
Buffer(A::Buffer),
Texture(A::Texture, SmallVec<[A::TextureView; 1]>),
}
Expand description
A texture or buffer to be freed soon.
This is just a tagged raw texture or buffer, generally about to be added to some other more specific container like:
-
PendingWrites::temp_resources
: resources used by queue writes and unmaps, waiting to be folded in with the next queue submission -
ActiveSubmission::last_resources
: temporary resources used by a queue submission, to be freed when it completes -
LifetimeTracker::free_resources
: resources to be freed in the nextmaintain
call, no longer used anywhere