zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ShaderLang.cpp File Reference

Go to the source code of this file.

Functions

static bool checkActiveUniformAndAttribMaxLengths (const ShHandle handle, size_t expectedValue)
 
static bool checkMappedNameMaxLength (const ShHandle handle, size_t expectedValue)
 
static void getVariableInfo (ShShaderInfo varType, const ShHandle handle, int index, size_t *length, int *size, ShDataType *type, char *name, char *mappedName)
 
int ShCompile (const ShHandle handle, const char *const shaderStrings[], size_t numStrings, int compileOptions)
 
ShHandle ShConstructCompiler (ShShaderType type, ShShaderSpec spec, ShShaderOutput output, const ShBuiltInResources *resources)
 
void ShDestruct (ShHandle handle)
 
int ShFinalize ()
 
void ShGetActiveAttrib (const ShHandle handle, int index, size_t *length, int *size, ShDataType *type, char *name, char *mappedName)
 
void ShGetActiveUniform (const ShHandle handle, int index, size_t *length, int *size, ShDataType *type, char *name, char *mappedName)
 
void ShGetInfo (const ShHandle handle, ShShaderInfo pname, size_t *params)
 
void ShGetInfoLog (const ShHandle handle, char *infoLog)
 
void ShGetInfoPointer (const ShHandle handle, ShShaderInfo pname, void **params)
 
void ShGetNameHashingEntry (const ShHandle handle, int index, char *name, char *hashedName)
 
void ShGetObjectCode (const ShHandle handle, char *objCode)
 
void ShInitBuiltInResources (ShBuiltInResources *resources)
 
int ShInitialize ()
 

Function Documentation

static bool checkActiveUniformAndAttribMaxLengths ( const ShHandle  handle,
size_t  expectedValue 
)
static

Definition at line 24 of file ShaderLang.cpp.

References SH_ACTIVE_ATTRIBUTE_MAX_LENGTH, SH_ACTIVE_UNIFORM_MAX_LENGTH, and ShGetInfo().

Referenced by getVariableInfo().

static bool checkMappedNameMaxLength ( const ShHandle  handle,
size_t  expectedValue 
)
static

Definition at line 34 of file ShaderLang.cpp.

References SH_MAPPED_NAME_MAX_LENGTH, and ShGetInfo().

Referenced by getVariableInfo().

int ShCompile ( const ShHandle  handle,
const char *const  shaderStrings[],
size_t  numStrings,
int  compileOptions 
)
int ShFinalize ( )

Definition at line 100 of file ShaderLang.cpp.

References DetachProcess().

Referenced by main(), and Zeni::Video::Video().

void ShGetActiveAttrib ( const ShHandle  handle,
int  index,
size_t length,
int size,
ShDataType type,
char *  name,
char *  mappedName 
)

Definition at line 280 of file ShaderLang.cpp.

References getVariableInfo(), and SH_ACTIVE_ATTRIBUTES.

Referenced by PrintActiveVariables().

void ShGetActiveUniform ( const ShHandle  handle,
int  index,
size_t length,
int size,
ShDataType type,
char *  name,
char *  mappedName 
)

Definition at line 292 of file ShaderLang.cpp.

References getVariableInfo(), and SH_ACTIVE_UNIFORMS.

Referenced by PrintActiveVariables().

void ShGetInfoLog ( const ShHandle  handle,
char *  infoLog 
)
void ShGetInfoPointer ( const ShHandle  handle,
ShShaderInfo  pname,
void **  params 
)
void ShGetNameHashingEntry ( const ShHandle  handle,
int  index,
char *  name,
char *  hashedName 
)
void ShGetObjectCode ( const ShHandle  handle,
char *  objCode 
)
int ShInitialize ( )

Definition at line 91 of file ShaderLang.cpp.

References InitProcess().

Referenced by main(), and Zeni::Video::Video().