Lines Matching refs:cellNdx
61 static float getMinLodForCell (int cellNdx) in getMinLodForCell() argument
82 return s_values[cellNdx % DE_LENGTH_OF_ARRAY(s_values)]; in getMinLodForCell()
85 static float getMaxLodForCell (int cellNdx) in getMaxLodForCell() argument
107 return s_values[cellNdx % DE_LENGTH_OF_ARRAY(s_values)]; in getMaxLodForCell()
230 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx) in getBasicTexCoord2D() argument
259 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords))); in getBasicTexCoord2D()
261 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft; in getBasicTexCoord2D()
262 const Vec2& topRight = s_basicCoords[cellNdx].topRight; in getBasicTexCoord2D()
267 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord2D() argument
270 getBasicTexCoord2D(dst, cellNdx); in getAffineTexCoord2D()
273 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord2D()
277 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f; in getAffineTexCoord2D()
362 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
369 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
370 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
375 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
378 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
414 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
421 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
422 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
427 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
430 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
670 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
672 const int curX = gridLayout[cellNdx].x(); in iterate()
673 const int curY = gridLayout[cellNdx].y(); in iterate()
674 const int curW = gridLayout[cellNdx].z(); in iterate()
675 const int curH = gridLayout[cellNdx].w(); in iterate()
676 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
685 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
691 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
726 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
728 const int curX = gridLayout[cellNdx].x(); in iterate()
729 const int curY = gridLayout[cellNdx].y(); in iterate()
730 const int curW = gridLayout[cellNdx].z(); in iterate()
731 const int curH = gridLayout[cellNdx].w(); in iterate()
732 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
740 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
746 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
1174 static void getBasicTexCoord3D (std::vector<float>& dst, int cellNdx) in getBasicTexCoord3D() argument
1205 float sScale = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].sScale; in getBasicTexCoord3D()
1206 float sBias = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].sBias; in getBasicTexCoord3D()
1207 float tScale = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].tScale; in getBasicTexCoord3D()
1208 float tBias = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].tBias; in getBasicTexCoord3D()
1209 float rScale = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].rScale; in getBasicTexCoord3D()
1210 float rBias = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].rBias; in getBasicTexCoord3D()
1220 static void getAffineTexCoord3D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord3D() argument
1223 getBasicTexCoord3D(dst, cellNdx); in getAffineTexCoord3D()
1226 float angleX = 0.0f + 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord3D()
1227 float angleY = 1.0f + 2.0f*DE_PI * ((float)cellNdx / 32.0f); in getAffineTexCoord3D()
1307 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
1314 case COORDTYPE_BASIC: getBasicTexCoord3D (texCoord, cellNdx); break; in iterate()
1315 case COORDTYPE_AFFINE: getAffineTexCoord3D (texCoord, cellNdx); break; in iterate()
1321 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
1325 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
1361 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
1367 case COORDTYPE_BASIC: getBasicTexCoord3D (texCoord, cellNdx); break; in iterate()
1368 case COORDTYPE_AFFINE: getAffineTexCoord3D (texCoord, cellNdx); break; in iterate()
1373 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
1376 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
1429 virtual void setTextureParams (int cellNdx) = DE_NULL;
1430 virtual void getReferenceParams (ReferenceParams& params, int cellNdx) = DE_NULL;
1535 int cellNdx = gridY*gridWidth + gridX; in iterate() local
1538 getBasicTexCoord2D(texCoord, cellNdx); in iterate()
1541 setTextureParams(cellNdx); in iterate()
1575 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
1577 getBasicTexCoord2D(texCoord, cellNdx); in iterate()
1578 getReferenceParams(sampleParams, cellNdx); in iterate()
1626 void setTextureParams (int cellNdx) in setTextureParams() argument
1629 gl.texParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_LOD, getMinLodForCell(cellNdx)); in setTextureParams()
1632 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1634 params.minLod = getMinLodForCell(cellNdx); in getReferenceParams()
1647 void setTextureParams (int cellNdx) in setTextureParams() argument
1650 gl.texParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, getMaxLodForCell(cellNdx)); in setTextureParams()
1653 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1655 params.maxLod = getMaxLodForCell(cellNdx); in getReferenceParams()
1668 int getBaseLevel (int cellNdx) const in getBaseLevel()
1671 const int baseLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0xac2f274a) % numLevels; in getBaseLevel()
1676 void setTextureParams (int cellNdx) in setTextureParams() argument
1679 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, getBaseLevel(cellNdx)); in setTextureParams()
1682 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1684 params.baseLevel = getBaseLevel(cellNdx); in getReferenceParams()
1697 int getMaxLevel (int cellNdx) const in getMaxLevel()
1700 const int maxLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x82cfa4e) % numLevels; in getMaxLevel()
1705 void setTextureParams (int cellNdx) in setTextureParams() argument
1708 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, getMaxLevel(cellNdx)); in setTextureParams()
1711 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1713 params.maxLevel = getMaxLevel(cellNdx); in getReferenceParams()
1731 virtual void setTextureParams (int cellNdx) = DE_NULL;
1732 virtual void getReferenceParams (ReferenceParams& params, int cellNdx) = DE_NULL;
1838 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
1840 const int curX = gridLayout[cellNdx].x(); in iterate()
1841 const int curY = gridLayout[cellNdx].y(); in iterate()
1842 const int curW = gridLayout[cellNdx].z(); in iterate()
1843 const int curH = gridLayout[cellNdx].w(); in iterate()
1844 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
1849 setTextureParams(cellNdx); in iterate()
1883 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
1885 const int curX = gridLayout[cellNdx].x(); in iterate()
1886 const int curY = gridLayout[cellNdx].y(); in iterate()
1887 const int curW = gridLayout[cellNdx].z(); in iterate()
1888 const int curH = gridLayout[cellNdx].w(); in iterate()
1889 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
1892 getReferenceParams(params, cellNdx); in iterate()
1941 void setTextureParams (int cellNdx) in setTextureParams() argument
1944 gl.texParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_LOD, getMinLodForCell(cellNdx)); in setTextureParams()
1947 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1949 params.minLod = getMinLodForCell(cellNdx); in getReferenceParams()
1962 void setTextureParams (int cellNdx) in setTextureParams() argument
1965 gl.texParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_LOD, getMaxLodForCell(cellNdx)); in setTextureParams()
1968 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1970 params.maxLod = getMaxLodForCell(cellNdx); in getReferenceParams()
1983 int getBaseLevel (int cellNdx) const in getBaseLevel()
1986 const int baseLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x23fae13) % numLevels; in getBaseLevel()
1991 void setTextureParams (int cellNdx) in setTextureParams() argument
1994 gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_BASE_LEVEL, getBaseLevel(cellNdx)); in setTextureParams()
1997 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1999 params.baseLevel = getBaseLevel(cellNdx); in getReferenceParams()
2012 int getMaxLevel (int cellNdx) const in getMaxLevel()
2015 const int maxLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x974e21) % numLevels; in getMaxLevel()
2020 void setTextureParams (int cellNdx) in setTextureParams() argument
2023 gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_LEVEL, getMaxLevel(cellNdx)); in setTextureParams()
2026 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2028 params.maxLevel = getMaxLevel(cellNdx); in getReferenceParams()
2046 virtual void setTextureParams (int cellNdx) = DE_NULL;
2047 virtual void getReferenceParams (ReferenceParams& params, int cellNdx) = DE_NULL;
2166 int cellNdx = gridY*gridWidth + gridX; in iterate() local
2169 getBasicTexCoord3D(texCoord, cellNdx); in iterate()
2171 setTextureParams(cellNdx); in iterate()
2207 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
2209 getBasicTexCoord3D(texCoord, cellNdx); in iterate()
2210 getReferenceParams(sampleParams, cellNdx); in iterate()
2258 void setTextureParams (int cellNdx) in setTextureParams() argument
2261 gl.texParameterf(GL_TEXTURE_3D, GL_TEXTURE_MIN_LOD, getMinLodForCell(cellNdx)); in setTextureParams()
2264 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2266 params.minLod = getMinLodForCell(cellNdx); in getReferenceParams()
2279 void setTextureParams (int cellNdx) in setTextureParams() argument
2282 gl.texParameterf(GL_TEXTURE_3D, GL_TEXTURE_MAX_LOD, getMaxLodForCell(cellNdx)); in setTextureParams()
2285 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2287 params.maxLod = getMaxLodForCell(cellNdx); in getReferenceParams()
2300 int getBaseLevel (int cellNdx) const in getBaseLevel()
2303 const int baseLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x7347e9) % numLevels; in getBaseLevel()
2308 void setTextureParams (int cellNdx) in setTextureParams() argument
2311 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_BASE_LEVEL, getBaseLevel(cellNdx)); in setTextureParams()
2314 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2316 params.baseLevel = getBaseLevel(cellNdx); in getReferenceParams()
2329 int getMaxLevel (int cellNdx) const in getMaxLevel()
2332 const int maxLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x9111e7) % numLevels; in getMaxLevel()
2337 void setTextureParams (int cellNdx) in setTextureParams() argument
2340 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAX_LEVEL, getMaxLevel(cellNdx)); in setTextureParams()
2343 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2345 params.maxLevel = getMaxLevel(cellNdx); in getReferenceParams()