<!--
{
  "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/MTLTextureSwizzleChannelsMake",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@F@MTLTextureSwizzleChannelsMake"
  },
  "title" : "MTLTextureSwizzleChannelsMake"
}
-->

# MTLTextureSwizzleChannelsMake

Creates a new swizzle pattern.

```
static MTLTextureSwizzleChannels MTLTextureSwizzleChannelsMake(MTLTextureSwizzle r, MTLTextureSwizzle g, MTLTextureSwizzle b, MTLTextureSwizzle a);
```

## Parameters

`r`

The data you want to copy to the first output channel

`g`

The data you want to copy to the second output channel

`b`

The data you want to copy to the third output channel

`a`

The data you want to copy to the fourth output channel

## Return Value

A texture swizzle pattern.

---

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)