Hi,
When compiling the shader from the command line via "xcrun metal" there is an option toi specify compiler optimization levels "-Od", "-O0", "-O1", "-O2", "-O3" and a few more exotic ones.
What it the recommended level?
Bonus questions:
Are these levels respected by the Metal compiler frontent and backend?
How do they map to optimizations clang can perform in comparison to C++?