MaterialX 1.39.1
|
Structure to hold information about program inputs. More...
#include <GlslProgram.h>
Public Member Functions | |
Input (int inputLocation, int inputType, int inputSize, const string &inputPath) | |
Program input constructor. | |
Public Attributes | |
int | location |
Program location. -1 means an invalid location. | |
int | gltype |
OpenGL type of the input. -1 means an invalid type. | |
int | size |
Size. | |
string | typeString |
Input type string. Will only be non-empty if initialized stages with a HwShader. | |
MaterialX::ValuePtr | value |
Input value. More... | |
bool | isConstant |
Is this a constant. | |
string | path |
Element path (if any) | |
string | unit |
Unit. | |
string | colorspace |
Colorspace. | |
Static Public Attributes | |
static int | INVALID_OPENGL_TYPE |
Structure to hold information about program inputs.
The structure is populated by directly scanning the program so may not contain some inputs listed on any associated HwShader as those inputs may have been optimized out if they are unused.
MaterialX::ValuePtr value |
Input value.
Will only be non-empty if initialized stages with a HwShader and a value was set during shader generation.