Encodes a dispatch call for a compute pass, using an arbitrarily-sized grid.
- iOS 11.0+
- macOS 10.13+
The number of threads in the grid, in each dimension.
The number of threads in one threadgroup, in each dimension.
This method encodes a dispatch call that specifies an arbitrary number of threads in a grid (
threads). You do not specify the number of threadgroups in the grid; Metal calculates these values for you and provides partial threadgroups if necessary.