Function glm::builtin::unpackUnorm4x8
[−]
[src]
pub fn unpackUnorm4x8(p: u32) -> Vec4
First, unpacks a single 32-bit unsigned integer p
into four 8-bit unsigned
integers. Then, each component is converted to a normalized floating-point
value to generate the returned four-component vector.
The conversion for unpacked fixed-point value f
to floating point is done
as follows: f / 255.0
.
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.