---
title: "makeFrameInterpolator(device:compiler:)"
framework: MetalFX
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, tvOS 27.1+]
path: "metalfx/mtlfxframeinterpolatordescriptor/makeframeinterpolator(device:compiler:)"
---

# makeFrameInterpolator(device:compiler:)

Creates a frame interpolator instance for a Metal device.

## Declaration

```swift
func makeFrameInterpolator(device: any MTLDevice, compiler: any MTL4Compiler) -> (any MTL4FXFrameInterpolator)?
```

## Parameters

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

## Return Value

Return Value  A new frame interpolator instance upon success, or nil otherwise.
