Var Struct Reference#include <langElement.h>
Inheritance diagram for Var: ![]() Detailed DescriptionVar - Variable - used to specify a variable to be used in a shader. Var stores information such that when it is printed out, its context can be identified and the proper information will automatically be printed. For instance, if a variable is created with 'uniform' set to true, when the shader function definition is printed, it will automatically add that variable to the incoming parameters of the shader. There are several similar cases such as when a new variable is declared within a shader.example:
Var *modelview = new Var; modelview->setType( "float4x4" ); modelview->setName( "modelview" ); modelview->uniform = true; modelview->constSortPos = cspPass; it prints out in the shader declaration as:
ConnectData main( VertData IN, uniform float4x4 modelview : register(C0) )
Constructor & Destructor Documentation
Member Function Documentation
Reimplemented from LangElement.
Member Data Documentation
|