mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 09:18:34 +00:00
Minor addition
This commit is contained in:
parent
40ffe988a0
commit
5f573f588a
1 changed files with 8 additions and 0 deletions
|
@ -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) );
|
||||
|
||||
// Retrieve queues (don't need to be destroyed).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue