Home | History | Annotate | Download | only in functional

Lines Matching refs:Grid

213  * \brief Quad grid class containing position and texture coordinate data.
215 * A quad grid of size S means a grid consisting of S*S quads (S rows and
427 static void setPixelColors (const vector<Vec4>& quadColors, const Rect& region, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst)
429 const int gridSize = grid.getSize();
435 const Vec4 ldru = grid.getQuadLDRU(x, y) * 0.5f + 0.5f; // [-1, 1] -> [0, 1]
458 grid, tcu::Surface& dst, const Rect& dstRegion)
460 const int gridSize = grid.getSize();
467 const typename TexTypeCoordVec<TexType>::t& coord = grid.getQuadTexCoord(x, y);
472 setPixelColors(quadColors, dstRegion, grid, dst);
494 typedef PosTexCoordQuadGrid<TEXTURETYPE_2D> Grid;
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;
510 glu::Texture2D* m_textures[2]; // 2 textures, a gradient texture and a grid texture.
604 // Fill second with grid texture.
705 const Grid grid (GRID_SIZE_2D, rend.region.size(), getTextureSize(*m_textures[rend.textureNdx]),
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
742 glVertexAttribPointer(positionLoc, 2, GL_FLOAT, GL_FALSE, 0, grid.getPositionPtr());
751 glVertexAttribPointer(texCoordLoc, 2, GL_FLOAT, GL_FALSE, 0, grid.getTexCoordPtr());
778 void Vertex2DTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
780 setupShaderInputs(textureNdx, lod, grid);
781 glDrawElements(GL_TRIANGLES, grid.getNumIndices(), GL_UNSIGNED_SHORT, grid.getIndexPtr());
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);
800 typedef PosTexCoordQuadGrid<TEXTURETYPE_CUBE> Grid;
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;
816 glu::TextureCube* m_textures[2]; // 2 textures, a gradient texture and a grid texture.
922 // Fill second with grid texture.
1040 const Grid grid (GRID_SIZE_CUBE, rend.region.size(), getTextureSize(*m_textures[rend.textureNdx]),
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
1077 glVertexAttribPointer(positionLoc, 2, GL_FLOAT, GL_FALSE, 0, grid.getPositionPtr());
1086 glVertexAttribPointer(texCoordLoc, 3, GL_FLOAT, GL_FALSE, 0, grid.getTexCoordPtr());
1113 void VertexCubeTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
1115 setupShaderInputs(textureNdx, lod, grid);
1116 glDrawElements(GL_TRIANGLES, grid.getNumIndices(), GL_UNSIGNED_SHORT, grid.getIndexPtr());
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);
1138 typedef PosTexCoordQuadGrid<TEXTURETYPE_2D_ARRAY> Grid;
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;
1154 glu::Texture2DArray* m_textures[2]; // 2 textures, a gradient texture and a grid texture.
1250 // Fill second with grid texture.
1380 const Grid grid (GRID_SIZE_2D_ARRAY, rend.region.size(), getTextureSize(*m_textures[rend.textureNdx]),
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
1417 glVertexAttribPointer(positionLoc, 2, GL_FLOAT, GL_FALSE, 0, grid.getPositionPtr());
1426 glVertexAttribPointer(texCoordLoc, 3, GL_FLOAT, GL_FALSE, 0, grid.getTexCoordPtr());
1453 void Vertex2DArrayTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
1455 setupShaderInputs(textureNdx, lod, grid);
1456 glDrawElements(GL_TRIANGLES, grid.getNumIndices(), GL_UNSIGNED_SHORT, grid.getIndexPtr());
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);
1476 typedef PosTexCoordQuadGrid<TEXTURETYPE_3D> Grid;
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;
1493 glu::Texture3D* m_textures[2]; // 2 textures, a gradient texture and a grid texture.
1590 // Fill second with grid texture.
1723 const Grid grid (GRID_SIZE_3D, rend.region.size(), getTextureSize(*m_textures[rend.textureNdx]),
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
1760 glVertexAttribPointer(positionLoc, 2, GL_FLOAT, GL_FALSE, 0, grid.getPositionPtr());
1769 glVertexAttribPointer(texCoordLoc, 3, GL_FLOAT, GL_FALSE, 0, grid.getTexCoordPtr());
1797 void Vertex3DTextureCase::renderCell (int textureNdx, float lod, const Grid& grid) const
1799 setupShaderInputs(textureNdx, lod, grid);
1800 glDrawElements(GL_TRIANGLES, grid.getNumIndices(), GL_UNSIGNED_SHORT, grid.getIndexPtr());
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);