Source/ThirdParty/ANGLE/src/compiler/ShaderLang.cpp
int ShCompile(
    const ShHandle handle,
    const char* const shaderStrings[],
    const int numStrings,
    int compileOptions)
{
    if (!InitThread())
        return 0;

    if (handle == 0)
        return 0;

    TShHandleBase* base = reinterpret_cast<TShHandleBase*>(handle);
    TCompiler* compiler = base->getAsCompiler();
    if (compiler == 0)
        return 0;

    bool success = compiler->compile(shaderStrings, numStrings, compileOptions);
    return success ? 1 : 0;
}
//
// Do an actual compile on the given strings.  The result is left 
// in the given compile object.
//
// Return:  The return value of ShCompile is really boolean, indicating
// success or failure.
//
Do an actual compile on the given strings.  The result is left
in the given compile object.

The return value of ShCompile is really boolean, indicating
success or failure.
Do an actual compile on the given strings . The result is left in the given compile object . The return value of ShCompile is really boolean indicating success or failure .
int ShCompile(
    const ShHandle handle,
    const char* const shaderStrings[],
    const int numStrings,
    int compileOptions)
{
    if (!InitThread())
        return 0;
    if (handle == 0)
        return 0;
    TShHandleBase* base = reinterpret_cast<TShHandleBase*>(handle);
    TCompiler* compiler = base->getAsCompiler();
    if (compiler == 0)
        return 0;
    bool success = compiler->compile(shaderStrings, numStrings, compileOptions);
    return success ? 1 : 0;
}
int ShCompile ( const ShHandle handle , const char * const shaderStrings [ ] , const int numStrings , int compileOptions ) { if ( ! InitThread ( ) ) return 0 ; if ( handle == 0 ) return 0 ; TShHandleBase * base = reinterpret_cast < TShHandleBase * > ( handle ) ; TCompiler * compiler = base -> getAsCompiler ( ) ; if ( compiler == 0 ) return 0 ; bool success = compiler -> compile ( shaderStrings , numStrings , compileOptions ) ; return success ? 1 : 0 ; }
Do an actual compile on the given strings.
Do an actual compile on the given strings .