Home
last modified time | relevance | path

Searched refs:lowerNdx (Results 1 – 2 of 2) sorted by relevance

/external/deqp/modules/glshared/
DglsCalibration.cpp109 const int lowerNdx = (int)deFloatFloor(floatNdx); in linearSample() local
110 …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()
/external/deqp/modules/gles3/performance/
Des3pBufferDataUploadTests.cpp656 const int lowerNdx = (int)deFloatFloor(floatNdx); in linearSample() local
657 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()