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, 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...
 
std::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 83 of file GlslProgram.h.

Constructor & Destructor Documentation

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

Program input constructor.

Definition at line 108 of file GlslProgram.h.

Member Data Documentation

string GlslProgram::Input::colorspace

Colorspace.

Definition at line 105 of file GlslProgram.h.

int GlslProgram::Input::gltype

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

Definition at line 90 of file GlslProgram.h.

int GlslProgram::Input::INVALID_OPENGL_TYPE
static

Definition at line 85 of file GlslProgram.h.

bool GlslProgram::Input::isConstant

Is this a constant.

Definition at line 99 of file GlslProgram.h.

int GlslProgram::Input::location

Program location. -1 means an invalid location.

Definition at line 88 of file GlslProgram.h.

string GlslProgram::Input::path

Element path (if any)

Definition at line 101 of file GlslProgram.h.

int GlslProgram::Input::size

Size.

Definition at line 92 of file GlslProgram.h.

std::string GlslProgram::Input::typeString

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

Definition at line 94 of file GlslProgram.h.

string GlslProgram::Input::unit

Unit.

Definition at line 103 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 97 of file GlslProgram.h.


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