---
title: "makeTemporalScaler(device:compiler:)"
framework: metalfx
role: symbol
role_heading: Instance Method
path: "metalfx/mtlfxtemporalscalerdescriptor/maketemporalscaler(device:compiler:)"
---

# makeTemporalScaler(device:compiler:)

Creates a temporal scaler instance for a Metal device.

## Declaration

```swift
func makeTemporalScaler(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXTemporalScaler)?
```

## Parameters

- `device`: The Metal device that creates the temporal scaler.
- `compiler`: A compiler instance this method can use to build pipeline state objects.

## Return Value

Return Value  A new temporal scaler instance upon success, or nil otherwise.
