Lines Matching defs:lod
452 static inline Vec4 sample (const tcu::Texture2D& tex, const Vec2& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), lod); }
453 static inline Vec4 sample (const tcu::TextureCube& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), coord.z(), lod); }
454 static inline Vec4 sample (const tcu::Texture2DArray& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), coord.z(), lod); }
455 static inline Vec4 sample (const tcu::Texture3D& tex, const Vec3& coord, float lodlod); }
458 void computeReference (const typename TexTypeTcuClass<TexType>::t& texture, float lod, const tcu::Sampler& sampler, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst, const Rect& dstRegion)
469 quadColors[ndx] = sample(texture, coord, lod, sampler);
500 void setupShaderInputs (int textureNdx, float lod, const Grid& grid) const;
501 void renderCell (int textureNdx, float lod, const Grid& grid) const;
502 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const;
703 const float lod = calculateLod(rend.texCoordScale, rend.region.size().asFloat(), rend.textureNdx);
704 const bool useSafeTexCoords = isLevelNearest(lod > 0.0f ? m_minFilter : m_magFilter);
709 renderCell (rend.textureNdx, lod, grid);
710 computeReferenceCell (rend.textureNdx, lod, grid, refImage, rend.region);
731 void Vertex2DTextureCase::setupShaderInputs (int textureNdx, float lod, const Grid& grid) const
760 glUniform1f(lodLoc, lod);
778 void Vertex2DTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
780 setupShaderInputs(textureNdx, lod, grid);
784 void Vertex2DTextureCase::computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const
786 computeReference(m_textures[textureNdx]->getRefTexture(), lod, glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, m_magFilter), grid, dst, dstRegion);
806 void setupShaderInputs (int textureNdx, float lod, const Grid& grid) const;
807 void renderCell (int textureNdx, float lod, const Grid& grid) const;
808 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const;
1038 const float lod = calculateLod(rend.texCoordScale, rend.region.size().asFloat(), rend.textureNdx);
1039 const bool useSafeTexCoords = isLevelNearest(lod > 0.0f ? m_minFilter : m_magFilter);
1044 renderCell (rend.textureNdx, lod, grid);
1045 computeReferenceCell (rend.textureNdx, lod, grid, refImage, rend.region);
1066 void VertexCubeTextureCase::setupShaderInputs (int textureNdx, float lod, const Grid& grid) const
1095 glUniform1f(lodLoc, lod);
1113 void VertexCubeTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
1115 setupShaderInputs(textureNdx, lod, grid);
1120 void VertexCubeTextureCase::computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const
1124 computeReference(m_textures[textureNdx]->getRefTexture(), lod, sampler, grid, dst, dstRegion);
1144 void setupShaderInputs (int textureNdx, float lod, const Grid& grid) const;
1145 void renderCell (int textureNdx, float lod, const Grid& grid) const;
1146 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const;
1378 const float lod = calculateLod(rend.texTransform, rend.region.size().asFloat(), rend.textureNdx);
1379 lod > 0.0f ? m_minFilter : m_magFilter);
1384 renderCell (rend.textureNdx, lod, grid);
1385 computeReferenceCell (rend.textureNdx, lod, grid, refImage, rend.region);
1406 void Vertex2DArrayTextureCase::setupShaderInputs (int textureNdx, float lod, const Grid& grid) const
1435 glUniform1f(lodLoc, lod);
1453 void Vertex2DArrayTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
1455 setupShaderInputs(textureNdx, lod, grid);
1460 void Vertex2DArrayTextureCase::computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const
1462 computeReference(m_textures[textureNdx]->getRefTexture(), lod, glu::mapGLSampler(m_wrapS, m_wrapT, m_minFilter, m_magFilter), grid, dst, dstRegion);
1482 void setupShaderInputs (int textureNdx, float lod, const Grid& grid) const;
1483 void renderCell (int textureNdx, float lod, const Grid& grid) const;
1484 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const;
1721 const float lod = calculateLod(rend.texTransform, rend.region.size().asFloat(), rend.textureNdx);
1722 const bool useSafeTexCoords = isLevelNearest(lod > 0.0f ? m_minFilter : m_magFilter);
1727 renderCell (rend.textureNdx, lod, grid);
1728 computeReferenceCell (rend.textureNdx, lod, grid, refImage, rend.region);
1749 void Vertex3DTextureCase::setupShaderInputs (int textureNdx, float lod, const Grid& grid) const
1778 glUniform1f(lodLoc, lod);
1797 void Vertex3DTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
1799 setupShaderInputs(textureNdx, lod, grid);
1804 void Vertex3DTextureCase::computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const
1806 computeReference(m_textures[textureNdx]->getRefTexture(), lod, glu::mapGLSampler(m_wrapS, m_wrapT, m_wrapR, m_minFilter, m_magFilter), grid, dst, dstRegion);