GL_EXT_pvrtc_sRGB#

Supported Hardware#

Series6, Series6XE, Series6XT

Valid APIs#

OpenGL ES 2.0, OpenGL ES 3.x

Description#

This extension allows PVRTC texture data (see IMG_texture_compression_pvrtc and IMG_texture_compression_pvrtc2)to be interpreted as sRGB values when sampled by a shader, and automatically convert those values to linear space.

Example#

// Create a PVRTC1 4bpp sRGB without alpha texture
glTexStorage2D(GL_TEXTURE_2D, textureLevels, GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT, textureWidth, textureHeight);
// Create a PVRTC2 2bpp sRGB texture
glTexStorage2D(GL_TEXTURE_2D, textureLevels, GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG, textureWidth, textureHeight);