• Home
  • Raw
  • Download

Lines Matching refs:cellNdx

62 static float getMinLodForCell (int cellNdx)  in getMinLodForCell()  argument
83 return s_values[cellNdx % DE_LENGTH_OF_ARRAY(s_values)]; in getMinLodForCell()
86 static float getMaxLodForCell (int cellNdx) in getMaxLodForCell() argument
108 return s_values[cellNdx % DE_LENGTH_OF_ARRAY(s_values)]; in getMaxLodForCell()
231 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx) in getBasicTexCoord2D() argument
260 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords))); in getBasicTexCoord2D()
262 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft; in getBasicTexCoord2D()
263 const Vec2& topRight = s_basicCoords[cellNdx].topRight; in getBasicTexCoord2D()
268 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord2D() argument
271 getBasicTexCoord2D(dst, cellNdx); in getAffineTexCoord2D()
274 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord2D()
278 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f; in getAffineTexCoord2D()
363 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
370 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
371 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
376 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
379 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
415 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
422 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
423 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
428 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
431 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
671 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
673 const int curX = gridLayout[cellNdx].x(); in iterate()
674 const int curY = gridLayout[cellNdx].y(); in iterate()
675 const int curW = gridLayout[cellNdx].z(); in iterate()
676 const int curH = gridLayout[cellNdx].w(); in iterate()
677 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
686 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
692 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
727 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
729 const int curX = gridLayout[cellNdx].x(); in iterate()
730 const int curY = gridLayout[cellNdx].y(); in iterate()
731 const int curW = gridLayout[cellNdx].z(); in iterate()
732 const int curH = gridLayout[cellNdx].w(); in iterate()
733 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
741 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
747 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
1175 static void getBasicTexCoord3D (std::vector<float>& dst, int cellNdx) in getBasicTexCoord3D() argument
1206 float sScale = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].sScale; in getBasicTexCoord3D()
1207 float sBias = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].sBias; in getBasicTexCoord3D()
1208 float tScale = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].tScale; in getBasicTexCoord3D()
1209 float tBias = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].tBias; in getBasicTexCoord3D()
1210 float rScale = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].rScale; in getBasicTexCoord3D()
1211 float rBias = s_params[cellNdx%DE_LENGTH_OF_ARRAY(s_params)].rBias; in getBasicTexCoord3D()
1221 static void getAffineTexCoord3D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord3D() argument
1224 getBasicTexCoord3D(dst, cellNdx); in getAffineTexCoord3D()
1227 float angleX = 0.0f + 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord3D()
1228 float angleY = 1.0f + 2.0f*DE_PI * ((float)cellNdx / 32.0f); in getAffineTexCoord3D()
1308 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
1315 case COORDTYPE_BASIC: getBasicTexCoord3D (texCoord, cellNdx); break; in iterate()
1316 case COORDTYPE_AFFINE: getAffineTexCoord3D (texCoord, cellNdx); break; in iterate()
1322 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
1326 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
1362 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
1368 case COORDTYPE_BASIC: getBasicTexCoord3D (texCoord, cellNdx); break; in iterate()
1369 case COORDTYPE_AFFINE: getAffineTexCoord3D (texCoord, cellNdx); break; in iterate()
1374 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
1377 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
1430 virtual void setTextureParams (int cellNdx) = DE_NULL;
1431 virtual void getReferenceParams (ReferenceParams& params, int cellNdx) = DE_NULL;
1536 int cellNdx = gridY*gridWidth + gridX; in iterate() local
1539 getBasicTexCoord2D(texCoord, cellNdx); in iterate()
1542 setTextureParams(cellNdx); in iterate()
1576 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
1578 getBasicTexCoord2D(texCoord, cellNdx); in iterate()
1579 getReferenceParams(sampleParams, cellNdx); in iterate()
1627 void setTextureParams (int cellNdx) in setTextureParams() argument
1630 gl.texParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_LOD, getMinLodForCell(cellNdx)); in setTextureParams()
1633 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1635 params.minLod = getMinLodForCell(cellNdx); in getReferenceParams()
1648 void setTextureParams (int cellNdx) in setTextureParams() argument
1651 gl.texParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, getMaxLodForCell(cellNdx)); in setTextureParams()
1654 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1656 params.maxLod = getMaxLodForCell(cellNdx); in getReferenceParams()
1669 int getBaseLevel (int cellNdx) const in getBaseLevel()
1672 const int baseLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0xac2f274a) % numLevels; in getBaseLevel()
1677 void setTextureParams (int cellNdx) in setTextureParams() argument
1680 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, getBaseLevel(cellNdx)); in setTextureParams()
1683 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1685 params.baseLevel = getBaseLevel(cellNdx); in getReferenceParams()
1698 int getMaxLevel (int cellNdx) const in getMaxLevel()
1701 const int maxLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x82cfa4e) % numLevels; in getMaxLevel()
1706 void setTextureParams (int cellNdx) in setTextureParams() argument
1709 gl.texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, getMaxLevel(cellNdx)); in setTextureParams()
1712 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1714 params.maxLevel = getMaxLevel(cellNdx); in getReferenceParams()
1732 virtual void setTextureParams (int cellNdx) = DE_NULL;
1733 virtual void getReferenceParams (ReferenceParams& params, int cellNdx) = DE_NULL;
1839 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
1841 const int curX = gridLayout[cellNdx].x(); in iterate()
1842 const int curY = gridLayout[cellNdx].y(); in iterate()
1843 const int curW = gridLayout[cellNdx].z(); in iterate()
1844 const int curH = gridLayout[cellNdx].w(); in iterate()
1845 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
1850 setTextureParams(cellNdx); in iterate()
1884 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
1886 const int curX = gridLayout[cellNdx].x(); in iterate()
1887 const int curY = gridLayout[cellNdx].y(); in iterate()
1888 const int curW = gridLayout[cellNdx].z(); in iterate()
1889 const int curH = gridLayout[cellNdx].w(); in iterate()
1890 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
1893 getReferenceParams(params, cellNdx); in iterate()
1942 void setTextureParams (int cellNdx) in setTextureParams() argument
1945 gl.texParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_LOD, getMinLodForCell(cellNdx)); in setTextureParams()
1948 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1950 params.minLod = getMinLodForCell(cellNdx); in getReferenceParams()
1963 void setTextureParams (int cellNdx) in setTextureParams() argument
1966 gl.texParameterf(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_LOD, getMaxLodForCell(cellNdx)); in setTextureParams()
1969 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
1971 params.maxLod = getMaxLodForCell(cellNdx); in getReferenceParams()
1984 int getBaseLevel (int cellNdx) const in getBaseLevel()
1987 const int baseLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x23fae13) % numLevels; in getBaseLevel()
1992 void setTextureParams (int cellNdx) in setTextureParams() argument
1995 gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_BASE_LEVEL, getBaseLevel(cellNdx)); in setTextureParams()
1998 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2000 params.baseLevel = getBaseLevel(cellNdx); in getReferenceParams()
2013 int getMaxLevel (int cellNdx) const in getMaxLevel()
2016 const int maxLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x974e21) % numLevels; in getMaxLevel()
2021 void setTextureParams (int cellNdx) in setTextureParams() argument
2024 gl.texParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAX_LEVEL, getMaxLevel(cellNdx)); in setTextureParams()
2027 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2029 params.maxLevel = getMaxLevel(cellNdx); in getReferenceParams()
2047 virtual void setTextureParams (int cellNdx) = DE_NULL;
2048 virtual void getReferenceParams (ReferenceParams& params, int cellNdx) = DE_NULL;
2167 int cellNdx = gridY*gridWidth + gridX; in iterate() local
2170 getBasicTexCoord3D(texCoord, cellNdx); in iterate()
2172 setTextureParams(cellNdx); in iterate()
2208 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
2210 getBasicTexCoord3D(texCoord, cellNdx); in iterate()
2211 getReferenceParams(sampleParams, cellNdx); in iterate()
2259 void setTextureParams (int cellNdx) in setTextureParams() argument
2262 gl.texParameterf(GL_TEXTURE_3D, GL_TEXTURE_MIN_LOD, getMinLodForCell(cellNdx)); in setTextureParams()
2265 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2267 params.minLod = getMinLodForCell(cellNdx); in getReferenceParams()
2280 void setTextureParams (int cellNdx) in setTextureParams() argument
2283 gl.texParameterf(GL_TEXTURE_3D, GL_TEXTURE_MAX_LOD, getMaxLodForCell(cellNdx)); in setTextureParams()
2286 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2288 params.maxLod = getMaxLodForCell(cellNdx); in getReferenceParams()
2301 int getBaseLevel (int cellNdx) const in getBaseLevel()
2304 const int baseLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x7347e9) % numLevels; in getBaseLevel()
2309 void setTextureParams (int cellNdx) in setTextureParams() argument
2312 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_BASE_LEVEL, getBaseLevel(cellNdx)); in setTextureParams()
2315 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2317 params.baseLevel = getBaseLevel(cellNdx); in getReferenceParams()
2330 int getMaxLevel (int cellNdx) const in getMaxLevel()
2333 const int maxLevel = (deInt32Hash(cellNdx) ^ deStringHash(getName()) ^ 0x9111e7) % numLevels; in getMaxLevel()
2338 void setTextureParams (int cellNdx) in setTextureParams() argument
2341 gl.texParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAX_LEVEL, getMaxLevel(cellNdx)); in setTextureParams()
2344 void getReferenceParams (ReferenceParams& params, int cellNdx) in getReferenceParams() argument
2346 params.maxLevel = getMaxLevel(cellNdx); in getReferenceParams()