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

Method formats_reader

renderdoccmd/renderdoccmd.cpp:657–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655struct formats_reader
656{
657 formats_reader(bool input)
658 {
659 ICaptureFile *tmp = RENDERDOC_OpenCaptureFile();
660
661 for(const CaptureFileFormat &f : tmp->GetCaptureFileFormats())
662 {
663 if(!f.openSupported && input)
664 continue;
665
666 exts.push_back(conv(f.extension));
667 names.push_back(conv(f.name));
668 }
669
670 tmp->Shutdown();
671 }
672 std::string operator()(const std::string &s)
673 {
674 if(std::find(exts.begin(), exts.end(), s) == exts.end())

Callers

nothing calls this directly

Calls 5

convFunction · 0.70
GetCaptureFileFormatsMethod · 0.45
push_backMethod · 0.45
ShutdownMethod · 0.45

Tested by

no test coverage detected