Undeclared identifier 'TexSampler'

oh, I see ! thank you very much!!!

The above worked for me in 4.22.3
I am also using this with a Texture3DSample with a TextureObject set to a Volume Texture.