<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 27.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalFX",
  "identifier" : "/documentation/MetalFX/MTLFXSpatialScalerDescriptor/supportsDevice(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MetalFX"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLFXSpatialScalerDescriptor(cm)supportsDevice:"
  },
  "title" : "supportsDevice(_:)"
}
-->

# supportsDevice(_:)

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

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

## Parameters

`device`

An <doc://com.apple.documentation/documentation/Metal/MTLDevice> instance that represents a GPU.

---

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)