Struct vk_mem_erupt::Allocation [−][src]
pub struct Allocation { /* fields omitted */ }
Expand description
Represents single memory allocation.
It may be either dedicated block of erupt::vk::DeviceMemory
or a specific region of a
bigger block of this type plus unique offset.
Although the library provides convenience functions that create a Vulkan buffer or image, allocate memory for it and bind them together, binding of the allocation to a buffer or an image is out of scope of the allocation itself.
Allocation object can exist without buffer/image bound, binding can be done manually by the user, and destruction of it can be done independently of destruction of the allocation.
The object also remembers its size and some other information. To retrieve this information,
use Allocator::get_allocation_info
.
Some kinds allocations can be in lost state.
Implementations
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more