<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSUnaryImageKernel/offset",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSUnaryImageKernel(py)offset"
  },
  "title" : "offset"
}
-->

# offset

The position of the destination clip rectangle origin relative to the source buffer.

```
var offset: MPSOffset { get set }
```

## Discussion

The offset is defined to be the position of the `origin` value of [`clipRect`](/documentation/MetalPerformanceShaders/MPSUnaryImageKernel/clipRect), in source coordinates.

The default value is `{0, 0, 0}`, indicating that the top left corners of the clip rectangle and the source image align.

---

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)