mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Added VmaVulkanFunctions::vkGetInstanceProcAddr, vkGetDeviceProcAddr
These are now required when using VMA_DYNAMIC_VULKAN_FUNCTIONS. Compatibility breaking! Closes #211
This commit is contained in:
parent
00d064e21e
commit
f529a86ab5
23 changed files with 376 additions and 285 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue