Skip to content

Commit

Permalink
[vulkan] Add new VMA vulkan functions. (#4893)
Browse files Browse the repository at this point in the history
* Add new VMA vulkan functions.

* fix
  • Loading branch information
bobcao3 authored Apr 30, 2022
1 parent 6d223da commit e583b2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taichi/backends/vulkan/vulkan_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,10 @@ void VulkanDevice::create_vma_allocator() {
vk_vma_functions.vkGetPhysicalDeviceMemoryProperties2KHR =
PFN_vkGetPhysicalDeviceMemoryProperties2KHR(vkGetInstanceProcAddr(
volkGetLoadedInstance(), "vkGetPhysicalDeviceMemoryProperties2KHR"));
vk_vma_functions.vkGetDeviceBufferMemoryRequirements =
table.vkGetDeviceBufferMemoryRequirements;
vk_vma_functions.vkGetDeviceImageMemoryRequirements =
table.vkGetDeviceImageMemoryRequirements;

allocatorInfo.pVulkanFunctions = &vk_vma_functions;

Expand Down

0 comments on commit e583b2d

Please sign in to comment.