In Direct3D 9 effect files you can write a sampler state that specifies a texture variable to use, like
Texture2D g_texSkyDome;
SamplerState g_samplerSkyDome
{
Texture = <g_texSkyDome>;
// ...other sampler states...
};
Using the ID3DXEffect API, is it possible to extract the texture variable assigned to a given sampler state variable? I've been searching the docs but can't find anything about this.