Lines Matching defs:raw
111 static inline float safeCoord (float raw, int scale, float fraction)
114 return moveTowardsFraction(raw*scaleFloat, fraction) / scaleFloat;
118 static inline tcu::Vector<float, Size> safeCoords (const tcu::Vector<float, Size>& raw, const tcu::Vector<int, Size>& scale, const tcu::Vector<float, Size>& fraction)
122 result[i] = safeCoord(raw[i], scale[i], fraction[i]);
126 static inline Vec2 safe2DTexCoords (const Vec2& raw, const IVec2& textureSize)
128 return safeCoords(raw, textureSize, Vec2(0.5f));
131 static inline Vec3 safe2DArrayTexCoords (const Vec3& raw, const IVec3& textureSize)
133 return safeCoords(raw, textureSize, Vec3(0.5f, 0.5f, 0.0f));
136 static inline Vec3 safe3DTexCoords (const Vec3& raw, const IVec3& textureSize)
138 return safeCoords(raw, textureSize, Vec3(0.5f));