GL_EXT_clear_texture#
Valid APIs#
OpenGL ES 3.1+
Description#
This extension enables developers to initialize textures directly to a desired value.
Registry Link#
https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_clear_texture.txt
Example#
float data[] = {0.0f, 0.0f, 0.0f, 1.0f};
glClearTexImageEXT(textureHandle, 0, GL_RGBA, GL_BYTE, &data);