Skip to content

Commit 790c461

Browse files
Change in ImportVulkanFunctions_Dynamic for loading function vkGetPhysicalDeviceMemoryProperties2
See #410
1 parent f74c2d9 commit 790c461

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/vk_mem_alloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13302,10 +13302,14 @@ void VmaAllocator_T::ImportVulkanFunctions_Dynamic()
1330213302
if(m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0))
1330313303
{
1330413304
VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2");
13305+
// Try to fetch the pointer from the other name, based on suspected driver bug - see issue #410.
13306+
VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2KHR");
1330513307
}
1330613308
else if(m_UseExtMemoryBudget)
1330713309
{
1330813310
VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2KHR");
13311+
// Try to fetch the pointer from the other name, based on suspected driver bug - see issue #410.
13312+
VMA_FETCH_INSTANCE_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR, PFN_vkGetPhysicalDeviceMemoryProperties2KHR, "vkGetPhysicalDeviceMemoryProperties2");
1330913313
}
1331013314
#endif
1331113315

0 commit comments

Comments
 (0)