spirv_std::float

Function vec4_to_u8x4_unorm

Source
pub fn vec4_to_u8x4_unorm(vec: impl Vector<f32, 4>) -> u32
Expand description

Packs a vec4 into 4 8-bit unsigned integers. See PackUnorm4x8 for exact semantics.