Contents

swizzle

The pattern you want the GPU to apply to pixels when you read or sample pixels from the texture.

Declaration

var swizzle: MTLTextureSwizzleChannels { get set }

Discussion

The default value does not apply a transformation to pixels sampled or read from the texture.

See Also

Specifying texture attributes