Jump to content
  • Advertisement
Sign in to follow this  
Axiverse

Discrepencies in Vertex Buffer Creation

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

I've encountered a problem where if i create a vertex buffer one way, there is no problem, but if i create it another way, nothing shows up on screen. It works if created like this:
new VertexBuffer(typeof(Sprite.Vertex), 4, device, Usage.Dynamic, 0, Pool.Default);
But not like this:
new VertexBuffer(device, Sprite.Vertex.Stride * 4, Usage.Dynamic, 0, Pool.Default);
I've tried to find the difference between the two, but the descriptions are exactly the same... They both have the same size, same parameters, everything, and yet one works and not the other...

Share this post


Link to post
Share on other sites
Advertisement
Yep, I noticed the same problem in VS 2003 Managed C++. And looking at my old Jump Start play code seems I did the same code in C# 2005 too but not sure if it was due to a problem or not.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!