Instance Property


The pixel format of the color attachment’s texture.


var pixelFormat: MTLPixelFormat { get set }


The pixel format of the rendering pipeline state must be set to match the pixel format of the texture used by the selected color attachment; otherwise, an error occurs.

See Also

Specifying Render Pipeline State

var writeMask: MTLColorWriteMask

A bitmask that restricts which color channels are written into the texture.