title: iOS code to identify metal support in runtime?
body: <p>Usually, I use the below code to identify the iOS version of the device.</p>
  
  <pre><code>if ([[UIDevice currentDevice].systemVersion floatValue] &gt;= 8.0)
  </code></pre>
  
  <p>In a similar way, I'm trying to find Metal support for the device. Metal is supported for Apple devices with the A7 (or better) GPU and iOS 8.0.</p>
  
  <p>This is the way I expect my code to work:</p>
  
  <pre><code>if (MetalSupported == true) {
    // metal programming
  } else {
    // opengles2 programming
  }
  </code></pre>
  
  <p>How do I get the value for the Boolean variable <code>MetalSupported</code> ?</p>