---
title: "MPSSupportsMTLDevice(_:)"
framework: metalperformanceshaders
role: symbol
role_heading: Function
path: "metalperformanceshaders/mpssupportsmtldevice(_:)"
---

# MPSSupportsMTLDevice(_:)

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

## Declaration

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

## Parameters

- `device`: A valid Metal device.

## Mentioned in

The MPSKernel Class

## Return Value

Return Value true if the device is supported. false if the device is not supported.

## Discussion

Discussion For a full listing of Metal Performance Shaders feature set support, see Feature Availability.
