- create vulkan buffer objects implementation

This commit is contained in:
Magnus Norddahl 2019-02-21 12:31:14 +01:00
commit 478ef05a0a
6 changed files with 235 additions and 12 deletions

View file

@ -364,7 +364,7 @@ void VulkanDevice::createDevice()
void VulkanDevice::createAllocator()
{
VmaAllocatorCreateInfo allocinfo = {};
allocinfo.flags = VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT;
// allocinfo.flags = VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT; // To do: enable this for better performance
allocinfo.physicalDevice = physicalDevice;
allocinfo.device = device;
allocinfo.preferredLargeHeapBlockSize = 64 * 1024 * 1024;