What's the latest solution for ShaderCache in OpenGL-ES on Android, similar to Unreal?

what’s the latest solution for ShaderCache in OpenGL-ES on Android, similar to Unreal?
is there any openSource lib or tutorial for this? Thanks!

1 Like

https://www.khronos.org/opengl/wiki/Shader_Compilation

Binary limitations
Program binary formats are not intended to be transmitted. It is not reasonable to expect different hardware vendors to accept the same binary formats. It is not reasonable to expect different hardware from the same vendor to accept the same binary formats.

Indeed, you cannot expect the cached version to work even on the same machine. Driver updates between when the data was cached and when it is reloaded can change the acceptable binary formats. Therefore, glProgramBinary can fail frequently. If you use this functionality, you must have a fallback for creating your shaders if the binary is rejected.

1 Like