Home | History | Annotate | Download | only in accuracy

Lines Matching defs:cellNdx

175 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx)
204 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords)));
206 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft;
207 const Vec2& topRight = s_basicCoords[cellNdx].topRight;
212 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx)
215 getBasicTexCoord2D(dst, cellNdx);
218 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f);
222 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f;
319 int cellNdx = gridY*gridWidth + gridX;
326 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break;
327 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break;
332 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
335 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];
575 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++)
577 int curX = gridLayout[cellNdx].x();
578 int curY = gridLayout[cellNdx].y();
579 int curW = gridLayout[cellNdx].z();
580 int curH = gridLayout[cellNdx].w();
581 tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST);
592 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
598 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];