Does conversion from vec2 to ivec2 result in a dependent texture read?
I’m writing a frag shader which must sample a given texture in a region around the given pixel. I’m using texelFetch
instead of texture
because I want the exact value of the neighboring pixels without any filtering. Originally I wrote code along these lines: