Dynamic switch Texture Object in material editor

That’s how I chose texture before:

But now i neet forloop it,it’s too expensive.How can I choose my texture in advance.

I need to change the value of uv in the loop for PCF,so i can’t use Texture Sample.SamplerState can also not be assigned to use.

What should I do,any ideas,thanks.