I've been writing Direct3D11 code using a vertex shader and pixel shader, a vertex buffer, an index buffer, an instance buffer, and a constant buffer. At one point I had everything working, but I didn't commit my code then and I was trying out other stuff.
I've recently been having problems transferring the instance data to the vertex shader.
Using the Visual Studio Graphics Debugger, which is awesome, I've figured out that even though I'm calling this:
D3DDeviceContext->DrawIndexedInstanced(12U, 8U, 0U, 0U, 0U);
the instance data floats in the vertex shader are all 0.0f's...
Here's the thing though: it was working before, without an index buffer. Now, with the index buffer, no instance data is copied???
Do you know what could cause this?