Lines Matching refs:glu

160 	glu::ProgramSources prepareTexturingProgramSources(GLint internalFormat, GLenum format, GLenum type) const;
201 const glu::ContextInfo& contextInfo = m_context.getContextInfo();
231 tcu::TextureFormat tcuTextureFormat = glu::mapGLTransferFormat(format, type);
262 glu::ProgramSources InternalformatCaseBase::prepareTexturingProgramSources(GLint internalFormat, GLenum format,
265 glu::RenderContext& renderContext = m_context.getRenderContext();
266 glu::ContextType contextType = renderContext.getType();
267 glu::GLSLVersion glslVersion = glu::getContextTypeGLSLVersion(contextType);
273 specializationMap["VERSION"] = glu::getGLSLVersionDeclaration(glslVersion);
275 if (glu::contextSupports(contextType, glu::ApiType::es(3, 0)) || glu::isContextTypeGLCore(contextType))
387 return glu::makeVtxFragSources(vs.c_str(), fs.c_str());
396 static const glu::VertexArrayBinding vertexArrays[] = { glu::va::Float("position", 2, 4, 0, position),
397 glu::va::Float("inTexcoord", 2, 4, 0, texCoord) };
399 glu::draw(m_context.getRenderContext(), programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays,
400 glu::pr::TriangleStrip(DE_LENGTH_OF_ARRAY(quadIndices), quadIndices));
802 glu::RenderContext& renderContext = m_context.getRenderContext();
821 if (glu::IsES3Compatible(gl))
840 << glu::getTextureFormatStr(m_testFormat.format).toString() << tcu::TestLog::EndMessage;
873 glu::ShaderProgram testProgram(
888 glu::readPixels(renderContext, 0, 0, testSurface.getAccess());
891 glu::ProgramSources referenceSources =
893 glu::ShaderProgram referenceProgram(renderContext, referenceSources);
906 glu::readPixels(renderContext, 0, 0, referenceSurface.getAccess());
946 glu::RenderContext& renderContext = m_context.getRenderContext();
956 glu::ShaderProgram program(renderContext,
986 glu::readPixels(renderContext, 0, 0, referenceSurface.getAccess());
1021 if (glu::isContextTypeES(renderContext.getType()) && getTypeFromInternalFormat(textureInternalFormat) != GL_UNSIGNED_BYTE)
1050 glu::readPixels(renderContext, 0, 0, resultSurface.getAccess());
1084 glu::ProgramSources prepareColoringProgramSources(GLenum format, GLenum type) const;
1118 glu::RenderContext& renderContext = m_context.getRenderContext();
1155 if (glu::isContextTypeES(m_context.getRenderContext().getType()))
1182 glu::ShaderProgram program0(renderContext,
1184 glu::ShaderProgram program1(renderContext, prepareColoringProgramSources(testFormat, testType));
1186 std::vector<glu::ShaderProgram*> programs;
1247 glu::readPixels(renderContext, 0, 0, pixelBuffer);
1260 glu::readPixels(renderContext, 0, 0, pixelBuffer);
1268 glu::readPixels(renderContext, 0, 0, testSurface[0][loop].getAccess());
1301 glu::readPixels(renderContext, 0, 0, testSurface[1][loop].getAccess());
1359 glu::RenderContext& renderContext = m_context.getRenderContext();
1379 if (glu::contextSupports(renderContext.getType(), glu::ApiType::es(2, 0)))
1443 const glu::VertexArrayBinding vertexArrays[] = { glu::va::Float("position", 3, 4, 0, positions),
1444 glu::va::Float("color", 4, 4, 0, colors) };
1446 glu::draw(m_context.getRenderContext(), programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays,
1447 glu::pr::TriangleStrip(DE_LENGTH_OF_ARRAY(quadIndices), quadIndices));
1450 glu::ProgramSources RenderbufferCase::prepareColoringProgramSources(GLenum format, GLenum type) const
1452 glu::RenderContext& renderContext = m_context.getRenderContext();
1453 glu::ContextType contextType = renderContext.getType();
1454 glu::GLSLVersion glslVersion = glu::getContextTypeGLSLVersion(contextType);
1455 std::string versionDeclaration = glu::getGLSLVersionDeclaration(glslVersion);
1462 if (glu::contextSupports(contextType, glu::ApiType::es(3, 0)) || glu::isContextTypeGLCore(contextType))
1531 return glu::makeVtxFragSources(vs.c_str(), fs.c_str());
1560 void InternalformatTests::getESTestData(TestData& testData, glu::ContextType& contextType)
1603 if (glu::contextSupports(contextType, glu::ApiType::es(3, 0)))
1686 else if (glu::contextSupports(contextType, glu::ApiType::es(2, 0)))
1738 void InternalformatTests::getGLTestData(TestData& testData, glu::ContextType&)
1805 // this function extends glu::getTextureFormatStr by formats used in thise tests
1811 // store in map formats that are not supported by glu::getTextureFormatStr
1823 // if format is not in map try glu function
1824 std::string formatString = glu::getTextureFormatStr(format).toString();
1842 glu::ContextType contextType = m_context.getRenderContext().getType();
1843 if (glu::isContextTypeGLCore(contextType))
1854 std::string type = glu::getTypeStr(tf.type).toString();