Hi All, I am struggling with directx 12. I am following Frank D Luna's D3D12 book. I figured out there is some concept like "Staging" buffer,
which is used only during initialization. This staging buffer is vertex and index buffers.
So chapter 6 has box demo which renders a box on the viewport. But I am confused on how someone who wants to generate new boxes during runtime can possibly achieve such thing.
Do I have to presume how many boxes my rendering loop would need? This doesn't sound practical to me.
Let's say I want to generate new boxes on press of a key (Say 'B'), how should I achieve this? Do I put the "Staging buffer" in rendering loop or what?
I tried doing many things but it's either new boxes are not generated or nothing is displayed.
Below is Chapter 6 source code.
https://github.com/discosultan/dx12-game-programming/tree/master/Samples/06-Box
Can anyone modify the code and achieve generating of new boxes on click or explain on how to go about that?