mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 04:10:06 +00:00
dynamic fetching of function
This commit is contained in:
parent
65afd9e98b
commit
0c8feb29ff
@ -13128,7 +13128,8 @@ void VmaAllocator_T::ImportVulkanFunctions_Static()
|
||||
}
|
||||
#endif
|
||||
#if VMA_EXTERNAL_MEMORY_WIN32
|
||||
m_VulkanFunctions.vkGetMemoryWin32HandleKHR = (PFN_vkGetMemoryWin32HandleKHR)vkGetMemoryWin32HandleKHR;
|
||||
// Can only be fetched dynamically
|
||||
m_VulkanFunctions.vkGetMemoryWin32HandleKHR = (PFN_vkGetMemoryWin32HandleKHR)m_VulkanFunctions.vkGetDeviceProcAddr(m_hDevice, "vkGetMemoryWin32HandleKHR");
|
||||
#else
|
||||
m_VulkanFunctions.vkGetMemoryWin32HandleKHR = VMA_NULL;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user