Fix D3D12 InputSlot when having streams w/ instances (#2853)

This commit is contained in:
Cedric Guillemet
2022-08-03 17:02:03 +02:00
committed by GitHub
parent 8461f3406e
commit bedab93431

View File

@@ -2716,7 +2716,7 @@ namespace bgfx { namespace d3d12
}
bx::memCopy(curr, &inst, sizeof(D3D12_INPUT_ELEMENT_DESC) );
curr->InputSlot = 1;
curr->InputSlot = _numStreams;
curr->SemanticIndex = index;
curr->AlignedByteOffset = ii*16;
}