Instance Property


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


var vertexFunction: MTLFunction? { get set }


The default value is nil. The vertex function must always be specified. The vertex function can be either a regular vertex function or a post-tessellation vertex function.

See Also

Specifying Graphics Functions

var fragmentFunction: MTLFunction?

A programmable function that processes individual fragments 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