Converts a Math.Vector3 to half precision, rounding each component as float_to_half_fast3 does.
#import "Math";
h := vector3_float16(xyz(1, 2, 3));
v := vector3_float32(h);
assert(v.x == 1 && v.y == 2 && v.z == 3);vector3_float16 :: (v: Vector3) -> Vector3_Float16
Parameters
- v: Vector3