pub enum TempResource<A: Api> {
    Buffer(A::Buffer),
    Texture(A::TextureSmallVec<[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 next maintain call, no longer used anywhere

Variants§

§

Buffer(A::Buffer)

§

Texture(A::TextureSmallVec<[A::TextureView; 1]>)

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.