| 655 | struct 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()) |
nothing calls this directly
no test coverage detected