We used to use the Binding decoration for this, but this method is hopelessly broken. If no explicit MSL resource remapping exists, we remap automatically in a manner which should always "just work".
Same fixes as for GLSL.
This is necessary to get the coordinates to give to the texture's `write()` method.