For someone who is interested in Metal: https://developer.apple.com/documentation/metal/calculating_threadgroup_and_grid_sizes
For someone who is interested in Metal: https://developer.apple.com/documentation/metal/calculating_threadgroup_and_grid_sizes