Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8070197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:19:50+00:00 2026-06-05T13:19:50+00:00

Similar to this question but for Android: Android GLES20 supports a method glShaderBinary, which,

  • 0

Similar to this question but for Android:

Android GLES20 supports a method glShaderBinary, which, based on this gles documentation will load precompiled shader binaries. However, I’m unable to find any way to actually precompile any binaries. When I call GLES20.glGetIntegerv with the parameter name GLES20.GL_NUM_SHADER_BINARY_FORMATS, though, it does indicate (at least on the device I am testing on) that there is one available shader binary format. I just don’t know how to actually use it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:19:53+00:00Added an answer on June 5, 2026 at 1:19 pm

    Binary shader formats are vendor specific. For each different vendor there is different mechanism to compile shaders to binary. So to support most Android devices, you’ll need to either to compile your shaders for specific vendor offline, or do it online (using GL_OES_get_program binary extension) and of course also provide glsl source as fallback.

    Here are list of OpenGL ES 2.0 SDK from some popular GPU vendors. It either includes offline GLSL shader compiler, or documentation about binary GLSL shaders :

    • ARM Mali OpenGL ES 2.0 SDK – used, for example, in Galaxy S II
    • Qualcomm Adreno SDK – used, for example, in Nexus One, HTC Desire, HTC Legend
    • ImgTec PowerVR Insider SDK – used, for example, in Galaxy Nexus, LG Optimus 3D, Galaxy Tab

    ARM Mali provides malisc executable that can compile shaders in command line on your host.

    Qualcomm Adreno actually allows to get binary of GLSL shader at runtime using glGetProgramBinaryOES, but not offline. At least so says the docs in Adreno SDK.

    PowerVR SDK also states that its GPU allows to get binary of GLSL shader during runtime using glGetProgramBinaryOES.

    glGetProgramBinaryOES function comes from GL_OES_get_program_binary extension.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar question , but this one is about Android. On the iPhone, there is
Note: This is similar to this question but it is not the same. I
I found this question but it was only similar and, more importantly, dated by
I searched the hinted posts, when posting this question but I foud none similar,
This is similar to this question , but I thought I'd reword it a
I know this question is very similar to this one, but I feel its
I'm trying to do something similar to this question , but it's a bit
This is similar to (but different from) this question . Here is some simple
This is similar to my previous question but it didnt work with the Kindle
I found this similar question here , but this is really old. Was it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.