Enum wgpu_core::device::queue::TempResource
source · pub enum TempResource {
StagingBuffer(FlushedStagingBuffer),
ScratchBuffer(ScratchBuffer),
DestroyedBuffer(DestroyedBuffer),
DestroyedTexture(DestroyedTexture),
DestroyedAccelerationStructure(DestroyedAccelerationStructure),
}
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::temp_resources
: temporary resources used by a queue submission, to be freed when it completes
Variants§
StagingBuffer(FlushedStagingBuffer)
ScratchBuffer(ScratchBuffer)
DestroyedBuffer(DestroyedBuffer)
DestroyedTexture(DestroyedTexture)
DestroyedAccelerationStructure(DestroyedAccelerationStructure)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TempResource
impl Send for TempResource
impl Sync for TempResource
impl Unpin for TempResource
impl !UnwindSafe for TempResource
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