1 //
2 // Copyright 2017 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // eglext_angle.h: ANGLE modifications to the eglext.h header file.
7 //   Currently we don't include this file directly, we patch eglext.h
8 //   to include it implicitly so it is visible throughout our code.
9 
10 #ifndef INCLUDE_EGL_EGLEXT_ANGLE_
11 #define INCLUDE_EGL_EGLEXT_ANGLE_
12 
13 // clang-format off
14 
15 #ifndef EGL_ANGLE_robust_resource_initialization
16 #define EGL_ANGLE_robust_resource_initialization 1
17 #define EGL_ROBUST_RESOURCE_INITIALIZATION_ANGLE 0x3453
18 #endif /* EGL_ANGLE_robust_resource_initialization */
19 
20 #ifndef EGL_ANGLE_keyed_mutex
21 #define EGL_ANGLE_keyed_mutex 1
22 #define EGL_DXGI_KEYED_MUTEX_ANGLE        0x33A2
23 #endif /* EGL_ANGLE_keyed_mutex */
24 
25 #ifndef EGL_ANGLE_d3d_texture_client_buffer
26 #define EGL_ANGLE_d3d_texture_client_buffer 1
27 #define EGL_D3D_TEXTURE_ANGLE 0x33A3
28 #define EGL_TEXTURE_OFFSET_X_ANGLE 0x3490
29 #define EGL_TEXTURE_OFFSET_Y_ANGLE 0x3491
30 #define EGL_D3D11_TEXTURE_PLANE_ANGLE 0x3492
31 #define EGL_D3D11_TEXTURE_ARRAY_SLICE_ANGLE 0x3493
32 #endif /* EGL_ANGLE_d3d_texture_client_buffer */
33 
34 #ifndef EGL_ANGLE_software_display
35 #define EGL_ANGLE_software_display 1
36 #define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1)
37 #endif /* EGL_ANGLE_software_display */
38 
39 #ifndef EGL_ANGLE_direct3d_display
40 #define EGL_ANGLE_direct3d_display 1
41 #define EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE ((EGLNativeDisplayType)-2)
42 #define EGL_D3D11_ONLY_DISPLAY_ANGLE ((EGLNativeDisplayType)-3)
43 #endif /* EGL_ANGLE_direct3d_display */
44 
45 #ifndef EGL_ANGLE_direct_composition
46 #define EGL_ANGLE_direct_composition 1
47 #define EGL_DIRECT_COMPOSITION_ANGLE 0x33A5
48 #endif /* EGL_ANGLE_direct_composition */
49 
50 #ifndef EGL_ANGLE_platform_angle
51 #define EGL_ANGLE_platform_angle 1
52 #define EGL_PLATFORM_ANGLE_ANGLE          0x3202
53 #define EGL_PLATFORM_ANGLE_TYPE_ANGLE     0x3203
54 #define EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE 0x3204
55 #define EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE 0x3205
56 #define EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE 0x3206
57 #define EGL_PLATFORM_ANGLE_DEBUG_LAYERS_ENABLED_ANGLE 0x3451
58 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE 0x3209
59 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE 0x320A
60 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_NULL_ANGLE 0x345E
61 #define EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE 0x348F
62 #endif /* EGL_ANGLE_platform_angle */
63 
64 #ifndef EGL_ANGLE_platform_angle_d3d
65 #define EGL_ANGLE_platform_angle_d3d 1
66 #define EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3207
67 #define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3208
68 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_WARP_ANGLE 0x320B
69 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_REFERENCE_ANGLE 0x320C
70 #define EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE 0x320F
71 #endif /* EGL_ANGLE_platform_angle_d3d */
72 
73 #ifndef EGL_ANGLE_platform_angle_d3d_luid
74 #define EGL_ANGLE_platform_angle_d3d_luid 1
75 #define EGL_PLATFORM_ANGLE_D3D_LUID_HIGH_ANGLE 0x34A0
76 #define EGL_PLATFORM_ANGLE_D3D_LUID_LOW_ANGLE 0x34A1
77 #endif /* EGL_ANGLE_platform_angle_d3d_luid */
78 
79 #ifndef EGL_ANGLE_platform_angle_d3d11on12
80 #define EGL_ANGLE_platform_angle_d3d11on12 1
81 #define EGL_PLATFORM_ANGLE_D3D11ON12_ANGLE 0x3488
82 #endif /* EGL_ANGLE_platform_angle_d3d11on12 */
83 
84 #ifndef EGL_ANGLE_platform_angle_opengl
85 #define EGL_ANGLE_platform_angle_opengl 1
86 #define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE 0x320D
87 #define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE 0x320E
88 #define EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE 0x3480
89 #endif /* EGL_ANGLE_platform_angle_opengl */
90 
91 #ifndef EGL_ANGLE_platform_angle_null
92 #define EGL_ANGLE_platform_angle_null 1
93 #define EGL_PLATFORM_ANGLE_TYPE_NULL_ANGLE 0x33AE
94 #endif /* EGL_ANGLE_platform_angle_null */
95 
96 #ifndef EGL_ANGLE_platform_angle_vulkan
97 #define EGL_ANGLE_platform_angle_vulkan 1
98 #define EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE 0x3450
99 #define EGL_PLATFORM_VULKAN_DISPLAY_MODE_SIMPLE_ANGLE 0x34A4
100 #define EGL_PLATFORM_VULKAN_DISPLAY_MODE_HEADLESS_ANGLE 0x34A5
101 #endif /* EGL_ANGLE_platform_angle_vulkan */
102 
103 #ifndef EGL_ANGLE_platform_angle_metal
104 #define EGL_ANGLE_platform_angle_metal 1
105 #define EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE 0x3489
106 #endif /* EGL_ANGLE_platform_angle_metal  */
107 
108 #ifndef EGL_ANGLE_platform_angle_device_type_swiftshader
109 #define EGL_ANGLE_platform_angle_device_type_swiftshader
110 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_SWIFTSHADER_ANGLE 0x3487
111 #endif /* EGL_ANGLE_platform_angle_device_type_swiftshader */
112 
113 #ifndef EGL_ANGLE_platform_angle_device_type_egl_angle
114 #define EGL_ANGLE_platform_angle_device_type_egl_angle
115 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_EGL_ANGLE 0x348E
116 #endif /* EGL_ANGLE_platform_angle_device_type_egl_angle */
117 
118 #ifndef EGL_ANGLE_platform_angle_context_virtualization
119 #define EGL_ANGLE_platform_angle_context_virtualization 1
120 #define EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE 0x3481
121 #endif /* EGL_ANGLE_platform_angle_context_virtualization */
122 
123 #ifndef EGL_ANGLE_platform_angle_device_context_volatile_eagl
124 #define EGL_ANGLE_platform_angle_device_context_volatile_eagl 1
125 #define EGL_PLATFORM_ANGLE_DEVICE_CONTEXT_VOLATILE_EAGL_ANGLE 0x34A2
126 #endif /* EGL_ANGLE_platform_angle_device_context_volatile_eagl */
127 
128 #ifndef EGL_ANGLE_platform_angle_device_context_volatile_cgl
129 #define EGL_ANGLE_platform_angle_device_context_volatile_cgl 1
130 #define EGL_PLATFORM_ANGLE_DEVICE_CONTEXT_VOLATILE_CGL_ANGLE 0x34A3
131 #endif /* EGL_ANGLE_platform_angle_device_context_volatile_cgl */
132 
133 #ifndef EGL_ANGLE_x11_visual
134 #define EGL_ANGLE_x11_visual
135 #define EGL_X11_VISUAL_ID_ANGLE 0x33A3
136 #endif /* EGL_ANGLE_x11_visual */
137 
138 #ifndef EGL_ANGLE_flexible_surface_compatibility
139 #define EGL_ANGLE_flexible_surface_compatibility 1
140 #define EGL_FLEXIBLE_SURFACE_COMPATIBILITY_SUPPORTED_ANGLE 0x33A6
141 #endif /* EGL_ANGLE_flexible_surface_compatibility */
142 
143 #ifndef EGL_ANGLE_surface_orientation
144 #define EGL_ANGLE_surface_orientation
145 #define EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE 0x33A7
146 #define EGL_SURFACE_ORIENTATION_ANGLE 0x33A8
147 #define EGL_SURFACE_ORIENTATION_INVERT_X_ANGLE 0x0001
148 #define EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE 0x0002
149 #endif /* EGL_ANGLE_surface_orientation */
150 
151 #ifndef EGL_ANGLE_experimental_present_path
152 #define EGL_ANGLE_experimental_present_path
153 #define EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE 0x33A4
154 #define EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE 0x33A9
155 #define EGL_EXPERIMENTAL_PRESENT_PATH_COPY_ANGLE 0x33AA
156 #endif /* EGL_ANGLE_experimental_present_path */
157 
158 #ifndef EGL_ANGLE_stream_producer_d3d_texture
159 #define EGL_ANGLE_stream_producer_d3d_texture
160 #define EGL_D3D_TEXTURE_SUBRESOURCE_ID_ANGLE 0x33AB
161 typedef EGLBoolean(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
162 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMPOSTD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
163 #ifdef EGL_EGLEXT_PROTOTYPES
164 EGLAPI EGLBoolean EGLAPIENTRY eglCreateStreamProducerD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
165 EGLAPI EGLBoolean EGLAPIENTRY eglStreamPostD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
166 #endif
167 #endif /* EGL_ANGLE_stream_producer_d3d_texture */
168 
169 #ifndef EGL_ANGLE_create_context_webgl_compatibility
170 #define EGL_ANGLE_create_context_webgl_compatibility 1
171 #define EGL_CONTEXT_WEBGL_COMPATIBILITY_ANGLE 0x33AC
172 #endif /* EGL_ANGLE_create_context_webgl_compatibility */
173 
174 #ifndef EGL_ANGLE_display_texture_share_group
175 #define EGL_ANGLE_display_texture_share_group 1
176 #define EGL_DISPLAY_TEXTURE_SHARE_GROUP_ANGLE 0x33AF
177 #endif /* EGL_ANGLE_display_texture_share_group */
178 
179 #ifndef EGL_CHROMIUM_create_context_bind_generates_resource
180 #define EGL_CHROMIUM_create_context_bind_generates_resource 1
181 #define EGL_CONTEXT_BIND_GENERATES_RESOURCE_CHROMIUM 0x33AD
182 #endif /* EGL_CHROMIUM_create_context_bind_generates_resource */
183 
184 #ifndef EGL_ANGLE_create_context_client_arrays
185 #define EGL_ANGLE_create_context_client_arrays 1
186 #define EGL_CONTEXT_CLIENT_ARRAYS_ENABLED_ANGLE 0x3452
187 #endif /* EGL_ANGLE_create_context_client_arrays */
188 
189 #ifndef EGL_ANGLE_device_creation
190 #define EGL_ANGLE_device_creation 1
191 typedef EGLDeviceEXT(EGLAPIENTRYP PFNEGLCREATEDEVICEANGLEPROC) (EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
192 typedef EGLBoolean(EGLAPIENTRYP PFNEGLRELEASEDEVICEANGLEPROC) (EGLDeviceEXT device);
193 #ifdef EGL_EGLEXT_PROTOTYPES
194 EGLAPI EGLDeviceEXT EGLAPIENTRY eglCreateDeviceANGLE(EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
195 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseDeviceANGLE(EGLDeviceEXT device);
196 #endif
197 #endif /* EGL_ANGLE_device_creation */
198 
199 #ifndef EGL_ANGLE_program_cache_control
200 #define EGL_ANGLE_program_cache_control 1
201 #define EGL_PROGRAM_CACHE_SIZE_ANGLE 0x3455
202 #define EGL_PROGRAM_CACHE_KEY_LENGTH_ANGLE 0x3456
203 #define EGL_PROGRAM_CACHE_RESIZE_ANGLE 0x3457
204 #define EGL_PROGRAM_CACHE_TRIM_ANGLE 0x3458
205 #define EGL_CONTEXT_PROGRAM_BINARY_CACHE_ENABLED_ANGLE 0x3459
206 typedef EGLint (EGLAPIENTRYP PFNEGLPROGRAMCACHEGETATTRIBANGLEPROC) (EGLDisplay dpy, EGLenum attrib);
207 typedef void (EGLAPIENTRYP PFNEGLPROGRAMCACHEQUERYANGLEPROC) (EGLDisplay dpy, EGLint index, void *key, EGLint *keysize, void *binary, EGLint *binarysize);
208 typedef void (EGLAPIENTRYP PFNEGLPROGRAMCACHEPOPULATEANGLEPROC) (EGLDisplay dpy, const void *key, EGLint keysize, const void *binary, EGLint binarysize);
209 typedef EGLint (EGLAPIENTRYP PFNEGLPROGRAMCACHERESIZEANGLEPROC) (EGLDisplay dpy, EGLint limit, EGLint mode);
210 #ifdef EGL_EGLEXT_PROTOTYPES
211 EGLAPI EGLint EGLAPIENTRY eglProgramCacheGetAttribANGLE(EGLDisplay dpy, EGLenum attrib);
212 EGLAPI void EGLAPIENTRY eglProgramCacheQueryANGLE(EGLDisplay dpy, EGLint index, void *key, EGLint *keysize, void *binary, EGLint *binarysize);
213 EGLAPI void EGLAPIENTRY eglProgramCachePopulateANGLE(EGLDisplay dpy, const void *key, EGLint keysize, const void *binary, EGLint binarysize);
214 EGLAPI EGLint EGLAPIENTRY eglProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLint mode);
215 #endif
216 #endif /* EGL_ANGLE_program_cache_control */
217 
218 #ifndef EGL_ANGLE_iosurface_client_buffer
219 #define EGL_ANGLE_iosurface_client_buffer 1
220 #define EGL_IOSURFACE_ANGLE 0x3454
221 #define EGL_IOSURFACE_PLANE_ANGLE 0x345A
222 #define EGL_TEXTURE_RECTANGLE_ANGLE 0x345B
223 #define EGL_TEXTURE_TYPE_ANGLE 0x345C
224 #define EGL_TEXTURE_INTERNAL_FORMAT_ANGLE 0x345D
225 #define EGL_IOSURFACE_USAGE_HINT_ANGLE 0x348A
226 #define EGL_IOSURFACE_READ_HINT_ANGLE 0x0001
227 #define EGL_IOSURFACE_WRITE_HINT_ANGLE 0x0002
228 #define EGL_BIND_TO_TEXTURE_TARGET_ANGLE 0x348D
229 #endif /* EGL_ANGLE_iosurface_client_buffer */
230 
231 #ifndef ANGLE_metal_texture_client_buffer
232 #define ANGLE_metal_texture_client_buffer 1
233 #define EGL_METAL_TEXTURE_ANGLE 0x34A7
234 #endif /* ANGLE_metal_texture_client_buffer */
235 
236 #ifndef EGL_ANGLE_create_context_extensions_enabled
237 #define EGL_ANGLE_create_context_extensions_enabled 1
238 #define EGL_EXTENSIONS_ENABLED_ANGLE 0x345F
239 #endif /* EGL_ANGLE_create_context_extensions_enabled */
240 
241 #ifndef EGL_CHROMIUM_sync_control
242 #define EGL_CHROMIUM_sync_control 1
243 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCVALUESCHROMIUMPROC) (EGLDisplay dpy,
244                                                              EGLSurface surface,
245                                                              EGLuint64KHR *ust,
246                                                              EGLuint64KHR *msc,
247                                                              EGLuint64KHR *sbc);
248 #ifdef EGL_EGLEXT_PROTOTYPES
249 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncValuesCHROMIUM(EGLDisplay dpy,
250                                                              EGLSurface surface,
251                                                              EGLuint64KHR *ust,
252                                                              EGLuint64KHR *msc,
253                                                              EGLuint64KHR *sbc);
254 #endif
255 #endif /* EGL_CHROMIUM_sync_control */
256 
257 #ifndef EGL_ANGLE_sync_control_rate
258 #define EGL_ANGLE_sync_control_rate 1
259 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMSCRATEANGLEPROC) (EGLDisplay dpy,
260                                                              EGLSurface surface,
261                                                              EGLint *numerator,
262                                                              EGLint *denominator);
263 #ifdef EGL_EGLEXT_PROTOTYPES
264 EGLAPI EGLBoolean EGLAPIENTRY eglGetMscRateANGLE(EGLDisplay dpy,
265                                                              EGLSurface surface,
266                                                              EGLint *numerator,
267                                                              EGLint *denominator);
268 #endif
269 #endif /* EGL_ANGLE_sync_control_rate */
270 
271 #ifndef EGL_ANGLE_power_preference
272 #define EGL_ANGLE_power_preference 1
273 #define EGL_POWER_PREFERENCE_ANGLE 0x3482
274 #define EGL_LOW_POWER_ANGLE 0x0001
275 #define EGL_HIGH_POWER_ANGLE 0x0002
276 typedef void(EGLAPIENTRYP PFNEGLRELEASEHIGHPOWERGPUANGLEPROC) (EGLDisplay dpy, EGLContext ctx);
277 typedef void(EGLAPIENTRYP PFNEGLREACQUIREHIGHPOWERGPUANGLEPROC) (EGLDisplay dpy, EGLContext ctx);
278 typedef void(EGLAPIENTRYP PFNEGLHANDLEGPUSWITCHANGLEPROC) (EGLDisplay dpy);
279 #ifdef EGL_EGLEXT_PROTOTYPES
280 EGLAPI void EGLAPIENTRY eglReleaseHighPowerGPUANGLE(EGLDisplay dpy, EGLContext ctx);
281 EGLAPI void EGLAPIENTRY eglReacquireHighPowerGPUANGLE(EGLDisplay dpy, EGLContext ctx);
282 EGLAPI void EGLAPIENTRY eglHandleGPUSwitchANGLE(EGLDisplay dpy);
283 #endif
284 #endif /* EGL_ANGLE_power_preference */
285 
286 #ifndef EGL_ANGLE_feature_control
287 #define EGL_ANGLE_feature_control 1
288 #define EGL_FEATURE_NAME_ANGLE 0x3460
289 #define EGL_FEATURE_CATEGORY_ANGLE 0x3461
290 #define EGL_FEATURE_DESCRIPTION_ANGLE 0x3462
291 #define EGL_FEATURE_BUG_ANGLE 0x3463
292 #define EGL_FEATURE_STATUS_ANGLE 0x3464
293 #define EGL_FEATURE_COUNT_ANGLE 0x3465
294 #define EGL_FEATURE_OVERRIDES_ENABLED_ANGLE 0x3466
295 #define EGL_FEATURE_OVERRIDES_DISABLED_ANGLE 0x3467
296 #define EGL_FEATURE_CONDITION_ANGLE 0x3468
297 #define EGL_FEATURE_ALL_DISABLED_ANGLE 0x3469
298 typedef const char *(EGLAPIENTRYP PFNEGLQUERYSTRINGIANGLEPROC) (EGLDisplay dpy, EGLint name, EGLint index);
299 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBANGLEPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
300 #ifdef EGL_EGLEXT_PROTOTYPES
301 EGLAPI const char *EGLAPIENTRY eglQueryStringiANGLE(EGLDisplay dpy, EGLint name, EGLint index);
302 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribANGLE(EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
303 #endif
304 #endif /* EGL_ANGLE_feature_control */
305 
306 #ifndef EGL_ANGLE_image_d3d11_texture
307 #define EGL_D3D11_TEXTURE_ANGLE 0x3484
308 #define EGL_TEXTURE_INTERNAL_FORMAT_ANGLE 0x345D
309 #endif /* EGL_ANGLE_image_d3d11_texture */
310 
311 #ifndef EGL_ANGLE_create_context_backwards_compatible
312 #define EGL_ANGLE_create_context_backwards_compatible 1
313 #define EGL_CONTEXT_OPENGL_BACKWARDS_COMPATIBLE_ANGLE 0x3483
314 #endif /* EGL_ANGLE_create_context_backwards_compatible */
315 
316 #ifndef EGL_ANGLE_device_cgl
317 #define EGL_ANGLE_device_cgl 1
318 #define EGL_CGL_CONTEXT_ANGLE 0x3485
319 #define EGL_CGL_PIXEL_FORMAT_ANGLE 0x3486
320 #endif
321 
322 #ifndef EGL_ANGLE_ggp_stream_descriptor
323 #define EGL_ANGLE_ggp_stream_descriptor 1
324 #define EGL_GGP_STREAM_DESCRIPTOR_ANGLE 0x348B
325 #endif /* EGL_ANGLE_ggp_stream_descriptor */
326 
327 #ifndef EGL_ANGLE_swap_with_frame_token
328 #define EGL_ANGLE_swap_with_frame_token 1
329 typedef khronos_uint64_t EGLFrameTokenANGLE;
330 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHFRAMETOKENANGLEPROC)(EGLDisplay dpy, EGLSurface surface, EGLFrameTokenANGLE frametoken);
331 #ifdef EGL_EGLEXT_PROTOTYPES
332 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithFrameTokenANGLE(EGLDisplay dpy, EGLSurface surface, EGLFrameTokenANGLE frametoken);
333 #endif
334 #endif /* EGL_ANGLE_swap_with_frame_token */
335 
336 #ifndef EGL_ANGLE_device_eagl
337 #define EGL_ANGLE_device_eagl 1
338 #define EGL_EAGL_CONTEXT_ANGLE 0x348C
339 #endif
340 
341 #ifndef EGL_ANGLE_device_metal
342 #define EGL_ANGLE_device_metal 1
343 #define EGL_METAL_DEVICE_ANGLE 0x34A6
344 #endif /* EGL_ANGLE_device_metal */
345 
346 #ifndef EGL_ANGLE_display_semaphore_share_group
347 #define EGL_ANGLE_display_semaphore_share_group 1
348 #define EGL_DISPLAY_SEMAPHORE_SHARE_GROUP_ANGLE 0x348D
349 #endif /* EGL_ANGLE_display_semaphore_share_group */
350 
351 #ifndef EGL_ANGLE_external_context_and_surface
352 #define EGL_ANGLE_external_context_and_surface 1
353 #define EGL_EXTERNAL_CONTEXT_ANGLE 0x348E
354 #define EGL_EXTERNAL_SURFACE_ANGLE 0x348F
355 #define EGL_EXTERNAL_CONTEXT_SAVE_STATE_ANGLE 0x3490
356 #endif /* EGL_ANGLE_external_context_and_surface */
357 
358 // clang-format on
359 
360 #endif  // INCLUDE_EGL_EGLEXT_ANGLE_
361