title: Fragment shader parameter with attribute 'color' for macOS
body: <p>I am trying to port the simple <a href="https://developer.apple.com/library/content/samplecode/MetalDeferredLighting/Introduction/Intro.html" rel="nofollow noreferrer">iOS sample app</a> to macOS. Metal  compiler says </p>
  
  <pre><code>Fragment shader parameter with attribute 'color' is supported only on iOS (requires -std=ios-metal1.[0|1|2]).
  </code></pre>
  
  <p>How to overcome this error? Where can I find a document that points out the Metal API differences between macOS and iOS?</p>
  
  <p><a href="https://github.com/necktwi/MetalDeferredLighting.git" rel="nofollow noreferrer">Here</a> is the Xcode project with <code>macOS</code> target. The above error is thrown by the <code>Light.metal</code>.</p>
  
  <p>macOS 10.13
  intel i5-5257u Iris 6100</p>