mirror of
https://github.com/utmapp/dxmt.git
synced 2026-12-01 07:53:21 -10:00
D3D11 has D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT (32) input slots, and the encoder's vertex buffer table (kVertexBufferSlots), input layout slot masks and append offsets already cover all 32. The context's input-assembler binding state held only 16, so IASetVertexBuffers, IAGetVertexBuffers and ClearState did not handle slots 16-31. Size it to D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT. The native suite gains draw_last_vertex_slot: it draws a quad from slot 31 and compares it with the same draw from slot 0, reads the binding back through IAGetVertexBuffers, and checks ClearState unbinds it. draw_and_read takes the vertex buffer slot as a new trailing argument. Without the change the suite does not complete; with it, 181/181 pass. Reported-by: Xusheng Li at Vector 35 Inc Co-Authored-By: Claude Opus 5.5 <[email protected]>