Open konstantinegorov opened 2 years ago
It would be nice if spirv-cross would emulate packing functions (like packHalf2x16) if glsl doesn't support them. Google angle project do that (BuiltInFunctionEmulatorGLSL.cpp).
How would that work? packHalf2x16 is supported on targets that support proper integer math, and you'd need that to do FP32 -> FP16 in software.
It would be nice if spirv-cross would emulate packing functions (like packHalf2x16) if glsl doesn't support them. Google angle project do that (BuiltInFunctionEmulatorGLSL.cpp).