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

# viewToClipMatrix

The view-to-clip coordinates transformation matrix this frame interpolator uses as part of its operation.

```
var viewToClipMatrix: simd_float4x4 { get set }
```

## Discussion

Set this to your unmodified projection matrix. Its depth range has to agree with [`isDepthReversed`](/documentation/MetalFX/MTLFXFrameInterpolatorBase/isDepthReversed): when that
property is `NO` this matrix maps the near plane to a clip z of 0, and when it is `YES` it maps the near plane to a
clip z of 1. Both a left-handed and a right-handed matrix are fine, as long as it is the one that produced
[`depthTexture`](/documentation/MetalFX/MTLFXFrameInterpolatorBase/depthTexture).

---

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)