Original Post
In Direct3D you can supply multiply vertex stream sources, and Direct3D will put those together to assemble the vertices. What are some applications of this? So far I just use one stream source.
The only thing I can think of is that some effects do not need all the vertex info. For example, to draw depth, you only need the position element. So you could just bind the "position" stream source when drawing depth. Then for regular drawing, you can bind the "position", "normal", and etc. streams.
On the other hand, you could still use one stream source for both drawing depth and regular drawing and the depth shaders just ignore the other vertex components.
Is one way better than the other?
The only thing I can think of is that some effects do not need all the vertex info. For example, to draw depth, you only need the position element. So you could just bind the "position" stream source when drawing depth. Then for regular drawing, you can bind the "position", "normal", and etc. streams.
On the other hand, you could still use one stream source for both drawing depth and regular drawing and the depth shaders just ignore the other vertex components.
Is one way better than the other?