Class representing shader program creation options. More...
Public Member Functions | |
ShaderProgramOption () | |
Creates a class representing shader program creation options. | |
Public Attributes | |
Dictionary< string, int > | ConstantValues |
Constant value overwritten at the time of the compile. |
Class representing shader program creation options.
Dictionary<string,int> ConstantValues |
Constant value overwritten at the time of the compile.
Used for rewriting a variable to a constant at the time of the compile. "uniform int" can be rewritten as "static const int" and "uniform bool" can be rewritten as "static const bool". The declaration of each variable must be completed on one line. Once a variable has been rewritten to a constant, that value cannot be changed.