Lines Matching full:shader
21 * \brief Extract shader programs from log.
53 static const char* getShaderTypeSuffix (const xe::ri::Shader::ShaderType shaderType)
57 case xe::ri::Shader::SHADERTYPE_VERTEX: return "vert";
58 case xe::ri::Shader::SHADERTYPE_FRAGMENT: return "frag";
59 case xe::ri::Shader::SHADERTYPE_GEOMETRY: return "geom";
60 case xe::ri::Shader::SHADERTYPE_TESS_CONTROL: return "tesc";
61 case xe::ri::Shader::SHADERTYPE_TESS_EVALUATION: return "tese";
62 case xe::ri::Shader::SHADERTYPE_COMPUTE: return "comp";
64 throw xe::Error("Invalid shader type");
74 const xe::ri::Shader& shader = dynamic_cast<const xe::ri::Shader&>(shaderProgram.shaders.getItem(shaderNdx));
75 const string shaderPath = basePath + "." + getShaderTypeSuffix(shader.shaderType);
86 out.write(shader.source.source.c_str(), shader.source.source.size());
128 std::cout << "WARNING: no shader programs found in '" << casePath << "'\n";