---
title: "init(red:green:blue:alpha:)"
framework: metal
role: symbol
role_heading: Initializer
path: "metal/mtltextureswizzlechannels/init(red:green:blue:alpha:)"
---

# init(red:green:blue:alpha:)

Creates a swizzle pattern.

## Declaration

```swift
init(red: MTLTextureSwizzle, green: MTLTextureSwizzle, blue: MTLTextureSwizzle, alpha: MTLTextureSwizzle)
```

## Parameters

- `red`: The data you want to copy to the first output channel
- `green`: The data you want to copy to the second output channel
- `blue`: The data you want to copy to the third output channel
- `alpha`: The data you want to copy to the fourth output channel

## See Also

### Creating a swizzle pattern

- [init()](metal/mtltextureswizzlechannels/init().md)
