Instance Property

pixelFormat

The pixel format of the color attachment’s texture.

Declaration

var pixelFormat: MTLPixelFormat { get set }

Discussion

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.