---
title: offset
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsunaryimagekernel/offset
---

# offset

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

## Declaration

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

## Discussion

Discussion The offset is defined to be the position of the origin value of 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.

## See Also

### Properties

- [MPSOffset](metalperformanceshaders/mpsoffset.md)
- [clipRect](metalperformanceshaders/mpsunaryimagekernel/cliprect.md)
- [MPSRegion](metalperformanceshaders/mpsregion.md)
- [edgeMode](metalperformanceshaders/mpsunaryimagekernel/edgemode.md)
- [MPSImageEdgeMode](metalperformanceshaders/mpsimageedgemode.md)
