Instance Property

vertexFunction

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

Declaration

var vertexFunction: MTLFunction? { get set }

Discussion

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.