HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GlslProgram::Input Struct Reference

#include <GlslProgram.h>

Public Member Functions

 Input (int inputLocation, int inputType, int inputSize, const string &inputPath)
 Program input constructor. More...
 

Public Attributes

int location
 Program location. -1 means an invalid location. More...
 
int gltype
 OpenGL type of the input. -1 means an invalid type. More...
 
int size
 Size. More...
 
string typeString
 Input type string. Will only be non-empty if initialized stages with a HwShader. More...
 
MaterialX::ValuePtr value
 
bool isConstant
 Is this a constant. More...
 
string path
 Element path (if any) More...
 
string unit
 Unit. More...
 
string colorspace
 Colorspace. More...
 

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.

Definition at line 91 of file GlslProgram.h.

Constructor & Destructor Documentation

GlslProgram::Input::Input ( int  inputLocation,
int  inputType,
int  inputSize,
const string inputPath 
)
inline

Program input constructor.

Definition at line 116 of file GlslProgram.h.

Member Data Documentation

string GlslProgram::Input::colorspace

Colorspace.

Definition at line 113 of file GlslProgram.h.

int GlslProgram::Input::gltype

OpenGL type of the input. -1 means an invalid type.

Definition at line 98 of file GlslProgram.h.

int GlslProgram::Input::INVALID_OPENGL_TYPE
static

Definition at line 93 of file GlslProgram.h.

bool GlslProgram::Input::isConstant

Is this a constant.

Definition at line 107 of file GlslProgram.h.

int GlslProgram::Input::location

Program location. -1 means an invalid location.

Definition at line 96 of file GlslProgram.h.

string GlslProgram::Input::path

Element path (if any)

Definition at line 109 of file GlslProgram.h.

int GlslProgram::Input::size

Size.

Definition at line 100 of file GlslProgram.h.

string GlslProgram::Input::typeString

Input type string. Will only be non-empty if initialized stages with a HwShader.

Definition at line 102 of file GlslProgram.h.

string GlslProgram::Input::unit

Unit.

Definition at line 111 of file GlslProgram.h.

MaterialX::ValuePtr GlslProgram::Input::value

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

Definition at line 105 of file GlslProgram.h.


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