This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Shader language version in ARM GLES3.1 Emulator ver 2.2?

Please confirm shader language version used in ARM GLES 3.1 emulator version 2.2? User guide attached with emulator(Mali OpenGL ES Emulator 2.2 User Guide.pdf, Page 19) suggests that it support 3.1

===========================================

Shading Language Version

For OpenGL ES 2.0 contexts, the Mali OpenGL ES Emulator supports up to version 1.2 of the OpenGL

ES Shader Language.

For OpenGL ES 3.0 contexts, OpenGL ES Shader Language version 3.0 is supported. For OpenGL ES

3.1 contexts, OpenGL ES Shader Language 3.1 is supported.

==================================================

Whereas when I compile shader with ;#version 310 es' as first line it gives following compilation error.

==========================================

Log START:

Error: 0:1: P0007: Language version '310' unknown, this compiler only supports up to version '300 es'
Error: 0:1: P0007: Unexpected text found after #version directive
Error: 0:3: L0001: Typename expected, found 'in'

Log END

================================================

Note: If current compiler supports upto version 300 es only, when can I expect next release with version '310 es'


Regards

Sunil

Parents
  • Hi Sunil,

    I confirm that the Open GL ES Emulator 2.2 does support shaders with #version 310 es as stated in User Guide.

    I'm not able to reproduce the problem you've reported by simply compiling a shader with this statement as the first shader line.

    Therefore we would need more input from you to investigate where can cause the problem you're experiencing.

    If you can please report us the OS and installation type you had for the 2.2 emulator.

    Could you share a short snippet of your app code and the exact shader source that generates the problem?

    Is the log output the only symptom you have or is there any glGetError-reported code at glCompileShader function call?

    This type of error I would expect you to have when running 3.1 shaders on older (prior 2.0) emulator version. Can you share with us your output from glGetString(GL_RENDERER)?

    Are there any particular environment variables you've adopted while running your app with emulator?

    Regards,

    Adam

Reply
  • Hi Sunil,

    I confirm that the Open GL ES Emulator 2.2 does support shaders with #version 310 es as stated in User Guide.

    I'm not able to reproduce the problem you've reported by simply compiling a shader with this statement as the first shader line.

    Therefore we would need more input from you to investigate where can cause the problem you're experiencing.

    If you can please report us the OS and installation type you had for the 2.2 emulator.

    Could you share a short snippet of your app code and the exact shader source that generates the problem?

    Is the log output the only symptom you have or is there any glGetError-reported code at glCompileShader function call?

    This type of error I would expect you to have when running 3.1 shaders on older (prior 2.0) emulator version. Can you share with us your output from glGetString(GL_RENDERER)?

    Are there any particular environment variables you've adopted while running your app with emulator?

    Regards,

    Adam

Children