Converts a Math.Matrix3 to half precision, element by element in row-major order, rounding each as float_to_half_fast3 does.
#import "Math";
m := Matrix3_Identity;
h := matrix3_float16(m);
assert(cast(u16) h._11 == 0x3c00 && cast(u16) h._12 == 0);
assert(matrix3_float32(h)._22 == 1.0);matrix3_float16 :: (s: Matrix3) -> Matrix3_Float16
Parameters
- s: Matrix3