mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 15:04:34 +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
|
#endif
|
||||||
#if VMA_EXTERNAL_MEMORY_WIN32
|
#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
|
#else
|
||||||
m_VulkanFunctions.vkGetMemoryWin32HandleKHR = VMA_NULL;
|
m_VulkanFunctions.vkGetMemoryWin32HandleKHR = VMA_NULL;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user