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

Method OpenCapture

qrenderdoc/Code/ReplayManager.cpp:45–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void ReplayManager::OpenCapture(const QString &capturefile, const ReplayOptions &opts,
46 RENDERDOC_ProgressCallback progress)
47{
48 if(m_Running)
49 return;
50
51 m_FatalError = {};
52 m_FatalError.code = ResultCode::Succeeded;
53
54 // TODO maybe we could expose this choice to the user?
55 int proxyRenderer = -1;
56
57 m_Thread = new LambdaThread([this, proxyRenderer, capturefile, opts, progress]() {
58 run(proxyRenderer, capturefile, opts, progress);
59 });
60 m_Thread->setName(lit("ReplayManager"));
61 m_Thread->start(QThread::HighestPriority);
62
63 while(m_Thread->isRunning() && !m_Running)
64 {
65 QThread::msleep(50);
66 }
67}
68
69void ReplayManager::DeleteCapture(const rdcstr &capture, bool local)
70{

Callers 2

runMethod · 0.45
LoadCaptureThreadedMethod · 0.45

Calls 3

setNameMethod · 0.45
startMethod · 0.45
isRunningMethod · 0.45

Tested by

no test coverage detected