Added VmaVulkanFunctions::vkGetInstanceProcAddr, vkGetDeviceProcAddr

These are now required when using VMA_DYNAMIC_VULKAN_FUNCTIONS. Compatibility breaking!

Closes #211
This commit is contained in:
Adam Sawicki 2021-11-29 17:52:30 +01:00
parent 00d064e21e
commit f529a86ab5
23 changed files with 376 additions and 285 deletions

View file

@ -1426,6 +1426,13 @@ void SetAllocatorCreateInfo(VmaAllocatorCreateInfo& outInfo)
outInfo.pAllocationCallbacks = &g_CpuAllocationCallbacks;
}
#if VMA_DYNAMIC_VULKAN_FUNCTIONS
static VmaVulkanFunctions vulkanFunctions = {};
vulkanFunctions.vkGetInstanceProcAddr = vkGetInstanceProcAddr;
vulkanFunctions.vkGetDeviceProcAddr = vkGetDeviceProcAddr;
outInfo.pVulkanFunctions = &vulkanFunctions;
#endif
// Uncomment to enable recording to CSV file.
/*
static VmaRecordSettings recordSettings = {};