Path: blob/main_old/extensions/EGL_ANGLE_device_cgl.txt
1693 views
Name12ANGLE_device_cgl34Name Strings56EGL_ANGLE_device_cgl78Contributors910Ken Russell (kbr 'at' google.com)11Geoff Lang (geofflang 'at' google.com)1213Contact1415Ken Russell (kbr 'at' google.com)1617Status1819Draft2021Version2223Version 1, October 4, 20192425Number2627EGL Extension #XXX2829Extension Type3031EGL device extension3233Dependencies3435This extension is written against the language of EGL 1.5 as36modified by EGL_EXT_device_query.3738EGL_EXT_device_query is required.3940Overview4142ANGLE on macOS internally uses an OpenGL context allocated via CGL.43This extension defines a mapping from an EGL device to the underlying44CGLContextObj and its associated CGLPixelFormatObj, after it's been45queried from an EGL display.4647IP Status4849No known claims.5051New Types5253None.5455New Procedures and Functions5657None.5859New Tokens6061Accepted as a queried <attribute> in eglQueryDeviceAttribEXT:6263EGL_CGL_CONTEXT_ANGLE 0x348564EGL_CGL_PIXEL_FORMAT_ANGLE 0x34866566Add a new section 2.1.3 (CGL Devices) after 2.1.2 (Devices)6768On macOS the underlying CGLContextObj and CGLPixelFormatObj can be queried69from the EGL device. The intented purpose is to allow applications to create70new CGL contexts which share resources with this one.7172Changes to section 3.2 (Devices)7374Replace the paragraph immediately following the prototype for75eglQueryDeviceAttribEXT:7677<attribute> may be either EGL_CGLCONTEXT_DEVICE_ANGLE or78EGL_CGLPIXELFORMAT_DEVICE_ANGLE. On success, EGL_TRUE is returned, and a79valid CGLContextObj or CGLPixelFormatObj corresponding to the EGL device is80returned in <value>. These objects are compatible with OpenGL and CGL API81functions. If the EGL device is not currently associated with a CGL context,82EGL_BAD_ATTRIBUTE is returned, and <value> is left unchanged.8384Issues8586None8788Revision History8990Version 1, October 4, 2019 (Ken Russell)91- Initial Draft92Version 2, October 8, 2019 (Ken Russell)93- Address feedback from Geoff Lang949596