xref: /aosp_15_r20/external/angle/include/EGL/eglext_angle.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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_webgpu
97 #define EGL_ANGLE_platform_angle_webgpu 1
98 #define EGL_PLATFORM_ANGLE_TYPE_WEBGPU_ANGLE 0x34DD
99 #endif /* EGL_ANGLE_platform_angle_webgpu */
100 
101 #ifndef EGL_ANGLE_platform_angle_vulkan
102 #define EGL_ANGLE_platform_angle_vulkan 1
103 #define EGL_PLATFORM_ANGLE_TYPE_VULKAN_ANGLE 0x3450
104 #define EGL_PLATFORM_VULKAN_DISPLAY_MODE_SIMPLE_ANGLE 0x34A4
105 #define EGL_PLATFORM_VULKAN_DISPLAY_MODE_HEADLESS_ANGLE 0x34A5
106 #endif /* EGL_ANGLE_platform_angle_vulkan */
107 
108 #ifndef EGL_ANGLE_platform_angle_metal
109 #define EGL_ANGLE_platform_angle_metal 1
110 #define EGL_PLATFORM_ANGLE_TYPE_METAL_ANGLE 0x3489
111 #endif /* EGL_ANGLE_platform_angle_metal  */
112 
113 #ifndef EGL_ANGLE_platform_angle_device_type_swiftshader
114 #define EGL_ANGLE_platform_angle_device_type_swiftshader
115 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_SWIFTSHADER_ANGLE 0x3487
116 #endif /* EGL_ANGLE_platform_angle_device_type_swiftshader */
117 
118 #ifndef EGL_ANGLE_platform_angle_device_type_egl_angle
119 #define EGL_ANGLE_platform_angle_device_type_egl_angle
120 #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_EGL_ANGLE 0x348E
121 #endif /* EGL_ANGLE_platform_angle_device_type_egl_angle */
122 
123 #ifndef EGL_ANGLE_context_virtualization
124 #define EGL_ANGLE_context_virtualization 1
125 #define EGL_CONTEXT_VIRTUALIZATION_GROUP_ANGLE 0x3481
126 #endif /* EGL_ANGLE_context_virtualization */
127 
128 #ifndef EGL_ANGLE_platform_angle_device_context_volatile_eagl
129 #define EGL_ANGLE_platform_angle_device_context_volatile_eagl 1
130 #define EGL_PLATFORM_ANGLE_DEVICE_CONTEXT_VOLATILE_EAGL_ANGLE 0x34A2
131 #endif /* EGL_ANGLE_platform_angle_device_context_volatile_eagl */
132 
133 #ifndef EGL_ANGLE_platform_angle_device_context_volatile_cgl
134 #define EGL_ANGLE_platform_angle_device_context_volatile_cgl 1
135 #define EGL_PLATFORM_ANGLE_DEVICE_CONTEXT_VOLATILE_CGL_ANGLE 0x34A3
136 #endif /* EGL_ANGLE_platform_angle_device_context_volatile_cgl */
137 
138 #ifndef EGL_ANGLE_platform_angle_device_id
139 #define EGL_ANGLE_platform_angle_device_id
140 #define EGL_PLATFORM_ANGLE_DEVICE_ID_HIGH_ANGLE 0x34D6
141 #define EGL_PLATFORM_ANGLE_DEVICE_ID_LOW_ANGLE 0x34D7
142 #define EGL_PLATFORM_ANGLE_DISPLAY_KEY_ANGLE 0x34DC
143 #endif /* EGL_ANGLE_platform_angle_device_id */
144 
145 #ifndef EGL_ANGLE_x11_visual
146 #define EGL_ANGLE_x11_visual
147 #define EGL_X11_VISUAL_ID_ANGLE 0x33A3
148 #endif /* EGL_ANGLE_x11_visual */
149 
150 #ifndef EGL_ANGLE_surface_orientation
151 #define EGL_ANGLE_surface_orientation
152 #define EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE 0x33A7
153 #define EGL_SURFACE_ORIENTATION_ANGLE 0x33A8
154 #define EGL_SURFACE_ORIENTATION_INVERT_X_ANGLE 0x0001
155 #define EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE 0x0002
156 #endif /* EGL_ANGLE_surface_orientation */
157 
158 #ifndef EGL_ANGLE_experimental_present_path
159 #define EGL_ANGLE_experimental_present_path
160 #define EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE 0x33A4
161 #define EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE 0x33A9
162 #define EGL_EXPERIMENTAL_PRESENT_PATH_COPY_ANGLE 0x33AA
163 #endif /* EGL_ANGLE_experimental_present_path */
164 
165 #ifndef EGL_ANGLE_stream_producer_d3d_texture
166 #define EGL_ANGLE_stream_producer_d3d_texture
167 #define EGL_D3D_TEXTURE_SUBRESOURCE_ID_ANGLE 0x33AB
168 typedef EGLBoolean(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
169 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMPOSTD3DTEXTUREANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
170 #ifdef EGL_EGLEXT_PROTOTYPES
171 EGLAPI EGLBoolean EGLAPIENTRY eglCreateStreamProducerD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
172 EGLAPI EGLBoolean EGLAPIENTRY eglStreamPostD3DTextureANGLE(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
173 #endif
174 #endif /* EGL_ANGLE_stream_producer_d3d_texture */
175 
176 #ifndef EGL_ANGLE_create_context_webgl_compatibility
177 #define EGL_ANGLE_create_context_webgl_compatibility 1
178 #define EGL_CONTEXT_WEBGL_COMPATIBILITY_ANGLE 0x33AC
179 #endif /* EGL_ANGLE_create_context_webgl_compatibility */
180 
181 #ifndef EGL_ANGLE_display_texture_share_group
182 #define EGL_ANGLE_display_texture_share_group 1
183 #define EGL_DISPLAY_TEXTURE_SHARE_GROUP_ANGLE 0x33AF
184 #endif /* EGL_ANGLE_display_texture_share_group */
185 
186 #ifndef EGL_CHROMIUM_create_context_bind_generates_resource
187 #define EGL_CHROMIUM_create_context_bind_generates_resource 1
188 #define EGL_CONTEXT_BIND_GENERATES_RESOURCE_CHROMIUM 0x33AD
189 #endif /* EGL_CHROMIUM_create_context_bind_generates_resource */
190 
191 #ifndef EGL_ANGLE_metal_create_context_ownership_identity
192 #define EGL_ANGLE_metal_create_context_ownership_identity 1
193 #define EGL_CONTEXT_METAL_OWNERSHIP_IDENTITY_ANGLE 0x34D2
194 #endif /* EGL_ANGLE_metal_create_context_ownership_identity */
195 
196 #ifndef EGL_ANGLE_create_context_client_arrays
197 #define EGL_ANGLE_create_context_client_arrays 1
198 #define EGL_CONTEXT_CLIENT_ARRAYS_ENABLED_ANGLE 0x3452
199 #endif /* EGL_ANGLE_create_context_client_arrays */
200 
201 #ifndef EGL_ANGLE_device_creation
202 #define EGL_ANGLE_device_creation 1
203 typedef EGLDeviceEXT(EGLAPIENTRYP PFNEGLCREATEDEVICEANGLEPROC) (EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
204 typedef EGLBoolean(EGLAPIENTRYP PFNEGLRELEASEDEVICEANGLEPROC) (EGLDeviceEXT device);
205 #ifdef EGL_EGLEXT_PROTOTYPES
206 EGLAPI EGLDeviceEXT EGLAPIENTRY eglCreateDeviceANGLE(EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
207 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseDeviceANGLE(EGLDeviceEXT device);
208 #endif
209 #endif /* EGL_ANGLE_device_creation */
210 
211 #ifndef EGL_ANGLE_program_cache_control
212 #define EGL_ANGLE_program_cache_control 1
213 #define EGL_PROGRAM_CACHE_SIZE_ANGLE 0x3455
214 #define EGL_PROGRAM_CACHE_KEY_LENGTH_ANGLE 0x3456
215 #define EGL_PROGRAM_CACHE_RESIZE_ANGLE 0x3457
216 #define EGL_PROGRAM_CACHE_TRIM_ANGLE 0x3458
217 #define EGL_CONTEXT_PROGRAM_BINARY_CACHE_ENABLED_ANGLE 0x3459
218 typedef EGLint (EGLAPIENTRYP PFNEGLPROGRAMCACHEGETATTRIBANGLEPROC) (EGLDisplay dpy, EGLenum attrib);
219 typedef void (EGLAPIENTRYP PFNEGLPROGRAMCACHEQUERYANGLEPROC) (EGLDisplay dpy, EGLint index, void *key, EGLint *keysize, void *binary, EGLint *binarysize);
220 typedef void (EGLAPIENTRYP PFNEGLPROGRAMCACHEPOPULATEANGLEPROC) (EGLDisplay dpy, const void *key, EGLint keysize, const void *binary, EGLint binarysize);
221 typedef EGLint (EGLAPIENTRYP PFNEGLPROGRAMCACHERESIZEANGLEPROC) (EGLDisplay dpy, EGLint limit, EGLint mode);
222 #ifdef EGL_EGLEXT_PROTOTYPES
223 EGLAPI EGLint EGLAPIENTRY eglProgramCacheGetAttribANGLE(EGLDisplay dpy, EGLenum attrib);
224 EGLAPI void EGLAPIENTRY eglProgramCacheQueryANGLE(EGLDisplay dpy, EGLint index, void *key, EGLint *keysize, void *binary, EGLint *binarysize);
225 EGLAPI void EGLAPIENTRY eglProgramCachePopulateANGLE(EGLDisplay dpy, const void *key, EGLint keysize, const void *binary, EGLint binarysize);
226 EGLAPI EGLint EGLAPIENTRY eglProgramCacheResizeANGLE(EGLDisplay dpy, EGLint limit, EGLint mode);
227 #endif
228 #endif /* EGL_ANGLE_program_cache_control */
229 
230 #ifndef EGL_ANGLE_iosurface_client_buffer
231 #define EGL_ANGLE_iosurface_client_buffer 1
232 #define EGL_IOSURFACE_ANGLE 0x3454
233 #define EGL_IOSURFACE_PLANE_ANGLE 0x345A
234 #define EGL_TEXTURE_RECTANGLE_ANGLE 0x345B
235 #define EGL_TEXTURE_TYPE_ANGLE 0x345C
236 #define EGL_TEXTURE_INTERNAL_FORMAT_ANGLE 0x345D
237 #define EGL_IOSURFACE_USAGE_HINT_ANGLE 0x348A
238 #define EGL_IOSURFACE_READ_HINT_ANGLE 0x0001
239 #define EGL_IOSURFACE_WRITE_HINT_ANGLE 0x0002
240 #define EGL_BIND_TO_TEXTURE_TARGET_ANGLE 0x348D
241 #endif /* EGL_ANGLE_iosurface_client_buffer */
242 
243 #ifndef ANGLE_metal_texture_client_buffer
244 #define ANGLE_metal_texture_client_buffer 1
245 #define EGL_METAL_TEXTURE_ANGLE 0x34A7
246 #define EGL_METAL_TEXTURE_ARRAY_SLICE_ANGLE 0x34DD
247 #endif /* ANGLE_metal_texture_client_buffer */
248 
249 #ifndef EGL_ANGLE_create_context_extensions_enabled
250 #define EGL_ANGLE_create_context_extensions_enabled 1
251 #define EGL_EXTENSIONS_ENABLED_ANGLE 0x345F
252 #endif /* EGL_ANGLE_create_context_extensions_enabled */
253 
254 #ifndef EGL_CHROMIUM_sync_control
255 #define EGL_CHROMIUM_sync_control 1
256 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCVALUESCHROMIUMPROC) (EGLDisplay dpy,
257                                                              EGLSurface surface,
258                                                              EGLuint64KHR *ust,
259                                                              EGLuint64KHR *msc,
260                                                              EGLuint64KHR *sbc);
261 #ifdef EGL_EGLEXT_PROTOTYPES
262 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncValuesCHROMIUM(EGLDisplay dpy,
263                                                              EGLSurface surface,
264                                                              EGLuint64KHR *ust,
265                                                              EGLuint64KHR *msc,
266                                                              EGLuint64KHR *sbc);
267 #endif
268 #endif /* EGL_CHROMIUM_sync_control */
269 
270 #ifndef EGL_ANGLE_sync_control_rate
271 #define EGL_ANGLE_sync_control_rate 1
272 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMSCRATEANGLEPROC) (EGLDisplay dpy,
273                                                              EGLSurface surface,
274                                                              EGLint *numerator,
275                                                              EGLint *denominator);
276 #ifdef EGL_EGLEXT_PROTOTYPES
277 EGLAPI EGLBoolean EGLAPIENTRY eglGetMscRateANGLE(EGLDisplay dpy,
278                                                              EGLSurface surface,
279                                                              EGLint *numerator,
280                                                              EGLint *denominator);
281 #endif
282 #endif /* EGL_ANGLE_sync_control_rate */
283 
284 #ifndef EGL_ANGLE_power_preference
285 #define EGL_ANGLE_power_preference 1
286 #define EGL_POWER_PREFERENCE_ANGLE 0x3482
287 #define EGL_LOW_POWER_ANGLE 0x0001
288 #define EGL_HIGH_POWER_ANGLE 0x0002
289 typedef void(EGLAPIENTRYP PFNEGLRELEASEHIGHPOWERGPUANGLEPROC) (EGLDisplay dpy, EGLContext ctx);
290 typedef void(EGLAPIENTRYP PFNEGLREACQUIREHIGHPOWERGPUANGLEPROC) (EGLDisplay dpy, EGLContext ctx);
291 typedef void(EGLAPIENTRYP PFNEGLHANDLEGPUSWITCHANGLEPROC) (EGLDisplay dpy);
292 typedef void(EGLAPIENTRYP PFNEGLFORCEGPUSWITCHANGLEPROC) (EGLDisplay dpy, EGLint gpuIDHigh, EGLint gpuIDLow);
293 #ifdef EGL_EGLEXT_PROTOTYPES
294 EGLAPI void EGLAPIENTRY eglReleaseHighPowerGPUANGLE(EGLDisplay dpy, EGLContext ctx);
295 EGLAPI void EGLAPIENTRY eglReacquireHighPowerGPUANGLE(EGLDisplay dpy, EGLContext ctx);
296 EGLAPI void EGLAPIENTRY eglHandleGPUSwitchANGLE(EGLDisplay dpy);
297 EGLAPI void EGLAPIENTRY eglForceGPUSwitchANGLE(EGLDisplay dpy, EGLint gpuIDHigh, EGLint gpuIDLow);
298 #endif
299 #endif /* EGL_ANGLE_power_preference */
300 
301 #ifndef EGL_ANGLE_wait_until_work_scheduled
302 #define EGL_ANGLE_wait_until_work_scheduled 1
303 typedef void(EGLAPIENTRYP PFNEGLWAITUNTILWORKSCHEDULEDANGLEPROC) (EGLDisplay dpy);
304 #ifdef EGL_EGLEXT_PROTOTYPES
305 EGLAPI void EGLAPIENTRY eglWaitUntilWorkScheduledANGLE(EGLDisplay dpy);
306 #endif
307 #endif /* EGL_ANGLE_wait_until_work_scheduled */
308 
309 #ifndef EGL_ANGLE_feature_control
310 #define EGL_ANGLE_feature_control 1
311 #define EGL_FEATURE_NAME_ANGLE 0x3460
312 #define EGL_FEATURE_CATEGORY_ANGLE 0x3461
313 #define EGL_FEATURE_STATUS_ANGLE 0x3464
314 #define EGL_FEATURE_COUNT_ANGLE 0x3465
315 #define EGL_FEATURE_OVERRIDES_ENABLED_ANGLE 0x3466
316 #define EGL_FEATURE_OVERRIDES_DISABLED_ANGLE 0x3467
317 #define EGL_FEATURE_ALL_DISABLED_ANGLE 0x3469
318 typedef const char *(EGLAPIENTRYP PFNEGLQUERYSTRINGIANGLEPROC) (EGLDisplay dpy, EGLint name, EGLint index);
319 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBANGLEPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
320 #ifdef EGL_EGLEXT_PROTOTYPES
321 EGLAPI const char *EGLAPIENTRY eglQueryStringiANGLE(EGLDisplay dpy, EGLint name, EGLint index);
322 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribANGLE(EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
323 #endif
324 #endif /* EGL_ANGLE_feature_control */
325 
326 #ifndef EGL_ANGLE_image_d3d11_texture
327 #define EGL_D3D11_TEXTURE_ANGLE 0x3484
328 #define EGL_TEXTURE_INTERNAL_FORMAT_ANGLE 0x345D
329 #endif /* EGL_ANGLE_image_d3d11_texture */
330 
331 #ifndef EGL_ANGLE_create_context_backwards_compatible
332 #define EGL_ANGLE_create_context_backwards_compatible 1
333 #define EGL_CONTEXT_OPENGL_BACKWARDS_COMPATIBLE_ANGLE 0x3483
334 #endif /* EGL_ANGLE_create_context_backwards_compatible */
335 
336 #ifndef EGL_ANGLE_device_cgl
337 #define EGL_ANGLE_device_cgl 1
338 #define EGL_CGL_CONTEXT_ANGLE 0x3485
339 #define EGL_CGL_PIXEL_FORMAT_ANGLE 0x3486
340 #endif
341 
342 #ifndef EGL_ANGLE_ggp_stream_descriptor
343 #define EGL_ANGLE_ggp_stream_descriptor 1
344 #define EGL_GGP_STREAM_DESCRIPTOR_ANGLE 0x348B
345 #endif /* EGL_ANGLE_ggp_stream_descriptor */
346 
347 #ifndef EGL_ANGLE_swap_with_frame_token
348 #define EGL_ANGLE_swap_with_frame_token 1
349 typedef khronos_uint64_t EGLFrameTokenANGLE;
350 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHFRAMETOKENANGLEPROC)(EGLDisplay dpy, EGLSurface surface, EGLFrameTokenANGLE frametoken);
351 #ifdef EGL_EGLEXT_PROTOTYPES
352 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithFrameTokenANGLE(EGLDisplay dpy, EGLSurface surface, EGLFrameTokenANGLE frametoken);
353 #endif
354 #endif /* EGL_ANGLE_swap_with_frame_token */
355 
356 #ifndef EGL_ANGLE_prepare_swap_buffers
357 #define EGL_ANGLE_prepare_swap_buffers 1
358 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPREPARESWAPBUFFERSANGLEPROC)(EGLDisplay dpy, EGLSurface surface);
359 #ifdef EGL_EGLEXT_PROTOTYPES
360 EGLAPI EGLBoolean EGLAPIENTRY eglPrepareSwapBuffersANGLE(EGLDisplay dpy, EGLSurface surface);
361 #endif
362 #endif /* EGL_ANGLE_prepare_swap_buffers */
363 
364 #ifndef EGL_ANGLE_device_eagl
365 #define EGL_ANGLE_device_eagl 1
366 #define EGL_EAGL_CONTEXT_ANGLE 0x348C
367 #endif
368 
369 #ifndef EGL_ANGLE_device_metal
370 #define EGL_ANGLE_device_metal 1
371 #define EGL_METAL_DEVICE_ANGLE 0x34A6
372 #endif /* EGL_ANGLE_device_metal */
373 
374 #ifndef EGL_ANGLE_display_semaphore_share_group
375 #define EGL_ANGLE_display_semaphore_share_group 1
376 #define EGL_DISPLAY_SEMAPHORE_SHARE_GROUP_ANGLE 0x348D
377 #endif /* EGL_ANGLE_display_semaphore_share_group */
378 
379 #ifndef EGL_ANGLE_external_context_and_surface
380 #define EGL_ANGLE_external_context_and_surface 1
381 #define EGL_EXTERNAL_CONTEXT_ANGLE 0x348E
382 #define EGL_EXTERNAL_SURFACE_ANGLE 0x348F
383 typedef void (EGLAPIENTRYP PFNEGLACQUIREEXTERNALCONTEXTANGLEPROC) (EGLDisplay dpy, EGLSurface readAndDraw);
384 typedef void (EGLAPIENTRYP PFNEGLRELEASEEXTERNALCONTEXTANGLEPROC) (EGLDisplay dpy);
385 #ifdef EGL_EGLEXT_PROTOTYPES
386 EGLAPI void EGLAPIENTRY eglAcquireExternalContextANGLE(EGLDisplay dpy, EGLSurface drawAndRead);
387 EGLAPI void EGLAPIENTRY eglReleaseExternalContextANGLE(EGLDisplay dpy);
388 #endif
389 #endif /* EGL_ANGLE_external_context_and_surface */
390 
391 #ifndef EGL_ANGLE_create_surface_swap_interval
392 #define EGL_ANGLE_create_surface_swap_interval 1
393 #define EGL_SWAP_INTERVAL_ANGLE 0x322F
394 #endif /* EGL_ANGLE_create_surface_swap_interval */
395 
396 #ifndef EGL_ANGLE_device_vulkan
397 #define EGL_ANGLE_device_vulkan 1
398 #define EGL_VULKAN_VERSION_ANGLE 0x34A8
399 #define EGL_VULKAN_INSTANCE_ANGLE 0x34A9
400 #define EGL_VULKAN_INSTANCE_EXTENSIONS_ANGLE 0x34AA
401 #define EGL_VULKAN_PHYSICAL_DEVICE_ANGLE 0x34AB
402 #define EGL_VULKAN_DEVICE_ANGLE 0x34AC
403 #define EGL_VULKAN_DEVICE_EXTENSIONS_ANGLE 0x34AD
404 #define EGL_VULKAN_FEATURES_ANGLE 0x34AE
405 #define EGL_VULKAN_QUEUE_ANGLE 0x34AF
406 #define EGL_VULKAN_QUEUE_FAMILIY_INDEX_ANGLE 0x34D0
407 #define EGL_VULKAN_GET_INSTANCE_PROC_ADDR 0x34D1
408 #endif /* EGL_ANGLE_device_vulkan */
409 
410 #ifndef EGL_ANGLE_vulkan_image
411 #define EGL_ANGLE_vulkan_image
412 #define EGL_VULKAN_IMAGE_ANGLE 0x34D3
413 #define EGL_VULKAN_IMAGE_CREATE_INFO_HI_ANGLE 0x34D4
414 #define EGL_VULKAN_IMAGE_CREATE_INFO_LO_ANGLE 0x34D5
415 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTVKIMAGEANGLEPROC)(EGLDisplay dpy, EGLImage image, void* vk_image, void* vk_image_create_info);
416 #ifdef EGL_EGLEXT_PROTOTYPES
417 EGLAPI EGLBoolean EGLAPIENTRY eglExportVkImageANGLE(EGLDisplay dpy, EGLImage image, void* vk_image, void* vk_image_create_info);
418 #endif
419 #endif /* EGL_ANGLE_vulkan_image */
420 
421 #ifndef EGL_ANGLE_metal_shared_event_sync
422 #define EGL_ANGLE_metal_hared_event_sync 1
423 #define EGL_SYNC_METAL_SHARED_EVENT_ANGLE 0x34D8
424 #define EGL_SYNC_METAL_SHARED_EVENT_OBJECT_ANGLE 0x34D9
425 #define EGL_SYNC_METAL_SHARED_EVENT_SIGNAL_VALUE_LO_ANGLE 0x34DA
426 #define EGL_SYNC_METAL_SHARED_EVENT_SIGNAL_VALUE_HI_ANGLE 0x34DB
427 #define EGL_SYNC_METAL_SHARED_EVENT_SIGNALED_ANGLE 0x34DC
428 typedef void* (EGLAPIENTRYP PFNEGLCOPYMETALSHAREDEVENTANGLEPROC)(EGLDisplay dpy, EGLSync sync);
429 #ifdef EGL_EGLEXT_PROTOTYPES
430 EGLAPI void *EGLAPIENTRY eglCopyMetalSharedEventANGLE(EGLDisplay dpy, EGLSync sync);
431 #endif
432 #endif /* EGL_ANGLE_metal_shared_event_sync */
433 
434 #ifndef EGL_ANGLE_global_fence_sync
435 #define EGL_ANGLE_global_fence_sync 1
436 #define EGL_SYNC_GLOBAL_FENCE_ANGLE 0x34DE
437 #endif /* EGL_ANGLE_global_fence_sync */
438 
439 #ifndef EGL_ANGLE_no_error
440 #define EGL_ANGLE_no_error 1
441 typedef void (EGLAPIENTRYP PFNEGLSETVALIDATIONENABLEDANGLEPROC)(EGLBoolean validationState);
442 #ifdef EGL_EGLEXT_PROTOTYPES
443 EGLAPI void EGLAPIENTRY eglSetValidationEnabledANGLE(EGLBoolean validationState);
444 #endif
445 #endif /* EGL_ANGLE_no_error */
446 
447 // clang-format on
448 
449 #endif  // INCLUDE_EGL_EGLEXT_ANGLE_
450