Function glm::builtin::unpackSnorm2x16
[−]
[src]
pub fn unpackSnorm2x16(p: u32) -> Vec2
First, unpacks a single 32-bit unsigned integer p
into two 16-bit signed
integers. Then, each component is converted to a normalized floating-point
value to generate the returned two-component vector.
The conversion for unpacked fixed-point value f
to floating point is
done as follows: clamp(f / 32767.0, -1, +1)
The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.