From 5f573f588adadd7e2bb35a94c30f17f73f429567 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Fri, 11 Oct 2019 15:59:58 +0200 Subject: [PATCH] Minor addition --- src/VulkanSample.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/VulkanSample.cpp b/src/VulkanSample.cpp index d289317..dc9e76c 100644 --- a/src/VulkanSample.cpp +++ b/src/VulkanSample.cpp @@ -1337,6 +1337,14 @@ static void InitializeApplication() } */ + // Uncomment to enable HeapSizeLimit. + /* + std::array 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) ); // Retrieve queues (don't need to be destroyed).