diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-01-10 15:27:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-10 15:27:02 -0500 |
| commit | 74404261d22ff9d22da20c2fbe8b845388e8db41 (patch) | |
| tree | afba6af50ca7aec63a3d0fbdedf8855bc6ea29e2 /src/video_core/vulkan_common/vulkan_wrapper.cpp | |
| parent | e2c68edd35457dc790fbebb42ddc77f018cb8eca (diff) | |
| parent | fa8581e9008808338615fb6af1c17b4baa5ef1e9 (diff) | |
Merge pull request #9598 from liamwhite/indirect
vulkan_common: fix indirect draw with count
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 } |
