OpenGL integration tests: match D3D12 capture pattern (frame 30 only)
This commit is contained in:
@@ -174,10 +174,10 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
|
||||
MSG msg = {};
|
||||
int frameCount = 0;
|
||||
const int captureStartFrame = 25;
|
||||
const int captureEndFrame = 35;
|
||||
const int captureStartFrame = 29;
|
||||
const int captureEndFrame = 30;
|
||||
|
||||
while (frameCount < captureEndFrame) {
|
||||
while (true) {
|
||||
if (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) {
|
||||
if (msg.message == WM_QUIT) {
|
||||
break;
|
||||
@@ -197,16 +197,16 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
swapChain.Present(0, 0);
|
||||
frameCount++;
|
||||
|
||||
if (frameCount == captureStartFrame) {
|
||||
RenderDocCapture::Get().BeginCapture("OpenGL_Triangle_Test");
|
||||
Log("[INFO] RenderDoc capture started at frame %d", frameCount);
|
||||
}
|
||||
|
||||
if (frameCount == captureEndFrame) {
|
||||
if (frameCount >= captureEndFrame) {
|
||||
RenderDocCapture::Get().EndCapture();
|
||||
Log("[INFO] RenderDoc capture ended at frame %d", frameCount);
|
||||
break;
|
||||
}
|
||||
|
||||
if (frameCount == captureStartFrame) {
|
||||
RenderDocCapture::Get().BeginCapture("OpenGL_Triangle_Test");
|
||||
Log("[INFO] RenderDoc capture started at frame %d", frameCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user