hlsl shader optimization

Nvm, this won’t work. You can use ddx/ddy to get the texelsize so you don’t have to pass it into the shader.