Lines Matching refs:glu

63 using namespace glu::TextureTestUtil;
187 if (glu::isCompressedFormat(format))
188 enumName = glu::getCompressedTextureFormatStr(format).toString().substr(14); // Strip GL_COMPRESSED_
190 enumName = glu::getUncompressedTextureFormatStr(format).toString().substr(3); // Strip GL_
197 if (glu::isCompressedFormat(format))
200 return tcu::getTextureChannelClass(glu::mapGLInternalFormat(format).type) == tcu::TEXTURECHANNELCLASS_FLOATING_POINT;
205 if (glu::isCompressedFormat(format))
208 return tcu::getTextureChannelClass(glu::mapGLInternalFormat(format).type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
213 if (glu::isCompressedFormat(format))
216 return tcu::getTextureChannelClass(glu::mapGLInternalFormat(format).type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER;
221 if (glu::isCompressedFormat(format))
225 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(glu::mapGLInternalFormat(format).type);
366 DE_ASSERT(isTextureTarget(m_target) || !glu::isCompressedFormat(m_target));
376 const glu::ObjectTraits& getObjectTraits (const ImageInfo& info)
379 return glu::objectTraits(glu::OBJECTTYPE_TEXTURE);
381 return glu::objectTraits(glu::OBJECTTYPE_RENDERBUFFER);
560 computeQuadTexCoordCube(texCoord, glu::getCubeFaceFromGL(mapFaceNdxToFace(currentImage)));
586 else if (glu::isCompressedFormat(formatA) && isAstcFormat(glu::mapGLCompressedTexFormat(formatA)))
588 else if (glu::isCompressedFormat(formatB) && isAstcFormat(glu::mapGLCompressedTexFormat(formatB)))
602 else if (glu::isCompressedFormat(formatA))
606 else if (glu::isCompressedFormat(formatB))
616 if (glu::isCompressedFormat(format))
617 return tcu::getBlockSize(glu::mapGLCompressedTexFormat(format));
619 return glu::mapGLInternalFormat(format).getPixelSize();
624 if (glu::isCompressedFormat(format))
625 return tcu::getBlockPixelSize(glu::mapGLCompressedTexFormat(format));
671 return glu::getTransferFormat(glu::mapGLInternalFormat(format)).dataType;
678 const tcu::TextureFormat format = glu::mapGLInternalFormat(glFormat);
694 else if (glu::isCompressedFormat(glFormat))
696 const tcu::CompressedTexFormat compressedFormat = glu::mapGLCompressedTexFormat(glFormat);
756 return glu::getTransferFormat(glu::mapGLInternalFormat(format)).format;
772 if (glu::isCompressedFormat(format))
876 const tcu::TextureFormat format = glu::mapGLInternalFormat(info.getFormat());
881 DE_ASSERT(!glu::isCompressedFormat(info.getFormat()));
883 glu::Framebuffer framebuffer(gl);
1057 const tcu::TextureFormat format = glu::mapGLInternalFormat(info.getFormat());
1078 const tcu::TextureFormat format = glu::mapGLInternalFormat(info.getFormat());
1127 void renderTexture (glu::RenderContext& renderContext,
1201 glu::readPixels(renderContext, boundingBox.x(), boundingBox.y(), renderedFrame.getAccess());
1223 glu::RenderContext& renderContext,
1277 glu::RenderContext& renderContext,
1281 const tcu::CompressedTexFormat compressedFormat = glu::mapGLCompressedTexFormat(info.getFormat());
1284 const bool isES32 = glu::contextSupports(renderContext.getType(), glu::ApiType::es(3, 2));
1286 de::UniquePtr<glu::ContextInfo> ctxInfo (glu::ContextInfo::create(renderContext));
1313 glu::RenderContext& renderContext,
1322 if (glu::isCompressedFormat(info.getFormat()))
1345 glu::RenderContext& renderContext,
1385 glu::RenderContext& renderContext,
1394 if (glu::isCompressedFormat(info.getFormat()))
1417 glu::RenderContext& renderContext,
1457 glu::RenderContext& renderContext,
1466 if (glu::isCompressedFormat(info.getFormat()))
1468 const tcu::CompressedTexFormat& compressedFormat = glu::mapGLCompressedTexFormat(info.getFormat());
1474 const bool isES32 = glu::contextSupports(renderContext.getType(), glu::ApiType::es(3, 2));
1478 de::UniquePtr<glu::ContextInfo> ctxInfo (glu::ContextInfo::create(renderContext));
1517 levels[glu::getCubeFaceFromGL(mapFaceNdxToFace(faceNdx))] = &(levelAccesses[faceNdx][0]);
1540 levels[glu::getCubeFaceFromGL(mapFaceNdxToFace(faceNdx))] = &(levelAccesses[faceNdx][0]);
1551 glu::RenderContext& renderContext,
1590 glu::RenderContext& renderContext,
1599 if (glu::isCompressedFormat(info.getFormat()))
1667 glu::RenderContext& renderContext,
1677 const tcu::TextureFormat format = glu::mapGLInternalFormat(info.getFormat());
1687 glu::Framebuffer framebuffer(gl);
1697 glu::readPixels(renderContext, 0, 0, renderbuffer.getAccess());
1737 glu::RenderContext& renderContext,
1846 glu::RenderContext& renderContext)
1851 , textureRenderer (renderContext, log, glu::getContextTypeGLSLVersion(renderContext.getType()), glu::PRECISION_HIGHP)
1863 glu::ObjectWrapper* srcImage;
1864 glu::ObjectWrapper* dstImage;
1897 void checkFormatSupport (glu::ContextInfo& info, deUint32 format, deUint32 target, glu::RenderContext& ctx)
1899 const bool isES32 = glu::contextSupports(ctx.getType(), glu::ApiType::es(3, 2));
1901 if (glu::isCompressedFormat(format))
1903 if (isAstcFormat(glu::mapGLCompressedTexFormat(format)))
1927 de::UniquePtr<glu::ContextInfo> ctxInfo (glu::ContextInfo::create(rc));
1928 const bool isES32orGL45 = glu::contextSupports(rc.getType(), glu::ApiType::es(3, 2)) ||
1929 glu::contextSupports(rc.getType(), glu::ApiType::core(4, 5));
1964 glu::RenderContext& renderContext = m_context.getRenderContext();
1972 m_state->srcImage = new glu::ObjectWrapper(gl, getObjectTraits(m_srcImageInfo));
1973 m_state->dstImage = new glu::ObjectWrapper(gl, getObjectTraits(m_dstImageInfo));
1976 glu::ObjectWrapper& srcImage = *m_state->srcImage;
1977 glu::ObjectWrapper& dstImage = *m_state->dstImage;
2014 glu::ObjectWrapper& srcImage = *m_state->srcImage;
2029 glu::ObjectWrapper& dstImage = *m_state->dstImage;
2044 glu::ObjectWrapper& srcImage = *m_state->srcImage;
2059 glu::ObjectWrapper& dstImage = *m_state->dstImage;
2198 glu::ObjectWrapper& srcImage = *m_state->srcImage;
2199 glu::ObjectWrapper& dstImage = *m_state->dstImage;
2383 if (glu::isCompressedFormat(srcFormat) && srcTarget == GL_RENDERBUFFER)
2389 if (glu::isCompressedFormat(srcFormat) && !tcu::isAstcFormat(glu::mapGLCompressedTexFormat(srcFormat)) && srcIs3D)
2397 if (glu::isCompressedFormat(dstFormat) && dstTarget == GL_RENDERBUFFER)
2403 if (glu::isCompressedFormat(dstFormat) && !tcu::isAstcFormat(glu::mapGLCompressedTexFormat(dstFormat)) && dstIs3D)
2409 const bool isCompressedCase = glu::isCompressedFormat(srcFormat) || glu::isCompressedFormat(dstFormat);