Get Texture Resolution?

Hey is it possible to get the texture resolution xy in cgfx?
I can’t seem to figure it out.

I guess its in UNITY_MATRIX_TEXTURE0 somewhere?

Unity have texture property _TexelSize.

uniform sampler2D _BumpMap;
uniform float4 _BumpMap_TexelSize;

It gives you 1.0/texture resolution, so actual texrure resolution will be 1.0/texture _TexelSize.

you sir, are a king among men!