OpenGL integration tests: match D3D12 capture pattern (frame 30 only)

This commit is contained in:
2026-03-24 00:04:22 +08:00
parent 36c1c8338f
commit 5811967679
4 changed files with 36 additions and 36 deletions

View File

@@ -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);
}
}
}