graphic diagnostics

Started by
5 comments, last by lomateron 9 years, 11 months ago

I am using windows 7 visual studio 2013 update 2 and directx 10

I am using g_pVsgDbg->CaptureCurrentFrame(); to debug some draws

the problem is that g_pVsgDbg->CaptureCurrentFrame(); only captures the draws that are after it

is there a way to capture all the draws that are in the frame were g_pVsgDbg->CaptureCurrentFrame(); was called?

more exactly I have something like this:

drawA();

if(SOMETHING)

{

g_pVsgDbg->CaptureCurrentFrame();

}

g_pSwapChain->Present(1, 0);

"SOMETHING" depends on "drawA();" so I can't move the condition and I want to debug drawA();

Advertisement
Hi. Can you use pix for windows or you need it in your own code.
Or maybe the device info interface may help you. I'm on my phone at the moment. I saw it in the sdk when looking up threading yesterday.

Hope this is what you need.

Link

ya I learn from that page how to use graphic diagnostics but I could't find there the answer to my question so I posted here

Nope, you'd just have to preemptively capture every frame in order to do this :/

Draw again ?

bool SOMETHING = drawA();

if(SOMETHING)
{   
    g_pVsgDbg->CaptureCurrentFrame();
    drawA();   
}

wow!

This topic is closed to new replies.

Advertisement