We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ffe98 commit 5f573f5Copy full SHA for 5f573f5
1 file changed
src/VulkanSample.cpp
@@ -1337,6 +1337,14 @@ static void InitializeApplication()
1337
}
1338
*/
1339
1340
+ // Uncomment to enable HeapSizeLimit.
1341
+ /*
1342
+ std::array<VkDeviceSize, VK_MAX_MEMORY_HEAPS> heapSizeLimit;
1343
+ std::fill(heapSizeLimit.begin(), heapSizeLimit.end(), VK_WHOLE_SIZE);
1344
+ heapSizeLimit[0] = 100ull * 1024 * 1024;
1345
+ allocatorInfo.pHeapSizeLimit = heapSizeLimit.data();
1346
+ */
1347
+
1348
ERR_GUARD_VULKAN( vmaCreateAllocator(&allocatorInfo, &g_hAllocator) );
1349
1350
// Retrieve queues (don't need to be destroyed).
0 commit comments