Benefits of vkCmdDrawIndirect in MoltenVK? #2487
Unanswered
WalkerWhite
asked this question in
Q&A
Replies: 1 comment
-
|
Unfortunately, Metal does not currently have a draw call that supports the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The benefit of indirect draw in Vulkan is that it is supposed to batch up draw calls which are looped through on the GPU. But looking at the code for MoltenVK it seems that vkCmdDrawIndirect and vkCmdDrawIndexedIndirect do a CPU loop through the draw calls. When I do a capture frame in Xcode, I see commands that are identical to if I had called vkCmdDraw or vkCmdDrawIndexed in a tight loop myself. In addition, the code for the indirect calls in MoltenVK seem to have a lot of potential buffer copies.
With that in mind, are there any benefits to using indirect drawing in MoltenVK?
Beta Was this translation helpful? Give feedback.
All reactions