Searched refs:lowerNdx (Results 1 – 2 of 2) sorted by relevance
109 const int lowerNdx = (int)deFloatFloor(floatNdx); in linearSample() local110 …const int higherNdx = lowerNdx + (lowerNdx == maxNdx ? 0 : 1); // Use only last element if posit… in linearSample()111 const float interpolationFactor = floatNdx - (float)lowerNdx; in linearSample()113 DE_ASSERT(lowerNdx >= 0 && lowerNdx < (int)values.size()); in linearSample()117 return tcu::mix((float)values[lowerNdx], (float)values[higherNdx], interpolationFactor); in linearSample()
656 const int lowerNdx = (int)deFloatFloor(floatNdx); in linearSample() local657 const int higherNdx = lowerNdx + 1; in linearSample()658 const float interpolationFactor = floatNdx - (float)lowerNdx; in linearSample()660 DE_ASSERT(lowerNdx >= 0 && lowerNdx < (int)values.size()); in linearSample()664 return tcu::mix((float)values[lowerNdx], (float)values[higherNdx], interpolationFactor); in linearSample()