Lines Matching refs:xe
53 static const char* getShaderTypeSuffix (const xe::ri::Shader::ShaderType shaderType) in getShaderTypeSuffix()
57 case xe::ri::Shader::SHADERTYPE_VERTEX: return "vert"; in getShaderTypeSuffix()
58 case xe::ri::Shader::SHADERTYPE_FRAGMENT: return "frag"; in getShaderTypeSuffix()
59 case xe::ri::Shader::SHADERTYPE_GEOMETRY: return "geom"; in getShaderTypeSuffix()
60 case xe::ri::Shader::SHADERTYPE_TESS_CONTROL: return "tesc"; in getShaderTypeSuffix()
61 case xe::ri::Shader::SHADERTYPE_TESS_EVALUATION: return "tese"; in getShaderTypeSuffix()
62 case xe::ri::Shader::SHADERTYPE_COMPUTE: return "comp"; in getShaderTypeSuffix()
63 case xe::ri::Shader::SHADERTYPE_RAYGEN: return "rgen"; in getShaderTypeSuffix()
64 case xe::ri::Shader::SHADERTYPE_ANY_HIT: return "ahit"; in getShaderTypeSuffix()
65 case xe::ri::Shader::SHADERTYPE_CLOSEST_HIT: return "chit"; in getShaderTypeSuffix()
66 case xe::ri::Shader::SHADERTYPE_MISS: return "miss"; in getShaderTypeSuffix()
67 case xe::ri::Shader::SHADERTYPE_INTERSECTION: return "sect"; in getShaderTypeSuffix()
68 case xe::ri::Shader::SHADERTYPE_CALLABLE: return "call"; in getShaderTypeSuffix()
69 case xe::ri::Shader::SHADERTYPE_TASK: return "task"; in getShaderTypeSuffix()
70 case xe::ri::Shader::SHADERTYPE_MESH: return "mesh"; in getShaderTypeSuffix()
73 throw xe::Error("Invalid shader type"); in getShaderTypeSuffix()
77 static void writeShaderProgram (const CommandLine& cmdLine, const std::string& casePath, const xe::… in writeShaderProgram()
83 …const xe::ri::Shader& shader = dynamic_cast<const xe::ri::Shader&>(shaderProgram.shaders.getItem(… in writeShaderProgram()
87 throw xe::Error("File '" + shaderPath + "' exists already"); in writeShaderProgram()
93 throw xe::Error("Failed to open '" + shaderPath + "'"); in writeShaderProgram()
102 const xe::ri::List* list;
105 explicit StackEntry (const xe::ri::List* list_) : list(list_), curNdx(0) {} in StackEntry()
108 …erPrograms (const CommandLine& cmdLine, const std::string& casePath, const xe::TestCaseResult& res… in extractShaderPrograms()
121 const xe::ri::Item& curItem = curEntry.list->getItem(curEntry.curNdx); in extractShaderPrograms()
124 if (curItem.getType() == xe::ri::TYPE_SHADERPROGRAM) in extractShaderPrograms()
126 …writeShaderProgram(cmdLine, casePath, static_cast<const xe::ri::ShaderProgram&>(curItem), programN… in extractShaderPrograms()
129 else if (curItem.getType() == xe::ri::TYPE_SECTION) in extractShaderPrograms()
130 itemListStack.push_back(StackEntry(&static_cast<const xe::ri::Section&>(curItem).items)); in extractShaderPrograms()
140 class ShaderProgramExtractHandler : public xe::TestLogHandler
148 void setSessionInfo (const xe::SessionInfo&) in setSessionInfo()
153 xe::TestCaseResultPtr startTestCaseResult (const char* casePath) in startTestCaseResult()
155 return xe::TestCaseResultPtr(new xe::TestCaseResultData(casePath)); in startTestCaseResult()
158 void testCaseResultUpdated (const xe::TestCaseResultPtr&) in testCaseResultUpdated()
163 void testCaseResultComplete (const xe::TestCaseResultPtr& caseData) in testCaseResultComplete()
167 xe::TestCaseResult fullResult; in testCaseResultComplete()
168 xe::TestResultParser::ParseResult parseResult; in testCaseResultComplete()
180 xe::TestResultParser m_testResultParser;
187 xe::TestLogParser parser (&resultHandler); in extractShaderProgramsFromLogFile()