Struct vk_alloc::Allocation [−][src]
pub struct Allocation<LT: Lifetime> { pub device_memory: DeviceMemory, pub offset: DeviceSize, pub size: DeviceSize, // some fields omitted }
Expand description
An allocation of the Allocator
.
Fields
device_memory: DeviceMemory
The DeviceMemory
of the allocation. Managed by the allocator.
offset: DeviceSize
The offset inside the DeviceMemory
.
size: DeviceSize
The size of the allocation.
Implementations
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.
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.
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