Contents

pixelFormat

The pixel format of the color attachment’s texture.

Declaration

var pixelFormat: MTLPixelFormat { get set }

Mentioned in

Discussion

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

See Also

Related Documentation

  • Metal Shading Language Guide
  • Metal Programming Guide

Configuring render pipeline states