Structure

MTLColorWriteMask

Values used to specify a mask to permit or restrict writing to color channels of a color value. The values red, green, blue, and alpha select one color channel each, and they can be bitwise combined.

Declaration

struct MTLColorWriteMask

Topics

Initializers

init(rawValue: UInt)

Returns a new color write mask from a specified raw value.

Constants

static var red: MTLColorWriteMask

The red color channel is enabled.

static var green: MTLColorWriteMask

The green color channel is enabled.

static var blue: MTLColorWriteMask

The blue color channel is enabled.

static var alpha: MTLColorWriteMask

The alpha color channel is enabled.

static var all: MTLColorWriteMask

All color channels are enabled.

Relationships

Conforms To