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

# MTLFXSpatialScalerDescriptor

A set of properties that configure a spatial scaling effect, and a factory method that creates the effect.

```
class MTLFXSpatialScalerDescriptor
```

## Topics

### Checking a GPU device’s scaling support

[`+  supportsDevice:`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/supportsDevice(_:))

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

### Configuring a spatial scaler’s input

[`inputWidth`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/inputWidth)

The width of the input color texture for the spatial scaler you create with this descriptor.

[`inputHeight`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/inputHeight)

The height of the input color texture for the spatial scaler you create with this descriptor.

[`colorTextureFormat`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/colorTextureFormat)

The pixel format of the input color texture for the spatial scaler you create with this descriptor.

[`colorProcessingMode`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/colorProcessingMode)

The color space of the input color texture for the spatial scaler you create with this descriptor.

### Configuring a spatial scaler’s output

[`outputWidth`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/outputWidth)

The width of the output color texture for the spatial scaler you create with this descriptor.

[`outputHeight`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/outputHeight)

The height of the output color texture for the spatial scaler you create with this descriptor.

[`outputTextureFormat`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/outputTextureFormat)

The pixel format of the output color texture for the spatial scaler you create with this descriptor.

### Creating spatial scaler instances

[`-  newSpatialScalerWithDevice:`](/documentation/MetalFX/MTLFXSpatialScalerDescriptor/makeSpatialScaler(device:))

Creates a spatial scaler instance from this descriptor’s current property values.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)