Lines Matching refs:cmdLine
77 static void writeShaderProgram (const CommandLine& cmdLine, const std::string& casePath, const xe::ri::ShaderProgram& shaderProgram, int programNdx)
79 const string basePath = string(de::FilePath::join(cmdLine.dstPath, casePath).getPath()) + "." + de::toString(programNdx);
108 static void extractShaderPrograms (const CommandLine& cmdLine, const std::string& casePath, const xe::TestCaseResult& result)
126 writeShaderProgram(cmdLine, casePath, static_cast<const xe::ri::ShaderProgram&>(curItem), programNdx);
143 ShaderProgramExtractHandler (const CommandLine& cmdLine)
144 : m_cmdLine(cmdLine)
183 static void extractShaderProgramsFromLogFile (const CommandLine& cmdLine)
185 std::ifstream in (cmdLine.filename.c_str(), std::ifstream::binary|std::ifstream::in);
186 ShaderProgramExtractHandler resultHandler (cmdLine);
192 throw std::runtime_error(string("Failed to open '") + cmdLine.filename + "'");
213 static bool parseCommandLine (CommandLine& cmdLine, int argc, const char* const* argv)
221 if (cmdLine.filename.empty())
222 cmdLine.filename = arg;
223 else if (cmdLine.dstPath.empty())
224 cmdLine.dstPath = arg;
232 if (cmdLine.filename.empty())
242 CommandLine cmdLine;
244 if (!parseCommandLine(cmdLine, argc, argv))
250 extractShaderProgramsFromLogFile(cmdLine);