Lines Matching refs:cellNdx
187 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx) in getBasicTexCoord2D() argument
216 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords))); in getBasicTexCoord2D()
218 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft; in getBasicTexCoord2D()
219 const Vec2& topRight = s_basicCoords[cellNdx].topRight; in getBasicTexCoord2D()
224 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord2D() argument
227 getBasicTexCoord2D(dst, cellNdx); in getAffineTexCoord2D()
230 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord2D()
234 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f; in getAffineTexCoord2D()
319 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
326 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
327 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
332 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
335 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
371 const int cellNdx = gridY*gridWidth + gridX; in iterate() local
378 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
379 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
384 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
387 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
640 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
642 const int curX = gridLayout[cellNdx].x(); in iterate()
643 const int curY = gridLayout[cellNdx].y(); in iterate()
644 const int curW = gridLayout[cellNdx].z(); in iterate()
645 const int curH = gridLayout[cellNdx].w(); in iterate()
646 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
655 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
661 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
697 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
699 const int curX = gridLayout[cellNdx].x(); in iterate()
700 const int curY = gridLayout[cellNdx].y(); in iterate()
701 const int curW = gridLayout[cellNdx].z(); in iterate()
702 const int curH = gridLayout[cellNdx].w(); in iterate()
703 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
711 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
717 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()