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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.