Pass the full count of the indirectCommands to vkCmdDrawIndexedIndirect
Items with zero instance count still need to be processed.
This commit is contained in:
parent
d782d4c15e
commit
4a546d33c0
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ public:
|
||||||
|
|
||||||
if (vulkanDevice->features.multiDrawIndirect)
|
if (vulkanDevice->features.multiDrawIndirect)
|
||||||
{
|
{
|
||||||
vkCmdDrawIndexedIndirect(drawCmdBuffers[i], indirectCommandsBuffer.buffer, 0, indirectStats.drawCount, sizeof(VkDrawIndexedIndirectCommand));
|
vkCmdDrawIndexedIndirect(drawCmdBuffers[i], indirectCommandsBuffer.buffer, 0, indirectCommands.size(), sizeof(VkDrawIndexedIndirectCommand));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue