• Advertisement
Sign in to follow this  

Vertex and index buffers

This topic is 2175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Currently I am simply using an array of vertex structs in my vertex buffer. Each struct contains my position, normal and UV coordinates. Is there a way with D3D11 to separate this into 3 different buffers and render it using an index buffer with multiple indexes?

Share this post


Link to post
Share on other sites
Advertisement
AFAIK, using multiple index buffers at once (to index different vertex attributes) isn't possible. You could emulate it however, e.g. by storing indices inside your vertex structure (instead of values), and storing the values inside a tbuffer etc.

Share this post


Link to post
Share on other sites
Separating into three separate buffers is also bad for performance - GPUs don't like to recieve data in that kind of layout (it's something that was valid back in the old software T&L days for sure, but it's both redundant and harmful today). This is a clear case where there is a tradeoff between performance and memory usage, so remember: memory is cheap and plentiful, performance isn't.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement