-
Besides default slot 0, I want to use any other slot (from 1 to 31), to input a vertex buffer in D3D12 . For D3D11 it works ok but for D3D12 it only works for slot 0. No error but no render also. Below are the 2 instructions, I'm using to set up the vertex buffer, both D3D11 & D3D12. The InputLayout is the same for both D3D11 & D3D12: InputElementDescription("I", 0, format, offset, slot_number) The IASetVertexBuffers is also very similar: Any help is much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Doesn't this method works? |
Beta Was this translation helpful? Give feedback.
-
You're sure you're reading from input element from vertex shader? |
Beta Was this translation helpful? Give feedback.
-
I was using this slot in SetGraphicsRootDescriptorTable(slot, hMVP) for a constant buffer. |
Beta Was this translation helpful? Give feedback.
I was using this slot in SetGraphicsRootDescriptorTable(slot, hMVP) for a constant buffer.
SetGraphicsRootDescriptorTable uses a different kind of slot, so it will be hard-coded with zero for now.