tp::MemoryAllocatorSetup struct

Used to configure the device-wide Vulkan Memory Allocator.

Constructors, destructors, conversion operators

MemoryAllocatorSetup(uint64_t preferredLargeHeapBlockSize = 0, VmaDeviceMemoryCallbacks* vmaDeviceMemoryCallbacks = nullptr)

Function documentation

tp::MemoryAllocatorSetup::MemoryAllocatorSetup(uint64_t preferredLargeHeapBlockSize = 0, VmaDeviceMemoryCallbacks* vmaDeviceMemoryCallbacks = nullptr)

Parameters
preferredLargeHeapBlockSize The preferred size in bytes of a single memory block to be allocated from large heaps > 1 GiB. Set to 0 to use the VMA default, which is currently 256 MiB.
vmaDeviceMemoryCallbacks Informative callbacks for vkAllocateMemory, vkFreeMemory. See <a href='https://gpuopen-librariesandsdks.github.io/VulkanMemoryAllocator/html/struct_vma_device_memory_callbacks.html">VmaDeviceMemoryCallbacks