Instance Property

fragmentFunction

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

Declaration

var fragmentFunction: MTLFunction? { get set }

Discussion

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.