Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


How to get the input slot of a bound resource ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Tournicoti   Prime Members   -  Reputation: 684

Like
0Likes
Like

Posted 12 August 2012 - 03:44 AM

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

Sponsor:

#2 MJP   Moderators   -  Reputation: 11736

Like
1Likes
Like

Posted 13 August 2012 - 12:34 AM

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.

#3 Tournicoti   Prime Members   -  Reputation: 684

Like
0Likes
Like

Posted 13 August 2012 - 03:13 AM

Thank you :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS