Converts four normalized f32s to u8s and then packs them in a u32
This should implement the same behaviour as the builtin pack4x8unorm from WGSL.
pack4x8unorm
Caller is responsible to ensuring inputs are normalized f32s
Rest
four f32s to be packed
a number that is expected result of pack4x8unorm.
Generated using TypeDoc
Converts four normalized f32s to u8s and then packs them in a u32
This should implement the same behaviour as the builtin
pack4x8unorm
from WGSL.Caller is responsible to ensuring inputs are normalized f32s