Fixed first instance in MDI call being wrong

This commit is contained in:
Kah Wei 2022-09-28 14:47:50 +08:00
parent a2311a473e
commit d9582cd0bd
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ namespace SHADE
.instanceCount = static_cast<uint32_t>(subBatch.Renderables.size()),
.firstIndex = subBatch.Mesh->FirstIndex,
.vertexOffset = subBatch.Mesh->FirstVertex,
.firstInstance = nextInstanceIndex
.firstInstance = nextInstanceIndex++
});
// Fill in buffers (CPU)