Jump to content
  • Advertisement
Sign in to follow this  
n3Xus

[DX10] GetTechniqueByIndex-how are they indexed?

This topic is 3629 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

If I use the ID3D10Effect->GetTechniqueByIndex(i), which technique will by indexed as 0,1,2,..? is this decided by the order by which they are written in the .fx file?

Share this post


Link to post
Share on other sites
Advertisement
Not sure if it's different in dx10, but in dx9 it was just the order that the techniques were declared in the file.

Share this post


Link to post
Share on other sites
I look like that Direct3D 10 still behaves this way. But as it s not documented I would not count on this. It may be changed with future releases. GetTechniqueByIndex is there to support reflection in the case you don’t know the names of the techniques in the FX file.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!