WebGL
Khronos
 

WebGL EXT_shader_framebuffer_fetch Extension Proposed Specification

DO NOT IMPLEMENT!!!

Name

EXT_shader_framebuffer_fetch

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

PlayCanvas, Snap Inc

Version

Last modified date: May 22, 2020
Revision: 1

Number

WebGL extension #XYZ

Dependencies

Written against the WebGL API 1.0 specification.

Overview

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:

IDL

    [LegacyNoInterfaceObject]
    interface EXT_shader_framebuffer_fetch {
    };

    [LegacyNoInterfaceObject]
    interface EXT_shader_framebuffer_fetch_non_coherent {
      void FramebufferFetchBarrierEXT(void);
    };
  

Sample Code

    void main(){
        gl_FragColor = gl_LastFragData[0];
    }
    

Revision History

Revision 1, 2020/05/22