See the RSL textureinfo() function in the RenderMan documentation.

VOP nodes