spirv_std::float

Function vec4_to_u8x4_snorm

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

Packs a vec4 into 4 8-bit signed integers. See PackSnorm4x8 for exact semantics.