From 4a546d33c064e999a2d1c04ca0726d987e6e70ac Mon Sep 17 00:00:00 2001 From: Orhun Birsoy Date: Thu, 27 Dec 2018 13:06:13 -0700 Subject: [PATCH] Pass the full count of the indirectCommands to vkCmdDrawIndexedIndirect Items with zero instance count still need to be processed. --- examples/computecullandlod/computecullandlod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/computecullandlod/computecullandlod.cpp b/examples/computecullandlod/computecullandlod.cpp index b0d8ad7d..ec4febec 100644 --- a/examples/computecullandlod/computecullandlod.cpp +++ b/examples/computecullandlod/computecullandlod.cpp @@ -200,7 +200,7 @@ public: 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 {