<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKTextureLoader/Option/origin",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:@MTKTextureLoaderOptionOrigin"
  },
  "title" : "origin"
}
-->

# origin

A key used to specify when to flip the pixel coordinates of the texture.

```
static let origin: MTKTextureLoader.Option
```

## Discussion

The value for this key is one of the values listed for [`MTKTextureLoader.Origin`](/documentation/MetalKit/MTKTextureLoader/Origin). If you omit this option, the texture loader doesn’t flip loaded textures.

This option cannot be used with block-compressed texture formats, and can be used only with 2D, 2D array, and cube map textures. Each mipmap level and slice of a texture are flipped.

---

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)