---
title: "supportsDevice(_:)"
framework: MetalFX
role: symbol
role_heading: Type Method
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, macOS 13.0+, tvOS 27.1+, visionOS 1.0+]
path: "metalfx/mtlfxspatialscalerdescriptor/supportsdevice(_:)"
---

# supportsDevice(_:)

Returns a Boolean value that indicates whether the spatial scaler works with a GPU.

## Declaration

```swift
class func supportsDevice(_ device: any MTLDevice) -> Bool
```

## Parameters

- `device`: An doc://com.apple.documentation/documentation/Metal/MTLDevice instance that represents a GPU.
