ShaderProgramOption Class Reference

Class representing shader program creation options. More...

List of all members.

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.

Detailed Description

Class representing shader program creation options.


Member Data Documentation

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.