floatAsNormalizedInteger(float, bits, signed): number
Encodes a JS number into a "normalized" (unorm/snorm) integer representation with bits bits.
Input must be between -1 and 1 if signed, or 0 and 1 if unsigned.
MAINTENANCE_TODO: See if performance of texel_data improves if this function is pre-specialized
for a particular bits/signed.
Encodes a JS
numberinto a "normalized" (unorm/snorm) integer representation withbitsbits. Input must be between -1 and 1 if signed, or 0 and 1 if unsigned.MAINTENANCE_TODO: See if performance of texel_data improves if this function is pre-specialized for a particular
bits/signed.