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

# makeSpatialScaler(device:)

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

## Declaration

```swift
func makeSpatialScaler(device: any MTLDevice) -> (any MTLFXSpatialScaler)?
```

## Parameters

- `device`: An doc://com.apple.documentation/documentation/Metal/MTLDevice instance that represents the GPU that applies the spatial scaler.
