11
Ken Russell (kbr 'at' google.com)
12
Geoff Lang (geofflang 'at' google.com)
16
Ken Russell (kbr 'at' google.com)
24
Version 1, October 4, 2019
36
This extension is written against the language of EGL 1.5 as
37
modified by EGL_EXT_device_query.
39
EGL_EXT_device_query is required.
43
ANGLE on macOS internally uses an OpenGL context allocated via CGL.
44
This extension defines a mapping from an EGL device to the underlying
45
CGLContextObj and its associated CGLPixelFormatObj, after it's been
46
queried from an EGL display.
56
New Procedures and Functions
62
Accepted as a queried <attribute> in eglQueryDeviceAttribEXT:
64
EGL_CGL_CONTEXT_ANGLE 0x3485
65
EGL_CGL_PIXEL_FORMAT_ANGLE 0x3486
67
Add a new section 2.1.3 (CGL Devices) after 2.1.2 (Devices)
69
On macOS the underlying CGLContextObj and CGLPixelFormatObj can be queried
70
from the EGL device. The intented purpose is to allow applications to create
71
new CGL contexts which share resources with this one.
73
Changes to section 3.2 (Devices)
75
Replace the paragraph immediately following the prototype for
76
eglQueryDeviceAttribEXT:
78
<attribute> may be either EGL_CGLCONTEXT_DEVICE_ANGLE or
79
EGL_CGLPIXELFORMAT_DEVICE_ANGLE. On success, EGL_TRUE is returned, and a
80
valid CGLContextObj or CGLPixelFormatObj corresponding to the EGL device is
81
returned in <value>. These objects are compatible with OpenGL and CGL API
82
functions. If the EGL device is not currently associated with a CGL context,
83
EGL_BAD_ATTRIBUTE is returned, and <value> is left unchanged.
91
Version 1, October 4, 2019 (Ken Russell)
93
Version 2, October 8, 2019 (Ken Russell)
94
- Address feedback from Geoff Lang