Is it possible to access "Texture Size" with render targets?

For a reason I will not describe here I am trying to access the size of my render target texture in the material editor using the following node.

135449-screenshot.png

Any reason why this would not work?