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

# MTLOrigin

The coordinates for the front upper-left corner of a region.

```
struct MTLOrigin
```

## Topics

### Creating origin points

[`init()`](/documentation/Metal/MTLOrigin/init())

Initializes a new origin.

[`init(x:y:z:)`](/documentation/Metal/MTLOrigin/init(x:y:z:))

Initializes a new origin with the specified coordinates.

[`MTLOriginMake(_:_:_:)`](/documentation/Metal/MTLOriginMake(_:_:_:))

Returns a new origin with the specified coordinates.

### Getting and setting coordinate values

[`x`](/documentation/Metal/MTLOrigin/x)

The x coordinate of the origin.

[`y`](/documentation/Metal/MTLOrigin/y)

The y coordinate of the origin.

[`z`](/documentation/Metal/MTLOrigin/z)

The z coordinate of the origin.



---

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)