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