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()
632 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
634 const int curX = gridLayout[cellNdx].x(); in iterate()
635 const int curY = gridLayout[cellNdx].y(); in iterate()
636 const int curW = gridLayout[cellNdx].z(); in iterate()
637 const int curH = gridLayout[cellNdx].w(); in iterate()
638 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
647 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
653 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
688 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
690 const int curX = gridLayout[cellNdx].x(); in iterate()
691 const int curY = gridLayout[cellNdx].y(); in iterate()
692 const int curW = gridLayout[cellNdx].z(); in iterate()
693 const int curH = gridLayout[cellNdx].w(); in iterate()
694 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
702 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
708 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()