Imagination PowerVR SDK Blog

Shader Binary Size


#1

Hi,

I am writing a code to read the binary shader file. But using PowerVR SDK 3.5 i am not able to compile and generate a binary shader file. Also, I am interested to know what will be the size of the generated binary shader so if there is any such offline compiler tool please do let me know about it.


#2

The BinaryShader example in the PowerVR Graphics SDK demonstrates how to save and load binary shaders in an application.

It is recommended that shader binaries be generated per application per device, as the binaries are not guaranteed to be portable from device to device, even if they have identical specifications.


#3

Thanks for the reply. The sample program gives a better understanding on my queries.

I was able to use the API in my application as well.

Thanks for the support.