The wrapping mode of a texture is set as a hint on a texture's sampler uniform. This means it's difficult to use the same shader where the only change you want is the wrapping mode of the texture.