Instance Property


A bitmask that determines to which bits that stencil operations can write.


var writeMask: UInt32 { get set }


writeMask are used for logical AND operations to values that are going to be written into a stencil attachment as the result of a stencil operation.

The least significant bits of the write mask are used. The default value is all ones. A logical AND operation with the default writeMask does not change the value.

See Also

Specifying Stencil Bit Mask Properties

var readMask: UInt32

A bitmask that determines from which bits that stencil comparison tests can read.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software