Hi Sean Ellis
I am writing a webgl based html application that uses astc compressed textures to be loaded on my triangle. I would like to know that does there exists a way to know whether the internal format of the compressed astc image(that in my case might be located on a remote web server) is linear or srgb encoded, by parsing the astc header. I can then use that internalFormat information obtained to pass my astc texture to glCompressedTexImage2D(). In other words, for eg. I want to know whether my internal format is "COMPRESSED_RGBA_ASTC_4x4_KHR" or "COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR" from the header of any astc compressed image. Any clues?
Thank you
Regards,
Deepak
Hi Chris,
Yes sure I strongly think that magic number, color encoding scheme are a few relevant things that should be present in the header outputted in the texture blob by the ASTC encoder.
It makes for more robust applications as we can do necessary validations on the application side itself because letting the Driver hardware figure it out.
Thanks.