Using Metal and SceneKit together

I created a SCNView with the Metal Rendering API as shown below, however it does not work. If I change it to any of the opengl options the view is visible, however if set to SCNRenderingAPI.Metal, the view is no longer visible.


Example A (This does not work)

let options = [SCNPreferredRenderingAPIKey : NSNumber(unsignedLong: SCNRenderingAPI.Metal.rawValue)]
let metalGameView = SCNView(frame: self.view.bounds, options: options)


Example B (This does work)

let options = [SCNPreferredRenderingAPIKey : NSNumber(unsignedLong: SCNRenderingAPI.OpenGLCore41.rawValue)]
let metalGameView = SCNView(frame: self.view.bounds, options: options)



Update: I've verified this actually works on iOS, just not on my mac. Metal does run successfully on my mac using MetalKit, just not with this scenekit option.

It works for me on the Mac with the following code:


        let options = [SCNPreferredRenderingAPIKey: SCNRenderingAPI.Metal.rawValue]
        let sceneView = SCNView(frame: view.bounds, options: options)

What kind of Mac do you have? Metal doesn't work on all Macs (yet!), just like it doesn't work on all iOS devices.

MacBook Pro (Retina, Mid 2012)

Can you force Intel graphics on it? My understanding is the Intel graphics chip support is more complete than for GeForce cards and such.

Using Metal and SceneKit together
 
 
Q