Skip to content

Commit 5f573f5

Browse files
Minor addition
1 parent 40ffe98 commit 5f573f5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/VulkanSample.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,14 @@ static void InitializeApplication()
13371337
}
13381338
*/
13391339

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+
13401348
ERR_GUARD_VULKAN( vmaCreateAllocator(&allocatorInfo, &g_hAllocator) );
13411349

13421350
// Retrieve queues (don't need to be destroyed).

0 commit comments

Comments
 (0)