Contents

preferredDevice

The device to use for Metal rendering.

Declaration

static let preferredDevice: SCNView.Option

Discussion

The value for this key is a MTLDevice object.

Use this key to choose a specific device for rendering (for example, on a macOS system with multiple GPUs), or leave it unspecified to allow SceneKit to automatically choose a device.

See Also

View Options