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

Method Execute

renderdoccmd/renderdoccmd.cpp:304–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302 return true;
303 }
304 virtual int Execute(const CaptureOptions &opts)
305 {
306 std::cout << "Injecting into PID " << PID << std::endl;
307
308 rdcarray<EnvironmentModification> env;
309
310 ExecuteResult res = RENDERDOC_InjectIntoProcess(PID, env, conv(captureFile), opts, wait_for_exit);
311
312 if(res.result.code != ResultCode::Succeeded)
313 {
314 std::cerr << "Failed to inject: " << res.result.Message() << std::endl;
315 return (int)res.result.code;
316 }
317
318 if(wait_for_exit)
319 {
320 std::cerr << PID << " finished executing." << std::endl;
321 res.ident = 0;
322 }
323 else
324 {
325 std::cerr << "Launched as ID " << res.ident << std::endl;
326 }
327
328 return res.ident;
329 }
330};
331
332#if !defined(RDOC_SELFCAPTURE_LIMITEDAPI)

Callers

nothing calls this directly

Calls 2

convFunction · 0.70

Tested by

no test coverage detected