Jump to content
  • Advertisement
Ward Correll

How do I create two vertex buffers in directX?

Recommended Posts

I've included the main C++ file the rest of the program is in various wrapper classes that contain the windows and directX basic setup calls. So far I managed to split the vertex data into position and color but I can't figure out how to bind both to the pipeline. The final program so far renders a black cube but I want to bind the color input using a separate vertex buffer into the pipeline. I think it could be solved with just a few lines of code but I'm not sure what to do. This is one of the exercises in Frank Luna's Intro to DirectX12 book.BoxApp.cpp

Share this post


Link to post
Share on other sites
Advertisement

  • 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!