Lines Matching refs:cellNdx

182 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx)  in getBasicTexCoord2D()  argument
211 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords))); in getBasicTexCoord2D()
213 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft; in getBasicTexCoord2D()
214 const Vec2& topRight = s_basicCoords[cellNdx].topRight; in getBasicTexCoord2D()
219 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord2D() argument
222 getBasicTexCoord2D(dst, cellNdx); in getAffineTexCoord2D()
225 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord2D()
229 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f; in getAffineTexCoord2D()
325 int cellNdx = gridY*gridWidth + gridX; in iterate() local
332 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
333 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
338 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
341 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
585 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
587 int curX = gridLayout[cellNdx].x(); in iterate()
588 int curY = gridLayout[cellNdx].y(); in iterate()
589 int curW = gridLayout[cellNdx].z(); in iterate()
590 int curH = gridLayout[cellNdx].w(); in iterate()
591 tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
602 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
608 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()