Struct wgpu_core::resource::ResourceInfo
source · pub struct ResourceInfo<Id: TypedId> { /* private fields */ }
Expand description
Information about the wgpu-core resource.
Each type representing a wgpu-core
resource, like Device
,
Buffer
, etc., contains a ResourceInfo
which contains
its latest submission index and label.
A resource may need to be retained for any of several reasons:
and any lifetime logic will be handled by Arc<Resource>
refcount
-
The user may hold a reference to it (via a
wgpu::Buffer
, say). -
Other resources may depend on it (a texture view’s backing texture, for example).
-
It may be used by commands sent to the GPU that have not yet finished execution.
Trait Implementations§
Auto Trait Implementations§
impl<Id> !RefUnwindSafe for ResourceInfo<Id>
impl<Id> Send for ResourceInfo<Id>
impl<Id> Sync for ResourceInfo<Id>
impl<Id> Unpin for ResourceInfo<Id>where
Id: Unpin,
impl<Id> !UnwindSafe for ResourceInfo<Id>
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