<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalFX",
  "identifier" : "/documentation/MetalFX/MTLFXFrameInterpolatorBase/prevColorTexture",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalFX"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLFXFrameInterpolatorBase(py)prevColorTexture"
  },
  "title" : "prevColorTexture"
}
-->

# prevColorTexture

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

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

## Discussion

The frame interpolator typically uses the previous color texture as part of its operation. When you call
[`encode(commandBuffer:)`](/documentation/MetalFX/MTLFXFrameInterpolator/encode(commandBuffer:)) and its [`shouldResetHistory`](/documentation/MetalFX/MTLFXFrameInterpolatorBase/shouldResetHistory) property is
<doc://com.apple.documentation/documentation/Swift/false>, then you are responsible for assigning to this property
the data that in [`colorTexture`](/documentation/MetalFX/MTLFXFrameInterpolatorBase/colorTexture) from the previous call to [`encode(commandBuffer:)`](/documentation/MetalFX/MTLFXFrameInterpolator/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`](/documentation/MetalFX/MTLFXFrameInterpolatorBase/colorTextureUsage) requests and the pixel format that [`colorTextureFormat`](/documentation/MetalFX/MTLFXFrameInterpolatorBase/colorTextureFormat) requests.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)