Lines Matching refs:cellNdx

174 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx)  in getBasicTexCoord2D()  argument
203 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords))); in getBasicTexCoord2D()
205 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft; in getBasicTexCoord2D()
206 const Vec2& topRight = s_basicCoords[cellNdx].topRight; in getBasicTexCoord2D()
211 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx) in getAffineTexCoord2D() argument
214 getBasicTexCoord2D(dst, cellNdx); in getAffineTexCoord2D()
217 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f); in getAffineTexCoord2D()
221 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f; in getAffineTexCoord2D()
318 int cellNdx = gridY*gridWidth + gridX; in iterate() local
325 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break; in iterate()
326 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break; in iterate()
331 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
334 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()
574 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++) in iterate() local
576 int curX = gridLayout[cellNdx].x(); in iterate()
577 int curY = gridLayout[cellNdx].y(); in iterate()
578 int curW = gridLayout[cellNdx].z(); in iterate()
579 int curH = gridLayout[cellNdx].w(); in iterate()
580 tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST); in iterate()
591 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)]; in iterate()
597 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)]; in iterate()