Contents

maxTotalThreadsPerThreadgroup

The maximum number of threads in a threadgroup that you can dispatch to the pipeline.

Declaration

var maxTotalThreadsPerThreadgroup: Int { get }

Mentioned in

Discussion

When you create a compute pipeline state, it calculates the maximum number of threads available on the device. This value never changes, but may be different for different pipeline objects.

See Creating threads and threadgroups and Calculating threadgroup and grid sizes for more information on aligning data, thread width, and threadgroup size.

See Also

Checking threadgroup attributes