<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLTextureSwizzle",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLTextureSwizzle"
  },
  "title" : "MTLTextureSwizzle"
}
-->

# MTLTextureSwizzle

A set of options to choose from when creating a texture swizzle pattern.

```
enum MTLTextureSwizzle
```

## Topics

### Specifying swizzle channels

[`MTLTextureSwizzle.alpha`](/documentation/Metal/MTLTextureSwizzle/alpha)

The alpha channel of the source pixel is copied to the destination channel.

[`MTLTextureSwizzle.blue`](/documentation/Metal/MTLTextureSwizzle/blue)

The blue channel of the source pixel is copied to the destination channel.

[`MTLTextureSwizzle.green`](/documentation/Metal/MTLTextureSwizzle/green)

The green channel of the source pixel is copied to the destination channel.

[`MTLTextureSwizzle.red`](/documentation/Metal/MTLTextureSwizzle/red)

The red channel of the source pixel is copied to the destination channel.

[`MTLTextureSwizzle.one`](/documentation/Metal/MTLTextureSwizzle/one)

A value of `1.0` is copied to the destination channel.

[`MTLTextureSwizzle.zero`](/documentation/Metal/MTLTextureSwizzle/zero)

A value of `0.0` is copied to the destination channel.



---

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)