mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-29 18:04:34 +00:00
Fix in TestHeapSizeLimit
This commit is contained in:
parent
2cddc30813
commit
2854266061
@ -3144,6 +3144,12 @@ void TestHeapSizeLimit()
|
||||
allocatorCreateInfo.device = g_hDevice;
|
||||
allocatorCreateInfo.instance = g_hVulkanInstance;
|
||||
allocatorCreateInfo.pHeapSizeLimit = heapSizeLimit;
|
||||
#if VMA_DYNAMIC_VULKAN_FUNCTIONS
|
||||
VmaVulkanFunctions vulkanFunctions = {};
|
||||
vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr;
|
||||
vulkanFunctions.vkGetDeviceProcAddr = vkGetDeviceProcAddr;
|
||||
allocatorCreateInfo.pVulkanFunctions = &vulkanFunctions;
|
||||
#endif
|
||||
|
||||
VmaAllocator hAllocator;
|
||||
VkResult res = vmaCreateAllocator(&allocatorCreateInfo, &hAllocator);
|
||||
|
Loading…
Reference in New Issue
Block a user