Skip to content

Latest commit

 

History

History

S05_PrecompiledShader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

S05_PrecompiledShader

Demonstrates how to use a pre-compiled shader using the offline compiler tool 'vCompiler' from Verisilicon.

This currently only works on the Yocto platform.

The tool can create either a shader program binary file, that only requires to call the function:

GL_CHECK(glProgramBinaryOES(hProgram, GL_PROGRAM_BINARY_VIV, buf, length));

Or a set of pre-compiled shaders that will save you the compile stage, but need to be linked into a final program. Both options are supported in this sample.

--Options -a, --SeparateShader : if -a or --Separate shader is passed as argument when launching the application, it will use the pre-compiled shaders, if not, it will use the pre-compiled program binary.