Jump to content
  • Advertisement
Sign in to follow this  
FatalCatharsis

dynamic vertex buffers in d3d11

This topic is 2595 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

hi, i have a simple question. I know how to setup a dynamic vertex buffer, and how to update the data for the vertices, but i'm curious, how do you add new vertices altogether, in d3d11? this confuses me, because it seems that when you set up the buffer description, you explicitly give it the total amount of vertices before you create the buffer. so am i supposed to ditch the current buffer entirely, and remake a brand new buffer every time you need to increase the vertices in you model? that just sounds nasty...

Share this post


Link to post
Share on other sites
Advertisement
Create it with the maximum amount of vertices that you'll need. You can have unused space at the end of a buffer.

Share this post


Link to post
Share on other sites
meh, just for making a growable buffer that holds quads for displaying characters from a texture file on, it's not like a rediculous number of vertices, just trying to find the most efficient method.

Share this post


Link to post
Share on other sites
SlimDX comes with a nice sample for a growable buffer. I can't remember it off hand, and I am not going digging through my documents any time soon, but at least you know where to look now

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!