---
title: MTL4FXSpatialScaler
framework: MetalFX
role: symbol
role_heading: Protocol
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, tvOS 27.1+, visionOS 26.0+]
path: metalfx/mtl4fxspatialscaler
---

# MTL4FXSpatialScaler

An upscaling effect that generates a higher resolution texture in a render pass by spatially analyzing an input texture.

## Declaration

```swift
protocol MTL4FXSpatialScaler : MTLFXSpatialScalerBase
```

## Overview

Overview You create instances of this class by calling makeSpatialScaler(device:compiler:). When using instances of objects conforming to this protocol, you configure the different properties it inherits from protocol MTLFXSpatialScalerBase and then call encode(commandBuffer:) to encode its work into a Metal command buffer. See MTLFXSpatialScalerBase for more details on configuring and using spatial scalers.

## Topics

### Instance Methods

- [encode(commandBuffer:)](metalfx/mtl4fxspatialscaler/encode(commandbuffer:).md)

## Relationships

### Inherits From

- [MTLFXSpatialScalerBase](metalfx/mtlfxspatialscalerbase.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
