Enumeration

MTLColorWriteMask

Values used to specify a mask to permit or restrict writing to color channels of a color value. The values MTLColorWriteMaskRed, MTLColorWriteMaskGreen, MTLColorWriteMaskBlue, and MTLColorWriteMaskAlpha select one color channel each, and they can be bitwise combined.

Declaration

typedef enum MTLColorWriteMask : NSUInteger {
    ...
} MTLColorWriteMask;

Topics

Constants

MTLColorWriteMaskNone

All color channels are disabled.

MTLColorWriteMaskRed

The red color channel is enabled.

MTLColorWriteMaskGreen

The green color channel is enabled.

MTLColorWriteMaskBlue

The blue color channel is enabled.

MTLColorWriteMaskAlpha

The alpha color channel is enabled.

MTLColorWriteMaskAll

All color channels are enabled.