Skip to content

Commit e583b2d

Browse files
authored
[vulkan] Add new VMA vulkan functions. (#4893)
* Add new VMA vulkan functions. * fix
1 parent 6d223da commit e583b2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

taichi/backends/vulkan/vulkan_device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,10 @@ void VulkanDevice::create_vma_allocator() {
20072007
vk_vma_functions.vkGetPhysicalDeviceMemoryProperties2KHR =
20082008
PFN_vkGetPhysicalDeviceMemoryProperties2KHR(vkGetInstanceProcAddr(
20092009
volkGetLoadedInstance(), "vkGetPhysicalDeviceMemoryProperties2KHR"));
2010+
vk_vma_functions.vkGetDeviceBufferMemoryRequirements =
2011+
table.vkGetDeviceBufferMemoryRequirements;
2012+
vk_vma_functions.vkGetDeviceImageMemoryRequirements =
2013+
table.vkGetDeviceImageMemoryRequirements;
20102014

20112015
allocatorInfo.pVulkanFunctions = &vk_vma_functions;
20122016

0 commit comments

Comments
 (0)