Skip to main content

SparseBufferHandle

Type Alias SparseBufferHandle 

Source
pub type SparseBufferHandle = Arc<SparseBufferId>;
Expand description

An object that allows the sparse buffer ID to be query and holds the bind group for that sparse buffer alive.

Each sparse buffer holds a strong reference to this handle, and the SparseBufferUpdateBindGroups resource contains a weak map from this handle to the bind group. This setup ensures that, when the sparse buffer is freed, the bind groups for that sparse buffer are freed as well.

Aliased Typeยง

pub struct SparseBufferHandle { /* private fields */ }