Home | History | Annotate | Download | only in functional

Lines Matching defs:cellNdx

187 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx)
216 DE_ASSERT(de::inBounds(cellNdx, 0, DE_LENGTH_OF_ARRAY(s_basicCoords)));
218 const Vec2& bottomLeft = s_basicCoords[cellNdx].bottomLeft;
219 const Vec2& topRight = s_basicCoords[cellNdx].topRight;
224 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx)
227 getBasicTexCoord2D(dst, cellNdx);
230 float angle = 2.0f*DE_PI * ((float)cellNdx / 16.0f);
234 float shearX = de::inRange(cellNdx, 4, 11) ? (float)(15-cellNdx) / 16.0f : 0.0f;
319 const 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)];
371 const int cellNdx = gridY*gridWidth + gridX;
378 case COORDTYPE_BASIC: getBasicTexCoord2D (texCoord, cellNdx); break;
379 case COORDTYPE_AFFINE: getAffineTexCoord2D (texCoord, cellNdx); break;
384 sampleParams.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
387 sampleParams.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];
640 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++)
642 const int curX = gridLayout[cellNdx].x();
643 const int curY = gridLayout[cellNdx].y();
644 const int curW = gridLayout[cellNdx].z();
645 const int curH = gridLayout[cellNdx].w();
646 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST);
655 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
661 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];
697 for (int cellNdx = 0; cellNdx < (int)gridLayout.size(); cellNdx++)
699 const int curX = gridLayout[cellNdx].x();
700 const int curY = gridLayout[cellNdx].y();
701 const int curW = gridLayout[cellNdx].z();
702 const int curH = gridLayout[cellNdx].w();
703 const tcu::CubeFace cubeFace = (tcu::CubeFace)(cellNdx % tcu::CUBEFACE_LAST);
711 params.w = s_projections[cellNdx % DE_LENGTH_OF_ARRAY(s_projections)];
717 params.bias = s_bias[cellNdx % DE_LENGTH_OF_ARRAY(s_bias)];