It's not tied to the sampler. You can declare a sampler all day long, if you don't use it, the compiler will optimize it out. But the tex2d() lookup will have the same cost no matter what you use of the returned components. Accessing them isn't the expensive part, getting the values in the first place is. But you pay that price one way or another.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com