Function spirv_std::float::vec2_to_f16x2
source · pub fn vec2_to_f16x2(vec: impl Vector<f32, 2>) -> u32
Expand description
Converts two f32 values (floats) into two f16 values (halfs). The result is a u32, with the low 16 bits being the first f16, and the high 16 bits being the second f16.