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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;
}