In XCode's Metal Compiler Build Options there is a built-in field for Enable Fast Math which in XCode is NO by default.
I'm working on a shader for an iOS app that exhibited drastically different behaviour on different iPad's. The error looked like a math precision issue so as the shader doesn't need to be super fast and as a test I added -fno-fast-math to XCode's Other Metal Compiler Flags and sure enough the issue appears to be cured.
My question is, is this a bug in XCode or is Enable Fast Math a different option to -fno-fast-math ( I dont't imagine it is ).
Or... could my issue be a result of some other difference between devices that I'm not aware of.
However, like I say, the issue appears to be cured by explitly declaring -fno-fast-math in the build settings.
XCode Version 11.4 (11E146)
Various iPads, running iOS 11, 12 and 13.