EXT_shader_framebuffer_fetch
WebGL working group (public_webgl 'at' khronos.org)
PlayCanvas, Snap Inc
Last modified date: February 01, 2022
Revision: 2
WebGL extension #XYZ
Written against the WebGL API 1.0 specification.
This extension exposes the EXT_shader_framebuffer_fetch functionality to WebGL.
There are no WebGL-specific behavioral changes.
Consult the above extension for documentation, issues and new functions and enumerants.
When this extension is enabled:
GL_EXT_shader_framebuffer_fetch
is enabled, gl_LastFragData[]
is populated with the value last written to the framebuffer at the same (x,y,sample) position.
EXT_shader_framebuffer_fetch_non_coherent
is supported, a call to FramebufferFetchBarrierEXT(void)
can be made to ensure gl_LastFragData[]
is populated with fragment data drawn before the barrier.
[Exposed=(Window,Worker), LegacyNoInterfaceObject] interface EXT_shader_framebuffer_fetch { }; [Exposed=(Window,Worker), LegacyNoInterfaceObject] interface EXT_shader_framebuffer_fetch_non_coherent { undefined FramebufferFetchBarrierEXT(void); };
void main(){ gl_FragColor = gl_LastFragData[0]; }
Revision 1, 2020/05/22
Revision 2, 2022/02/01