use renderable mesh index
This commit is contained in:
parent
c2fa5f2b94
commit
c480a575f8
|
@ -569,7 +569,7 @@ int main(int argc, char** argv)
|
||||||
auto indirectPtr = reinterpret_cast<VkDrawIndexedIndirectCommand *>(indirectBuffer.ptr);
|
auto indirectPtr = reinterpret_cast<VkDrawIndexedIndirectCommand *>(indirectBuffer.ptr);
|
||||||
for (size_t i = 0; i < g_renderables.size(); i++) {
|
for (size_t i = 0; i < g_renderables.size(); i++) {
|
||||||
const auto& renderable = g_renderables[i];
|
const auto& renderable = g_renderables[i];
|
||||||
const uint32_t meshIdx = 0;//renderable.meshIdx;
|
const uint32_t meshIdx = renderable.meshIdx;
|
||||||
|
|
||||||
indirectPtr[i] = VkDrawIndexedIndirectCommand
|
indirectPtr[i] = VkDrawIndexedIndirectCommand
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue