Edit

kc3-lang/angle/extensions/ANGLE_webgl_compatibility.txt

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2016-09-16 14:46:51
    Hash : c287ea6e
    Message : Add WebGL validation extensions to ANGLE. BUG=angleproject:1523 Change-Id: I6fecb5055ed8087665aeee34b3a066ea8f38d51b Reviewed-on: https://chromium-review.googlesource.com/386281 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>

  • extensions/ANGLE_webgl_compatibility.txt
  • Name
    
        ANGLE_webgl_compatibility
    
    Name Strings
    
        GL_ANGLE_webgl_compatibility
    
    Contributors
    
        Geoff Lang
    
    Contact
    
        Geoff Lang (geofflang 'at' google.com)
    
    Notice
    
        Copyright (c) 2016 The Khronos Group Inc. Copyright terms at
            http://www.khronos.org/registry/speccopyright.html
    
    Status
    
        Draft
    
    Version
    
        Version 1, September 16, 2016
    
    Number
    
        OpenGL ES Extension #??
    
    Dependencies
    
        Requires OpenGL ES 2.0
    
        Written against the OpenGL ES 2.0 specification.
    
        Interacts with EGL_ANGLE_create_context_webgl_compatibility (or equivalent)
        extension.
    
    Overview
    
        With this extension enabled, the OpenGL ES context will have additional
        features and validation to be compatible with the WebGL specification.
    
    New Procedures and Functions
    
        boolean EnableExtension(const char *name)
    
    New Tokens
    
        None
    
    Additions to the OpenGL ES Specification
    
        The command
    
           boolean EnableExtension(const char *name)
    
        enables the OpenGL ES extension named <name>.  Returns true on success and
        false otherwise.  If the extension does not support being enabled or <name>
        does not name a valid OpenGL ES extension, INVALID_OPERATION is generated.
        If the extension is valid but is not supported by the context, no error is
        generated but false is returned.
    
        Additional validation will be performed according to the the sections of
        the WebGL specification entitled "Differences Between WebGL and OpenGL ES
        2.0" and "Differences Between WebGL and OpenGL ES 3.0".
    
    New State
    
        None
    
    Conformance Tests
    
        TBD
    
    Issues
    
        (1) How can the user determine which extensions can be enabled without
            potentially generating errors?
    
          This can be solved by:
          a) Never generate an error in EnableExtensions, simply return false when
             the extension is not recognized or cannot be enabled.
          b) Add another entry point to query all extensions that the context
             supports enabling.
    
    Revision History
    
        Rev.    Date         Author     Changes
        ----  -------------  ---------  ----------------------------------------
          1   Sept 16, 2016  geofflang  Initial version