Function spirv_std::float::f16_to_f32
source · pub fn f16_to_f32(packed: u32) -> f32
Expand description
Converts an f16 (half) into an f32 (float). The parameter is a u32, due to GPU support for u16 not being universal - the upper 16 bits are ignored.