Okay, so I'm currently using the IAGetVertexBuffers() method and I'd like to loop through some of the returned buffers to verify the contents.
However, I'm kind of new to DirectX and C++ in general. I tried using a a simple C++ 11 loop:
for (const auto& verts : veBuffer) {
std::cout << verts << std::endl;
But I get an error saying this statement requires a suitable begin statement. Any suggestions would be appreciated at this point.
new
/delete
) asveBuffer
. Have a look at into this question. So using a regular for loop (for (int i=0; i<SIZE, ++i)
) should already fix your problem. $\endgroup$ – wychmaster♦ Jun 24 '20 at 18:47std::vector
asveBuffer
, resize it to the necessary buffer size and pass the data pointer to your DirectX function withveBuffer.data()
. $\endgroup$ – wychmaster♦ Jun 24 '20 at 18:52