[DX10] GetTechniqueByIndex-how are they indexed?

Started by
1 comment, last by Demirug 15 years, 8 months ago
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?
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.
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.

This topic is closed to new replies.

Advertisement