init(red:green:blue:alpha:)
Creates a swizzle pattern.
Declaration
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