MTLTextureSwizzle

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

Values

ValueMeaning
Alpha5

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

Blue4

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

Green3

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

Red2

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

One1

A value of 1.0 is copied to the destination channel.

Zero0

A value of 0.0 is copied to the destination channel.

Meta