---
title: preferredDevice
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scnview/option/preferreddevice
---

# preferredDevice

The device to use for Metal rendering.

## Declaration

```swift
static let preferredDevice: SCNView.Option
```

## Discussion

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

- [preferLowPowerDevice](scenekit/scnview/option/preferlowpowerdevice.md)
- [preferredRenderingAPI](scenekit/scnview/option/preferredrenderingapi.md)
