MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / captureScreen

Method captureScreen

Source/Falcor/Core/SampleApp.cpp:577–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void SampleApp::captureScreen(Texture* pTexture)
578{
579 mCaptureScreen = false;
580
581 std::string filename = getExecutableName();
582 std::filesystem::path directory = getRuntimeDirectory();
583 std::filesystem::path path = findAvailableFilename(filename, directory, "png");
584 pTexture->captureToFile(0, 0, path);
585}
586
587void SampleApp::shutdown(int returnCode)
588{

Callers

nothing calls this directly

Calls 2

findAvailableFilenameFunction · 0.85
captureToFileMethod · 0.80

Tested by

no test coverage detected