How to know the dimensions of a texture inside a shader program?

Perhaps it is a dump question, but how can I know the width and height of a texture map (defined with rtTextureSampler<float4, 2>) inside of a shader program?

-Juanjo

There is no built-in mechanism for that in OptiX.
I’m using an additional parameter to transfer the texture size or the inverse of that when required. So far I only needed it for bump mapping with height textures.

Ok. Yes, I am going to use also additional parameters. I also need the map size for the bump mapping code. Thanks.

-Juanjo