diff options
author | Liam <byteslice@airmail.cc> | 2023-01-10 15:43:36 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-01-10 15:43:36 +0100 |
commit | fa8581e9008808338615fb6af1c17b4baa5ef1e9 (patch) | |
tree | 86367aa2d7fb8917a036ed297781bf98dab6beaf /src/video_core/vulkan_common/vulkan_wrapper.cpp | |
parent | macOS: Make Yuzu show up in the Launchpad Games folder (#9594) (diff) | |
download | yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.tar yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.tar.gz yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.tar.bz2 yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.tar.lz yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.tar.xz yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.tar.zst yuzu-fa8581e9008808338615fb6af1c17b4baa5ef1e9.zip |
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_wrapper.cpp')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp index 61be1fce1..486d4dfaf 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.cpp +++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp @@ -96,8 +96,8 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept { X(vkCmdDrawIndexed); X(vkCmdDrawIndirect); X(vkCmdDrawIndexedIndirect); - X(vkCmdDrawIndirectCountKHR); - X(vkCmdDrawIndexedIndirectCountKHR); + X(vkCmdDrawIndirectCount); + X(vkCmdDrawIndexedIndirectCount); X(vkCmdEndQuery); X(vkCmdEndRenderPass); X(vkCmdEndTransformFeedbackEXT); @@ -221,6 +221,12 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept { if (!dld.vkResetQueryPool) { Proc(dld.vkResetQueryPool, dld, "vkResetQueryPoolEXT", device); } + + // Support for draw indirect with count is optional in Vulkan 1.2 + if (!dld.vkCmdDrawIndirectCount) { + Proc(dld.vkCmdDrawIndirectCount, dld, "vkCmdDrawIndirectCountKHR", device); + Proc(dld.vkCmdDrawIndexedIndirectCount, dld, "vkCmdDrawIndexedIndirectCountKHR", device); + } #undef X } |