Struct vk_alloc::Allocation
source · [−]pub struct Allocation<LT: Lifetime> { /* private fields */ }
Expand description
An allocation of the Allocator
.
Implementations
The DeviceMemory
of the allocation. Managed by the allocator.
The offset inside the DeviceMemory
.
The size of the allocation.
Returns a valid mapped slice if the memory is host visible, otherwise it will return None. The slice already references the exact memory region of the sub allocation, so no offset needs to be applied.
Safety
Caller needs to make sure that the allocation is still valid and coherent.
Returns a valid mapped mutable slice if the memory is host visible, otherwise it will return None. The slice already references the exact memory region of the sub allocation, so no offset needs to be applied.
Safety
Caller needs to make sure that the allocation is still valid and coherent.
Trait Implementations
Auto Trait Implementations
impl<LT> RefUnwindSafe for Allocation<LT> where
LT: RefUnwindSafe,
impl<LT> Unpin for Allocation<LT> where
LT: Unpin,
impl<LT> UnwindSafe for Allocation<LT> where
LT: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more