I am trying to port the simple iOS sample app to macOS. Metal compiler says
Fragment shader parameter with attribute 'color' is supported only on iOS (requires -std=ios-metal1.[0|1|2]).
How to overcome this error? Where can I find a document that points out the Metal API differences between macOS and iOS?
Here is the Xcode project with macOS target. The above error is thrown by the Light.metal.
macOS 10.13 intel i5-5257u Iris 6100