Minor addition

This commit is contained in:
Adam Sawicki 2019-10-11 15:59:58 +02:00
parent 40ffe988a0
commit 5f573f588a

View File

@ -1337,6 +1337,14 @@ static void InitializeApplication()
} }
*/ */
// Uncomment to enable HeapSizeLimit.
/*
std::array<VkDeviceSize, VK_MAX_MEMORY_HEAPS> heapSizeLimit;
std::fill(heapSizeLimit.begin(), heapSizeLimit.end(), VK_WHOLE_SIZE);
heapSizeLimit[0] = 100ull * 1024 * 1024;
allocatorInfo.pHeapSizeLimit = heapSizeLimit.data();
*/
ERR_GUARD_VULKAN( vmaCreateAllocator(&allocatorInfo, &g_hAllocator) ); ERR_GUARD_VULKAN( vmaCreateAllocator(&allocatorInfo, &g_hAllocator) );
// Retrieve queues (don't need to be destroyed). // Retrieve queues (don't need to be destroyed).