• Advertisement
Sign in to follow this  

How to get the input slot of a bound resource ?

This topic is 1986 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,
I would like to set a system that automatically unbind textures from input when they are used as render target. What I need is the input slot number of this texture.

How can I get it please ?

(Apparently, it can be possible via a shader reflector, but I would prefer a more direct way, and at the moment I don't create the reflectors of my shaders)

Thanks in advance
Nico

Share this post


Link to post
Share on other sites
Advertisement
There is no direct way to achieve what you want. If you want you can make some external mapping system that keeps track of all currently bound slots for any particular texture, and use that. Or you can ask the device for all currently bound shader resources for a particular shader stage, and look for a particular texture.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement