1Name 2 3 ANGLE_device_eagl 4 5Name Strings 6 7 EGL_ANGLE_device_eagl 8 9Contributors 10 11 Dean Jackson (dino 'at' apple.com) 12 Ken Russell (kbr 'at' google.com) 13 14Contact 15 16 Ken Russell (kbr 'at' google.com) 17 18Status 19 20 Draft 21 22Version 23 24 Version 1, January 3, 2020 25 26Number 27 28 EGL Extension #XXX 29 30Extension Type 31 32 EGL device extension 33 34Dependencies 35 36 This extension is written against the language of EGL 1.5 as 37 modified by EGL_EXT_device_query. 38 39 EGL_EXT_device_query is required. 40 41Overview 42 43 ANGLE on iOS internally uses an OpenGL ES context allocated via EAGL. 44 This extension defines a mapping from an EGL device to the underlying 45 EAGLContext, after it's been queried from an EGL display. 46 47IP Status 48 49 No known claims. 50 51New Types 52 53 None. 54 55New Procedures and Functions 56 57 None. 58 59New Tokens 60 61 Accepted as a queried <attribute> in eglQueryDeviceAttribEXT: 62 63 EGL_EAGL_CONTEXT_ANGLE 0x348C 64 65Add a new section 2.1.3 (EAGL Devices) after 2.1.2 (Devices) 66 67 On iOS the underlying EAGLContext can be queried from the EGL device. The 68 intented purpose is to allow applications to create new EAGLContexts which 69 share resources with this one. 70 71Changes to section 3.2 (Devices) 72 73 Replace the paragraph immediately following the prototype for 74 eglQueryDeviceAttribEXT: 75 76 <attribute> must be EGL_EAGL_CONTEXT_ANGLE. On success, EGL_TRUE is 77 returned, and a valid EAGLContext corresponding to the EGL device is 78 returned in <value>. This object is compatible with OpenGL ES and EAGL API 79 functions. If the EGL device is not currently associated with an 80 EAGLContext, EGL_BAD_ATTRIBUTE is returned, and <value> is left unchanged. 81 82Issues 83 84 None 85 86Revision History 87 88 Version 1, January 3, 2020 (Ken Russell) 89 - Initial Draft 90