Fix in TestHeapSizeLimit

This commit is contained in:
Adam Sawicki 2021-12-02 16:38:35 +01:00
parent 2cddc30813
commit 2854266061

View File

@ -3144,6 +3144,12 @@ void TestHeapSizeLimit()
allocatorCreateInfo.device = g_hDevice; allocatorCreateInfo.device = g_hDevice;
allocatorCreateInfo.instance = g_hVulkanInstance; allocatorCreateInfo.instance = g_hVulkanInstance;
allocatorCreateInfo.pHeapSizeLimit = heapSizeLimit; allocatorCreateInfo.pHeapSizeLimit = heapSizeLimit;
#if VMA_DYNAMIC_VULKAN_FUNCTIONS
VmaVulkanFunctions vulkanFunctions = {};
vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr;
vulkanFunctions.vkGetDeviceProcAddr = vkGetDeviceProcAddr;
allocatorCreateInfo.pVulkanFunctions = &vulkanFunctions;
#endif
VmaAllocator hAllocator; VmaAllocator hAllocator;
VkResult res = vmaCreateAllocator(&allocatorCreateInfo, &hAllocator); VkResult res = vmaCreateAllocator(&allocatorCreateInfo, &hAllocator);