If I have different data types (position, normal and color, for example) that are not interleaved but are stored in the same vertex buffer, could I bind that buffer to more than one input slot in the IA stage to point to all 3 of these data areas simultaneously?
Asked
Active
Viewed 468 times
3
-
Can you clarify exactly how you have your data laid out and why? – Chuck Walbourn Apr 30 '15 at 16:17
1 Answers
3
Yes this is totally allowed.
When you call IaSetVertexBuffers
you can provide the pOffsets parameter, which is the starting location within your buffer.
So it is possible to assign the same buffer in different slots with a different start location.

mrvux
- 8,523
- 1
- 27
- 61