Please explain Technique::checkHardwareSupport() + Pass::_sp

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
Sherlock
Gnoblar
Posts: 1
Joined: Sat Jul 06, 2013 9:10 am

Please explain Technique::checkHardwareSupport() + Pass::_sp

Post by Sherlock »

Hi!
Please could anyone explain to me what is going on in Technique::checkHardwareSupport() at the bottom where the pass is split and what the return value of Pass::_split() is?
As far as I understand it the pass returned by currPass->_split(numTexUnits) will never have more than numTexUnits units (it seems Pass::_split() does not do what the comment describes...) so the while loop in Technique::checkHardwareSupport() looks a little bit suspicious.
I am just quickly inspecting the code so it could be false alarm. But please have a look at the code and explain what is going on (especially the number of units in the pass returned by Pass::_split()).

Thank you very much!

Sherlock
Post Reply