linker: Calculate the sampler to texture target mapping during linking