Instance Property


A programmable function that processes individual fragments in a rendering pass.


var fragmentFunction: MTLFunction? { get set }


The default value is nil. If this value is nil, then there is no fragment function and therefore no writes to the color render target occur. Depth and stencil writes and visibility result counting can still proceed.

See Also

Specifying Graphics Functions

var vertexFunction: MTLFunction?

A programmable function that processes individual vertices in a rendering pass.

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