Edit

kc3-lang/angle/extensions/EGL_ANGLE_platform_angle_opengl.txt

Branch :

  • Show log

    Commit

  • Author : Courtney Goeltzenleuchter
    Date : 2018-05-18 09:44:59
    Hash : 390900a0
    Message : Add support for EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE To support ANGLE for Android need a way to tell ANGLE what library to call when using GL backend. Bug: angleproject:2418 Test: test-opengl-gl2_copyTexImage Change-Id: Ie00251b0672a036db4720e1e5b269f66a30a03da Reviewed-on: https://chromium-review.googlesource.com/1066822 Commit-Queue: Courtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: Frank Henigman <fjhenigman@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>

  • extensions/EGL_ANGLE_platform_angle_opengl.txt
  • Name
    
        ANGLE_platform_angle_opengl
    
    Name Strings
    
        EGL_ANGLE_platform_angle_opengl
    
    Contributors
    
        Shannon Woods, Google
        Geoff Lang, Google
        Courtney Goeltzenleuchter, Google
    
    Contacts
    
        Geoff Lang, Google (geofflang 'at' chromium 'dot' org)
    
    Status
    
        Draft
    
    Version
    
        Version 4, 2018-05-17
    
    Number
    
        EGL Extension XXX
    
    Extension Type
    
        EGL client extension
    
    Dependencies
    
        Requires ANGLE_platform_angle.
    
    Overview
    
        This extension enables selection of OpenGL display types and,
        for OpenGL ES display types, allows the application to pass
        in a handle to the EGL library to use.
    
    New Types
    
        None
    
    New Procedures and Functions
    
        None
    
    New Tokens
    
        Accepted as values for the EGL_PLATFORM_ANGLE_TYPE_ANGLE attribute:
    
            EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE               0x320D
            EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE             0x320E
    
        Accepted as an attribute name in the <attrib_list> argument of
        eglGetPlatformDisplayEXT:
            EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE                0x3480
    
    Additions to the EGL Specification
    
        None.
    
    New Behavior
    
        To request a display that translates to OpenGL or OpenGL ES, the value of
        EGL_PLATFORM_ANGLE_TYPE_ANGLE should be:
          - EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE for an OpenGL display,
          - EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE for a native OpenGL ES display.
    
        To request a specific maximum context version to use for the underlying
        API, EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE and
        EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE can be used.
    
        To pass in a handle to the system EGL library, use the attribute
        EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE. If EGL_PLATFORM_ANGLE_TYPE_ANGLE
        is not equal to EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE, an
        EGL_BAD_ATTRIBUTE is generated. If the handle provided with
        EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE is not a valid EGL handle,
        behaviour is undefined.
    
    Issues
    
        None
    
    Revision History
    
        Version 1, 2014-06-05 (Geoff Lang)
          - Initial draft
        Version 2, 2014-10-27 (Geoff Lang)
          - Moved descriptions of platforms and major/minor versions from
            EGL_ANGLE_platform_angle spec to EGL_ANGLE_platform_angle_opengl.
        Version 3, 2014-11-26 (Geoff Lang)
          - Updated enum values.
        Version 4, 2018-05-17 (Courtney Goeltzenleuchter)
          - Add attribute for specifying underlying EGL library.