MCPcopy Create free account
hub / github.com/baldurk/renderdoc / CloseCapture

Method CloseCapture

qrenderdoc/Code/CaptureContext.cpp:1419–1477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1417}
1418
1419void CaptureContext::CloseCapture()
1420{
1421 if(!m_CaptureLoaded)
1422 return;
1423
1424 delete m_Watcher;
1425 m_Watcher = NULL;
1426
1427 delete m_RGP;
1428 m_RGP = NULL;
1429
1430 m_Config.CrashReport_LastOpenedCapture = QString();
1431
1432 m_CaptureTemporary = false;
1433
1434 m_CaptureFile = QString();
1435 m_RemoteFile = QString();
1436
1437 m_APIProps = APIProperties();
1438 m_FrameInfo = FrameDescription();
1439 m_Buffers.clear();
1440 m_BufferList.clear();
1441 m_Textures.clear();
1442 m_TextureList.clear();
1443 m_Resources.clear();
1444 m_ResourceList.clear();
1445 m_OrigToReplacedResources.clear();
1446 m_ReplacedToOrigResources.clear();
1447
1448 m_CustomNames.clear();
1449 m_Bookmarks.clear();
1450 m_Notes.clear();
1451
1452 m_Actions = &m_EmptyActions;
1453 m_FirstAction = m_LastAction = NULL;
1454
1455 m_CurD3D11PipelineState = NULL;
1456 m_CurD3D12PipelineState = NULL;
1457 m_CurGLPipelineState = NULL;
1458 m_CurVulkanPipelineState = NULL;
1459 m_CurPipelineState = &m_DummyPipelineState;
1460
1461 m_StructuredFile = &m_DummySDFile;
1462
1463 m_DebugMessages.clear();
1464 m_UnreadMessageCount = 0;
1465
1466 m_CaptureLoaded = false;
1467
1468 rdcarray<ICaptureViewer *> capviewers(m_CaptureViewers);
1469
1470 for(ICaptureViewer *viewer : capviewers)
1471 {
1472 if(viewer && m_CaptureViewers.contains(viewer))
1473 viewer->OnCaptureClosed();
1474 }
1475
1476 m_Replay.CloseThread();

Callers 1

runMethod · 0.45

Calls 7

APIPropertiesFunction · 0.85
FrameDescriptionClass · 0.85
CloseThreadMethod · 0.80
QStringFunction · 0.50
clearMethod · 0.45
containsMethod · 0.45
OnCaptureClosedMethod · 0.45

Tested by

no test coverage detected