int C_DECL Hlsl2Glsl_UseUserVaryings ( ShHandle handle, bool bUseUserVaryings ) { if (!handle) return 0; HlslLinker* linker = handle->GetLinker(); linker->setUseUserVaryings ( bUseUserVaryings ); return 1; }
const ShUniformInfo* C_DECL Hlsl2Glsl_GetUniformInfo( const ShHandle handle ) { if (!handle) return 0; const HlslLinker *linker = handle->GetLinker(); if (!linker) return 0; return linker->getUniformInfo(); }
int C_DECL Hlsl2Glsl_SetUserAttributeNames ( ShHandle handle, const EAttribSemantic *pSemanticEnums, const char *pSemanticNames[], int nNumSemantics ) { if (!handle) return 0; HlslLinker* linker = handle->GetLinker(); for (int i = 0; i < nNumSemantics; i++ ) { bool bError = linker->setUserAttribName ( pSemanticEnums[i], pSemanticNames[i] ); if ( bError == false ) return false; } return true; }
const char* C_DECL Hlsl2Glsl_GetShader( const ShHandle handle ) { if (!handle) return 0; return handle->GetLinker()->getShaderText(); }