GL_EXT_shader_pixel_local_storage2#
Supported Hardware#
Series6, Series6XE, Series6XT
Valid APIs#
OpenGL ES 3.x
Description#
This extension builds on EXT_shader_pixel_local_storage by lifting the restriction that pixel local storage is not supported when rendering to multiple draw buffers.
Moreover, pixel local storage values are no longer lost when writing to user-defined fragment outputs, and, correspondingly, framebuffer pixel values do not always become undefined when the shader writes to pixel local storage.
This extension adds the following capabilities:
support for pixel local storage in combination with multiple user-defined fragment outputs.
support for clearing pixel local storage variables.
support for multi-word pixel local storage variables.
Registry Link#
https://www.khronos.org/registry/gles/extensions/EXT/EXT_shader_pixel_local_storage2.txt
Example#
glClearPixelLocalStorageuiEXT( 0, //offset
2, //number
NULL); //set to 0
glFramebufferPixelLocalStorageSizeEXT(0, 10);
uint pixel_local_storage_size = glGetFramebufferPixelLocalStorageSizeEXT(0);