Lines Matching refs:glu

51 using namespace glu::TextureTestUtil;
116 void uploadTexture3D(const glu::Texture3D& texture) const;
118 void renderQuad(glu::TextureTestUtil::TextureType textureType, const float* texCoords) const;
156 !glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 0)) &&
157 !glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(3, 0)))
167 const glu::ContextInfo& contextInfo = m_context.getContextInfo();
178 int glFormat = glu::getGLFormat(format);
186 tcu::CompressedTexFormat format = glu::mapGLCompressedTexFormat(formats);
239 void Texture3DBase::uploadTexture3D(const glu::Texture3D& texture) const
241 // note: this function is modified version of glu::Texture3D::upload()
259 glu::TransferFormat transferFormat = glu::getTransferFormat(referenceTexture.getFormat());
277 void Texture3DBase::renderQuad(glu::TextureTestUtil::TextureType textureType, const float* texCoords) const
279 glu::RenderContext& renderContext = m_context.getRenderContext();
280 glu::GLSLVersion glslVersion = glu::getContextTypeGLSLVersion(renderContext.getType());
306 specializationMap["VERSION"] = glu::getGLSLVersionDeclaration(glslVersion);
329 glu::ProgramSources programSources(glu::makeVtxFragSources(vs, fs));
332 glu::ShaderProgram testProgram(renderContext, programSources);
345 const glu::VertexArrayBinding vertexArrays[] = { glu::va::Float("a_position", 2, 4, 0, position),
346 glu::va::Float("a_texCoord", numComponents, 4, 0, texCoords) };
349 glu::draw(m_context.getRenderContext(), programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays,
350 glu::pr::TriangleStrip(DE_LENGTH_OF_ARRAY(quadIndices), quadIndices));
361 m_testCtx.getLog() << tcu::TestLog::Message << glu::getErrorStr(static_cast<int>(expectedError))
362 << " was expected but got " << glu::getErrorStr(static_cast<int>(currentError)) << ". "
374 m_testCtx.getLog() << tcu::TestLog::Message << glu::getErrorStr(static_cast<int>(expectedError1)) << " or "
375 << glu::getErrorStr(static_cast<int>(expectedError1)) << " was expected but got "
376 << glu::getErrorStr(static_cast<int>(currentError)) << ". " << missmatchMessage
485 const glu::Texture3D* texture;
493 FilterCase(const glu::Texture3D* tex_, const tcu::Vec3& lod_, const tcu::Vec3& offset_)
505 glu::Texture3D* m_gradientTex;
506 glu::Texture3D* m_gridTex;
537 const tcu::TextureFormat texFmt = glu::mapGLInternalFormat(internalFormat);
544 m_gradientTex = new glu::Texture3D(m_context.getRenderContext(), internalFormat, width, height, depth);
545 m_gridTex = new glu::Texture3D(m_context.getRenderContext(), internalFormat, width, height, depth);
612 refParams.sampler = glu::mapGLSampler(m_filteringData.wrapS, m_filteringData.wrapT, m_filteringData.wrapR,
656 glu::readPixels(m_context.getRenderContext(), 0, 0, rendered.getAccess());
704 glu::RenderContext& renderCtx = m_context.getRenderContext();
709 glu::Texture3D texture(m_context.getRenderContext(), m_internalFormat, m_width, m_height, m_depth);
749 glu::TransferFormat transferFormat = glu::getTransferFormat(textureFormat);
760 refParams.sampler = glu::mapGLSampler(GL_REPEAT, GL_REPEAT, GL_REPEAT, GL_NEAREST_MIPMAP_NEAREST, GL_NEAREST);
774 glu::readPixels(m_context.getRenderContext(), 0, 0, rendered.getAccess());
815 glu::RenderContext& renderCtx = m_context.getRenderContext();
822 glu::Texture3D texture(m_context.getRenderContext(), m_format, m_type, m_width, m_height, m_depth);
886 refParams.sampler = glu::mapGLSampler(GL_REPEAT, GL_REPEAT, GL_REPEAT, GL_NEAREST_MIPMAP_NEAREST, GL_NEAREST);
898 glu::readPixels(m_context.getRenderContext(), 0, 0, rendered.getAccess());
942 glu::RenderContext& renderCtx = m_context.getRenderContext();
947 glu::Texture3D texture3D(m_context.getRenderContext(), m_format, m_type, m_width, m_height, m_depth);
948 glu::Texture2D texture2D(m_context.getRenderContext(), m_format, m_type, m_width, m_height);
1004 refParams.sampler = glu::mapGLSampler(GL_REPEAT, GL_REPEAT, GL_NEAREST_MIPMAP_NEAREST, GL_NEAREST);
1012 glu::readPixels(m_context.getRenderContext(), 0, 0, rendered.getAccess());
1024 void checkFormatSupport(const glu::ContextInfo& info, deUint32 format)
1026 if (glu::isCompressedFormat(format))
1028 if (isAstcFormat(glu::mapGLCompressedTexFormat(format)))
1061 const glu::ContextInfo& contextInfo = m_context.getContextInfo();
1062 tcu::CompressedTexFormat format = glu::mapGLCompressedTexFormat(m_compressedFormat);
1649 const glu::ContextInfo& contextInfo = m_context.getContextInfo();
1685 deUint32 compressedFormat = glu::getGLFormat(format);
1781 const glu::ContextInfo& contextInfo = m_context.getContextInfo();
2140 deUint32 compressedFormat = glu::getGLFormat(format);