Determining Shader Constants

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
PumpkinPieman
Posts: 13
Joined: Fri Apr 20, 2007 4:35 pm

Determining Shader Constants

Post by PumpkinPieman »

Is there a few functions burried in the API that allow
A) Querying the current or maximum shader model available
B) Determining the maximum amount of registers for both vertex and pixel shaders given a current Shader Model.

Thanks. :)
PumpkinPieman
Posts: 13
Joined: Fri Apr 20, 2007 4:35 pm

Post by PumpkinPieman »

Alright I found the IVideoDriver->queryFeature function, which solves A. (I'm surprised I missed that.)
Now, if what is displayed on MSDN in SM const reg mins is the same across API's. Then I've solved B.
Post Reply