We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I want to use the Mali off-line shader compiler, to compile the Vertex shader and Fragment shaders.
I am using function below.
glShaderBinary(1, &vertexShader, GL_MALI_SHADER_BINARY_ARM, (void*)&buffer, sizeof(char)*sizeof(buffer));
however, an error occurs ' GL_MALI_SHADER_BINARY_ARM ' was not declared in this scope. So how can I solve that? Thanks~~
Hi seufanghao,
The GL_MALI_SHADER_BINARY_ARM constant is defined in the <GLES2/gl2ext.h> header file. You need to include that in your source code to make the constant available to use.
Cheers,
Daniele