Contents

maxThreadsPerThreadgroup

The maximum number of threads along each dimension of a threadgroup.

Declaration

var maxThreadsPerThreadgroup: MTLSize { get }

Discussion

This property reports the maximum thread group size the device can support for a trivial shader. This size isn’t guaranteed for all shaders. For the actual thread group size of a specific compute shader, see the maxTotalThreadsPerThreadgroup property of your compute pipeline state.

For more information on the specific threadgroup limits of each GPU family, see the Metal feature set tables:

See Also

Checking compute support