Offline OpenGL ES compiler

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Lukasz Furmaniak 1 year, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54157

    gagnon
    Member

    Hi,

    Does PowerVR provide an offline shader compiler for OpenGL ES? I am looking for a tool that compiles shaders on Pc/OSX/Linux with an output compatible with glShaderBinary on Android. That is, a cross compiler.

    I know there is the PVRShaderEditor and ProfilingCompilers but they seem to output only profiling information. Documentation seemed to imply binary. Am I wrong?

    #54184

    Hi,

    We have compilers that can generate binary shaders but they will work only on specific versions of the hardware. Unless you are targeting a single platform it is not recommended to do this as they will fail on most platforms. Android does binary shader caching automatically so to deploy binary shaders for performance reasons is not needed. Alternatively you can export binary shaders using the OGLES API. We have an example on how to do this in our SDK:

    https://github.com/powervr-graphics/Native_SDK/tree/3.5/Examples/Advanced/BinaryShader

    Regards.

    #54189

    gagnon
    Member

    Hi,

    The context for the request was to protect shader source content. Offline compilers is one option I am exploring. Can one have access to these compilers?

    Thanks.

    #54190

    Hi,

    We will need the details of the platform you are targeting as well as the driver version. The binaries compiled for it will only work on that specific platform.

    If you are still interested, we would prefer if you continue through a private ticket in our support portal:
    https://pvrsupport.imgtec.com/

    Regards.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.