pub unsafe fn map(
allocator: &mut Allocator<'_>,
allocation: &Allocation,
) -> Result<*mut c_void, AllocError>Expand description
Map one allocation. Distinct regions share a reference-counted block mapping.
Repeated explicit maps of the same region return AlreadyMapped.
ยงSafety
Synchronize host/GPU access. Pointers remain valid only while an explicit or persistent hold for this allocation remains live. Do not alias Rust references.