Lines Matching defs:bits
49 float computeColorBitsError(const int bits, const int numAccurateBits)
51 // Color bits error is not a generic function, it just for compute the error value that cannot be accurately shown in integer data format.
53 // "bits" is color bit width, "numAccurateBits" is the number of accurate bits in color bits, "1 << (bits - numAccurateBits)" is the threshold in integer.
55 return (float(1 << (bits - numAccurateBits)) + 1.0f / 256.0f) / float((1 << bits) - 1);
73 void getPossibleCubeFaces (const Vec3& coord, const IVec3& bits, CubeFace* faces, int& numFaces)
81 const float ex = computeFloatingPointError(x, bits.x());
82 const float ey = computeFloatingPointError(y, bits.y());
83 const float ez = computeFloatingPointError(z, bits.z());