Home | History | Annotate | Download | only in accuracy

Lines Matching defs:cellNdx

184 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx)
213 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords)));
215 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft;
216 const Vec2& topRight = s_basicCoords[cellNdx].topRight;
221 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx)
224 getBasicTexCoord2D(dst, cellNdx);
227 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f);
231 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f;
327 int cellNdx = gridY*gridWidth + gridX;
334 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break;
335 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break;
340 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
343 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];
587 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++)
589 int curX = gridLayout[cellNdx].x();
590 int curY = gridLayout[cellNdx].y();
591 int curW = gridLayout[cellNdx].z();
592 int curH = gridLayout[cellNdx].w();
593 tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST);
604 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
610 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];