MaterialX 1.39.1
Loading...
Searching...
No Matches
GlslProgram::Input Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ value

MaterialX::ValuePtr value

Input value.

Will only be non-empty if initialized stages with a HwShader and a value was set during shader generation.


The documentation for this struct was generated from the following file: