Skip to main content

unpack_half2x16

Function unpack_half2x16 

Source
pub fn unpack_half2x16(v: u32) -> Vec2
Expand description

Unpack a u32 containing two f16 values into a Vec2 of f32.

The low 16 bits are the first f16 value, high 16 bits are the second.

On SPIR-V: uses spirv_std::float::f16x2_to_vec2. On other targets: software conversion.