Lines Matching refs:glu
82 const char* getConstShaderSource (const glu::ShaderType shaderType)
84 DE_ASSERT(shaderType == glu::SHADERTYPE_VERTEX || shaderType == glu::SHADERTYPE_FRAGMENT);
86 if (shaderType == glu::SHADERTYPE_VERTEX)
162 glu::ShaderType shaderType;
168 LongShaderSpec (const glu::ShaderType shaderTypeInit, const deUint32 opsTotalInit)
184 glu::ShaderSource getSource (void);
214 DE_ASSERT(m_spec.shaderType == glu::SHADERTYPE_VERTEX || m_spec.shaderType == glu::SHADERTYPE_FRAGMENT);
217 glu::ShaderSource LongShaderGenerator::getSource (void)
222 return glu::ShaderSource(m_spec.shaderType, m_source);
233 if (m_spec.shaderType == glu::SHADERTYPE_FRAGMENT)
274 return (m_spec.shaderType == glu::SHADERTYPE_VERTEX) ? "gl_Position" : "o_fragColor";
358 void verify (const glu::ShaderProgram& program);
361 const glu::ShaderType m_shaderType;
374 DE_ASSERT(m_shaderType == glu::SHADERTYPE_VERTEX || m_shaderType == glu::SHADERTYPE_FRAGMENT);
389 const glu::ShaderType otherShader = (m_shaderType == glu::SHADERTYPE_VERTEX) ? glu::SHADERTYPE_FRAGMENT : glu::SHADERTYPE_VERTEX;
390 glu::ProgramSources sources;
393 sources << glu::ShaderSource(otherShader, getConstShaderSource(otherShader));
396 glu::ShaderProgram program(m_context.getRenderContext(), sources);
406 void LongShaderCompileStressCase::verify (const glu::ShaderProgram& program)
456 const glu::ShaderType shaderType = (shaderTypeInt == 0) ? glu::SHADERTYPE_VERTEX : glu::SHADERTYPE_FRAGMENT;
460 const std::string name = de::toString(opCount) + "_operations_" + glu::getShaderTypeName(shaderType);
461 const std::string desc = std::string("Compile ") + glu::getShaderTypeName(shaderType) + " shader with " + de::toString(opCount) + " operations";