use renderable mesh index

This commit is contained in:
Joshua Ashton 2022-08-25 06:30:01 +00:00
parent c2fa5f2b94
commit c480a575f8
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ int main(int argc, char** argv)
auto indirectPtr = reinterpret_cast<VkDrawIndexedIndirectCommand *>(indirectBuffer.ptr);
for (size_t i = 0; i < g_renderables.size(); i++) {
const auto& renderable = g_renderables[i];
const uint32_t meshIdx = 0;//renderable.meshIdx;
const uint32_t meshIdx = renderable.meshIdx;
indirectPtr[i] = VkDrawIndexedIndirectCommand
{