<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/MaterialParameters/Texture/swizzle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18MaterialParametersV7TextureV7swizzleSo25MTLTextureSwizzleChannelsavp"
  },
  "title" : "swizzle"
}
-->

# swizzle

Channel swizzle to use when RealityKit reads or samples from the texture.

```
var swizzle: MTLTextureSwizzleChannels
```

## Discussion

The default value performs no swizzle, sampling red from the texture’s red channel,
green from the texture’s green channel, blue from the texture’s blue channel, and
alpha from the texture’s alpha 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)