Struct vk_mem_erupt::AllocationInfo [−][src]
pub struct AllocationInfo { /* fields omitted */ }
Expand description
Parameters of Allocation
objects, that can be retrieved using Allocator::get_allocation_info
.
Implementations
Handle to Vulkan memory object.
Same memory object can be shared by multiple allocations.
It can change after call to Allocator::defragment
if this allocation is passed
to the function, or if allocation is lost.
If the allocation is lost, it is equal to erupt::vk::DeviceMemory::null()
.
Offset into device memory object to the beginning of this allocation, in bytes.
(self.get_device_memory()
, self.get_offset()
) pair is unique to this allocation.
It can change after call to Allocator::defragment
if this allocation is passed
to the function, or if allocation is lost.
Size of this allocation, in bytes.
It never changes, unless allocation is lost.
Pointer to the beginning of this allocation as mapped data.
If the allocation hasn’t been mapped using Allocator::map_memory
and hasn’t been
created with AllocationCreateFlags::MAPPED
flag, this value is null.
It can change after call to Allocator::map_memory
, Allocator::unmap_memory
.
It can also change after call to Allocator::defragment
if this allocation is
passed to the function.
Custom general-purpose pointer that was passed as AllocationCreateInfo::user_data
or set using Allocator::set_allocation_user_data
.
It can change after a call to Allocator::set_allocation_user_data
for this allocation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AllocationInfo
impl Unpin for AllocationInfo
impl UnwindSafe for AllocationInfo
Blanket Implementations
Mutably borrows from an owned value. Read more