Class VulkanMemoryAllocator#

Class Documentation#

class VulkanMemoryAllocator#

Public Functions

VulkanMemoryAllocator(TRAP::Ref<VulkanDevice> device, TRAP::Ref<VulkanInstance> instance)#

Constructor.

Parameters:
  • device – Logical Vulkan device.

  • instance – Vulkan instance.

~VulkanMemoryAllocator()#

Destructor.

consteval VulkanMemoryAllocator(const VulkanMemoryAllocator&) noexcept = delete#

Copy constructor.

consteval VulkanMemoryAllocator &operator=(const VulkanMemoryAllocator&) noexcept = delete#

Copy assignment operator.

VulkanMemoryAllocator(VulkanMemoryAllocator&&) noexcept = default#

Move constructor.

VulkanMemoryAllocator &operator=(VulkanMemoryAllocator&&) noexcept = default#

Move assignment operator.

constexpr VmaAllocator GetVMAAllocator() const noexcept#

Retrieve the Vulkan memory allocator (VMA) allocator handle.

Returns:

VMA allocator handle.