Searched refs:targetFraction (Results 1 - 2 of 2) sorted by relevance

/external/deqp/modules/gles2/functional/
H A Des2fVertexTextureTests.cpp80 // Moves x towards the closest K+targetFraction, where K is an integer.
82 static inline float moveTowardsFraction (float x, float targetFraction) argument
86 DE_ASSERT(de::inBounds(targetFraction, 0.0f, 1.0f));
87 const float y = x + 0.5f - targetFraction;
88 return deFloatFloor(y) + deFloatFrac(y)*(1.0f-strictness) + strictness*0.5f - 0.5f + targetFraction;
/external/deqp/modules/gles3/functional/
H A Des3fVertexTextureTests.cpp98 // Moves x towards the closest K+targetFraction, where K is an integer.
100 static inline float moveTowardsFraction (float x, float targetFraction) argument
104 DE_ASSERT(de::inBounds(targetFraction, 0.0f, 1.0f));
105 const float y = x + 0.5f - targetFraction;
106 return deFloatFloor(y) + deFloatFrac(y)*(1.0f-strictness) + strictness*0.5f - 0.5f + targetFraction;

Completed in 52 milliseconds