<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSSupportsMTLDevice(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@F@MPSSupportsMTLDevice"
  },
  "title" : "MPSSupportsMTLDevice(_:)"
}
-->

# MPSSupportsMTLDevice(_:)

Determines whether the Metal Performance Shaders framework supports a Metal device.

```
func MPSSupportsMTLDevice(_ device: (any MTLDevice)?) -> Bool
```

## Parameters

`device`

A valid Metal device.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the device is supported. <doc://com.apple.documentation/documentation/Swift/false> if the device is not supported.

## Discussion

For a full listing of Metal Performance Shaders feature set support, see [Feature Availability](https://developer.apple.com/metal/availability/).

---

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)