Lines Matching refs:glu

65 static std::string specializeVersion(std::string const& source, glu::GLSLVersion version, std::string const& sampler,
68 DE_ASSERT(version == glu::GLSL_VERSION_310_ES || version >= glu::GLSL_VERSION_400);
70 args["VERSION_DECL"] = glu::getGLSLVersionDeclaration(version);
79 SampleShadingApiCaseGroup(Context& context, glu::GLSLVersion glslVersion)
93 SampleShadingApiCase(Context& context, glu::GLSLVersion glslVersion);
99 glu::GLSLVersion m_glslVersion;
103 glu::GLSLVersion m_glslVersion;
106 SampleShadingApiCaseGroup::SampleShadingApiCase::SampleShadingApiCase(Context& context, glu::GLSLVersion glslVersion)
109 DE_ASSERT(glslVersion == glu::GLSL_VERSION_310_ES || glslVersion >= glu::GLSL_VERSION_400);
122 if (m_glslVersion == glu::GLSL_VERSION_310_ES &&
169 SampleShadingRenderCase(Context& context, const char* name, const char* description, glu::GLSLVersion glslVersion,
178 glu::GLSLVersion m_glslVersion;
201 glu::GLSLVersion glslVersion, GLenum internalFormat,
217 DE_ASSERT(glslVersion == glu::GLSL_VERSION_310_ES || glslVersion >= glu::GLSL_VERSION_400);
230 if (m_glslVersion == glu::GLSL_VERSION_310_ES &&
303 glu::ShaderProgram program(
305 glu::makeVtxFragSources(specializeVersion(vss, m_glslVersion, m_sampler, m_outType).c_str(),
322 glu::VertexArrayBinding vertexArrays[] = {
323 glu::va::Float("a_position", 2, 4, 0, &position[0]), glu::va::Float("a_color", 4, 4, 0, &color[0]),
325 glu::draw(m_context.getRenderContext(), program.getProgram(), DE_LENGTH_OF_ARRAY(vertexArrays),
326 &vertexArrays[0], glu::pr::TriangleStrip(DE_LENGTH_OF_ARRAY(quadIndices), &quadIndices[0]));
367 glu::ShaderProgram program(
369 glu::makeVtxFragSources(specializeVersion(vss, m_glslVersion, m_sampler, m_outType).c_str(),
385 glu::VertexArrayBinding vertexArrays[] = {
386 glu::va::Float("a_position", 2, 4, 0, &position[0]),
388 glu::draw(m_context.getRenderContext(), program.getProgram(), DE_LENGTH_OF_ARRAY(vertexArrays),
389 &vertexArrays[0], glu::pr::TriangleStrip(DE_LENGTH_OF_ARRAY(quadIndices), &quadIndices[0]));
423 glu::readPixels(m_context.getRenderContext(), 0, 0, pixels);
475 SampleShadingRenderFormatTests(glcts::Context& context, glu::GLSLVersion glslVersion, GLenum internalFormat,
486 glu::GLSLVersion m_glslVersion;
496 SampleShadingRenderFormatTests::SampleShadingRenderFormatTests(Context& context, glu::GLSLVersion glslVersion,
536 SampleShadingRenderTests(glcts::Context& context, glu::GLSLVersion glslVersion);
545 glu::GLSLVersion m_glslVersion;
548 SampleShadingRenderTests::SampleShadingRenderTests(Context& context, glu::GLSLVersion glslVersion)
575 (glu::isContextTypeES(m_context.getRenderContext().getType())) ? "GL_EXT_color_buffer_float" : "";
581 SampleShadingTests::SampleShadingTests(Context& context, glu::GLSLVersion glslVersion)