---
title: primaryOffset
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsbinaryimagekernel/primaryoffset
---

# primaryOffset

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

## Declaration

```swift
var primaryOffset: 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 primary source image align.

## See Also

### Properties

- [secondaryOffset](metalperformanceshaders/mpsbinaryimagekernel/secondaryoffset.md)
- [primaryEdgeMode](metalperformanceshaders/mpsbinaryimagekernel/primaryedgemode.md)
- [secondaryEdgeMode](metalperformanceshaders/mpsbinaryimagekernel/secondaryedgemode.md)
- [clipRect](metalperformanceshaders/mpsbinaryimagekernel/cliprect.md)
