Instance Property


The compute function to be compiled into the pipeline state object.


var computeFunction: MTLFunction? { get set }


The default value is nil. You must always specify a compute function.

See Also

Specifying the Compute Function and Associated Data

var threadGroupSizeIsMultipleOfThreadExecutionWidth: Bool

A Boolean that indicates whether the threadgroup size must always be a multiple of the thread execution width.

var maxTotalThreadsPerThreadgroup: Int

The maximum number of threads allowed for a threadgroup dispatched to the compute function.

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