GLSL supports clamp(int3, int, int), so there is no need to write all of them as int3.