GL_OES_required_internalformat#
Supported Hardware#
Series5, Series5XT, Series6, Series6XE, Series6XT
Valid APIs#
OpenGL ES 1.x, 2.0
Description#
By default, OpenGL ES implementations are free to store texture data as they see fit when using unsized types such as “GL_RGBA”. This extension adds a number of “sized” internal formats to the specification which mandate a minimum storage precision for these data types. More precision may be used internally, but it can never store data at a lower precision than requested which would otherwise cause a loss of information.
Note#
This functionality is core to OpenGL ES 3.0.
Registry Link#
http://www.khronos.org/registry/gles/extensions/OES/OES_required_internalformat.txt
Example#
// Create a texture with RGBA8 so that it uses no less than 8 bits per pixel
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8_OES, 1024, 1024, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixelData);