Advertisement

How do I create two vertex buffers in directX?

Started by January 10, 2018 07:39 PM
1 comment, last by Infinisearch 6 years, 10 months ago

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

If I'm understanding you correctly you should read through this: https://msdn.microsoft.com/en-us/library/windows/desktop/bb205117(v=vs.85).aspx#Create_Input_Buffers

The section 'input slots' is what you're after... but you'll need to read through the whole example.

IIRC they are also called vertex streams or input streams.

-potential energy is easily made kinetic-

This topic is closed to new replies.

Advertisement