<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTRAWProcessingSession/metalDevice",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Video Toolbox",
      "VideoToolbox"
    ],
    "preciseIdentifier" : "s:So25VTRAWProcessingSessionRefa12VideoToolboxE11metalDeviceSo9MTLDevice_pSgvp"
  },
  "title" : "metalDevice"
}
-->

# metalDevice

The preferred device to use for any Metal-based processing performed by the RAW Processing Extension.

```
var metalDevice: (any MTLDevice)? { get set }
```

## Discussion

Setting a value of `nil` indicates that the client has no preferred Metal device. Getting `nil` indicates that no preferred device was set or that the processor does not use Metal for frame processing.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)