In iOS or OS/X what texture coordinates are used in Metal Shader Language kernel function? For example, given an
thread_position_in_grid is an index (an integer) in the grid that takes values in the ranges you specify in
dispatchThreadgroups:threadsPerThreadgroup:. It's up to you to decide how many thread groups you want, and how many threads per group.
In the following sample code you can see that
threadsPerGroup.width * numThreadgroups.width == inputImage.width and
threadsPerGroup.height * numThreadgroups.height == inputImage.height. In this case, a position in the grid will thus be a non-normalized (integer) pixel coordinate.