<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSOrigin",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:@S@MPSOrigin"
  },
  "title" : "MPSOrigin"
}
-->

# MPSOrigin

A position in an image used as the source origin.

```
struct MPSOrigin
```

## Overview

The `double` data type is used because some kernel operations require fractional precision—for example, the [`MPSImageLanczosScale`](/documentation/MetalPerformanceShaders/MPSImageLanczosScale) filter.

## Topics

### Fields

[`x`](/documentation/MetalPerformanceShaders/MPSOrigin/x)

The x coordinate of the position, in pixels.

[`y`](/documentation/MetalPerformanceShaders/MPSOrigin/y)

The y coordinate of the position, in pixels.

[`z`](/documentation/MetalPerformanceShaders/MPSOrigin/z)

The z coordinate of the position, in pixels.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)