---
title: prevColorTexture
framework: MetalFX
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, macOS 26.0+, tvOS 27.1+]
path: metalfx/mtlfxframeinterpolatorbase/prevcolortexture
---

# prevColorTexture

The previous color texture for this frame interpolator during the last call to encode work into a command buffer.

## Declaration

```swift
var prevColorTexture: (any MTLTexture)? { get set }
```

## Discussion

Discussion The frame interpolator typically uses the previous color texture as part of its operation. When you call encode(commandBuffer:) and its shouldResetHistory property is false, then you are responsible for assigning to this property the data that in colorTexture from the previous call to encode(commandBuffer:). Additionally, you are responsible for ensuring the usage and pixel format of the texture you assign to this property matches the texture usage colorTextureUsage requests and the pixel format that colorTextureFormat requests.
