9 ** Copyright (c) 2013-2014 The Khronos Group Inc.
11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to
16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions:
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
31 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
32 ** API Registry. The current version of the Registry, generator scripts
33 ** used to make the header, and the header can be found at
34 ** http://www.opengl.org/registry/
36 ** Khronos $Revision$ on $Date$
39 #include <EGL/eglplatform.h>
41 #define EGL_EGLEXT_VERSION 20150508
43 /* Generated C header for:
45 * Versions considered: .*
46 * Versions emitted: _nomatch_^
47 * Default extensions included: egl
48 * Additional extensions included: _nomatch_^
49 * Extensions removed: _nomatch_^
52 #ifndef EGL_KHR_cl_event
53 #define EGL_KHR_cl_event 1
54 #define EGL_CL_EVENT_HANDLE_KHR 0x309C
55 #define EGL_SYNC_CL_EVENT_KHR 0x30FE
56 #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
57 #endif /* EGL_KHR_cl_event */
59 #ifndef EGL_KHR_cl_event2
60 #define EGL_KHR_cl_event2 1
61 typedef void *EGLSyncKHR
;
62 typedef intptr_t EGLAttribKHR
;
63 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC
) (EGLDisplay dpy
, EGLenum type
, const EGLAttribKHR
*attrib_list
);
64 #ifdef EGL_EGLEXT_PROTOTYPES
65 EGLAPI EGLSyncKHR EGLAPIENTRY
eglCreateSync64KHR (EGLDisplay dpy
, EGLenum type
, const EGLAttribKHR
*attrib_list
);
67 #endif /* EGL_KHR_cl_event2 */
69 #ifndef EGL_KHR_client_get_all_proc_addresses
70 #define EGL_KHR_client_get_all_proc_addresses 1
71 #endif /* EGL_KHR_client_get_all_proc_addresses */
73 #ifndef EGL_KHR_config_attribs
74 #define EGL_KHR_config_attribs 1
75 #define EGL_CONFORMANT_KHR 0x3042
76 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
77 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
78 #endif /* EGL_KHR_config_attribs */
80 #ifndef EGL_KHR_create_context
81 #define EGL_KHR_create_context 1
82 #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
83 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
84 #define EGL_CONTEXT_FLAGS_KHR 0x30FC
85 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
86 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
87 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
88 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
89 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
90 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
91 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
92 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
93 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
94 #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
95 #endif /* EGL_KHR_create_context */
97 #ifndef EGL_KHR_create_context_no_error
98 #define EGL_KHR_create_context_no_error 1
99 #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
100 #endif /* EGL_KHR_create_context_no_error */
102 #ifndef EGL_KHR_fence_sync
103 #define EGL_KHR_fence_sync 1
104 typedef khronos_utime_nanoseconds_t EGLTimeKHR
;
105 #ifdef KHRONOS_SUPPORT_INT64
106 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
107 #define EGL_SYNC_CONDITION_KHR 0x30F8
108 #define EGL_SYNC_FENCE_KHR 0x30F9
109 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC
) (EGLDisplay dpy
, EGLenum type
, const EGLint
*attrib_list
);
110 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC
) (EGLDisplay dpy
, EGLSyncKHR sync
);
111 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC
) (EGLDisplay dpy
, EGLSyncKHR sync
, EGLint flags
, EGLTimeKHR timeout
);
112 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC
) (EGLDisplay dpy
, EGLSyncKHR sync
, EGLint attribute
, EGLint
*value
);
113 #ifdef EGL_EGLEXT_PROTOTYPES
114 EGLAPI EGLSyncKHR EGLAPIENTRY
eglCreateSyncKHR (EGLDisplay dpy
, EGLenum type
, const EGLint
*attrib_list
);
115 EGLAPI EGLBoolean EGLAPIENTRY
eglDestroySyncKHR (EGLDisplay dpy
, EGLSyncKHR sync
);
116 EGLAPI EGLint EGLAPIENTRY
eglClientWaitSyncKHR (EGLDisplay dpy
, EGLSyncKHR sync
, EGLint flags
, EGLTimeKHR timeout
);
117 EGLAPI EGLBoolean EGLAPIENTRY
eglGetSyncAttribKHR (EGLDisplay dpy
, EGLSyncKHR sync
, EGLint attribute
, EGLint
*value
);
119 #endif /* KHRONOS_SUPPORT_INT64 */
120 #endif /* EGL_KHR_fence_sync */
122 #ifndef EGL_KHR_get_all_proc_addresses
123 #define EGL_KHR_get_all_proc_addresses 1
124 #endif /* EGL_KHR_get_all_proc_addresses */
126 #ifndef EGL_KHR_gl_colorspace
127 #define EGL_KHR_gl_colorspace 1
128 #define EGL_GL_COLORSPACE_KHR 0x309D
129 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
130 #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
131 #endif /* EGL_KHR_gl_colorspace */
133 #ifndef EGL_KHR_gl_renderbuffer_image
134 #define EGL_KHR_gl_renderbuffer_image 1
135 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
136 #endif /* EGL_KHR_gl_renderbuffer_image */
138 #ifndef EGL_KHR_gl_texture_2D_image
139 #define EGL_KHR_gl_texture_2D_image 1
140 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
141 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
142 #endif /* EGL_KHR_gl_texture_2D_image */
144 #ifndef EGL_KHR_gl_texture_3D_image
145 #define EGL_KHR_gl_texture_3D_image 1
146 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
147 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
148 #endif /* EGL_KHR_gl_texture_3D_image */
150 #ifndef EGL_KHR_gl_texture_cubemap_image
151 #define EGL_KHR_gl_texture_cubemap_image 1
152 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
153 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
154 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
155 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
156 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
157 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
158 #endif /* EGL_KHR_gl_texture_cubemap_image */
160 #ifndef EGL_KHR_image
161 #define EGL_KHR_image 1
162 typedef void *EGLImageKHR
;
163 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
164 #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
165 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC
) (EGLDisplay dpy
, EGLContext ctx
, EGLenum target
, EGLClientBuffer buffer
, const EGLint
*attrib_list
);
166 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC
) (EGLDisplay dpy
, EGLImageKHR image
);
167 #ifdef EGL_EGLEXT_PROTOTYPES
168 EGLAPI EGLImageKHR EGLAPIENTRY
eglCreateImageKHR (EGLDisplay dpy
, EGLContext ctx
, EGLenum target
, EGLClientBuffer buffer
, const EGLint
*attrib_list
);
169 EGLAPI EGLBoolean EGLAPIENTRY
eglDestroyImageKHR (EGLDisplay dpy
, EGLImageKHR image
);
171 #endif /* EGL_KHR_image */
173 #ifndef EGL_KHR_image_base
174 #define EGL_KHR_image_base 1
175 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
176 #endif /* EGL_KHR_image_base */
178 #ifndef EGL_KHR_image_pixmap
179 #define EGL_KHR_image_pixmap 1
180 #endif /* EGL_KHR_image_pixmap */
182 #ifndef EGL_KHR_lock_surface
183 #define EGL_KHR_lock_surface 1
184 #define EGL_READ_SURFACE_BIT_KHR 0x0001
185 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
186 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
187 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
188 #define EGL_MATCH_FORMAT_KHR 0x3043
189 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
190 #define EGL_FORMAT_RGB_565_KHR 0x30C1
191 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
192 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
193 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
194 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
195 #define EGL_BITMAP_POINTER_KHR 0x30C6
196 #define EGL_BITMAP_PITCH_KHR 0x30C7
197 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
198 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
199 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
200 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
201 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
202 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
203 #define EGL_LOWER_LEFT_KHR 0x30CE
204 #define EGL_UPPER_LEFT_KHR 0x30CF
205 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC
) (EGLDisplay dpy
, EGLSurface surface
, const EGLint
*attrib_list
);
206 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC
) (EGLDisplay dpy
, EGLSurface surface
);
207 #ifdef EGL_EGLEXT_PROTOTYPES
208 EGLAPI EGLBoolean EGLAPIENTRY
eglLockSurfaceKHR (EGLDisplay dpy
, EGLSurface surface
, const EGLint
*attrib_list
);
209 EGLAPI EGLBoolean EGLAPIENTRY
eglUnlockSurfaceKHR (EGLDisplay dpy
, EGLSurface surface
);
211 #endif /* EGL_KHR_lock_surface */
213 #ifndef EGL_KHR_lock_surface2
214 #define EGL_KHR_lock_surface2 1
215 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
216 #endif /* EGL_KHR_lock_surface2 */
218 #ifndef EGL_KHR_lock_surface3
219 #define EGL_KHR_lock_surface3 1
220 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint attribute
, EGLAttribKHR
*value
);
221 #ifdef EGL_EGLEXT_PROTOTYPES
222 EGLAPI EGLBoolean EGLAPIENTRY
eglQuerySurface64KHR (EGLDisplay dpy
, EGLSurface surface
, EGLint attribute
, EGLAttribKHR
*value
);
224 #endif /* EGL_KHR_lock_surface3 */
226 #ifndef EGL_KHR_partial_update
227 #define EGL_KHR_partial_update 1
228 #define EGL_BUFFER_AGE_KHR 0x313D
229 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint
*rects
, EGLint n_rects
);
230 #ifdef EGL_EGLEXT_PROTOTYPES
231 EGLAPI EGLBoolean EGLAPIENTRY
eglSetDamageRegionKHR (EGLDisplay dpy
, EGLSurface surface
, EGLint
*rects
, EGLint n_rects
);
233 #endif /* EGL_KHR_partial_update */
235 #ifndef EGL_KHR_platform_android
236 #define EGL_KHR_platform_android 1
237 #define EGL_PLATFORM_ANDROID_KHR 0x3141
238 #endif /* EGL_KHR_platform_android */
240 #ifndef EGL_KHR_platform_gbm
241 #define EGL_KHR_platform_gbm 1
242 #define EGL_PLATFORM_GBM_KHR 0x31D7
243 #endif /* EGL_KHR_platform_gbm */
245 #ifndef EGL_KHR_platform_wayland
246 #define EGL_KHR_platform_wayland 1
247 #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
248 #endif /* EGL_KHR_platform_wayland */
250 #ifndef EGL_KHR_platform_x11
251 #define EGL_KHR_platform_x11 1
252 #define EGL_PLATFORM_X11_KHR 0x31D5
253 #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
254 #endif /* EGL_KHR_platform_x11 */
256 #ifndef EGL_KHR_reusable_sync
257 #define EGL_KHR_reusable_sync 1
258 #ifdef KHRONOS_SUPPORT_INT64
259 #define EGL_SYNC_STATUS_KHR 0x30F1
260 #define EGL_SIGNALED_KHR 0x30F2
261 #define EGL_UNSIGNALED_KHR 0x30F3
262 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
263 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
264 #define EGL_SYNC_TYPE_KHR 0x30F7
265 #define EGL_SYNC_REUSABLE_KHR 0x30FA
266 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
267 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
268 #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
269 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC
) (EGLDisplay dpy
, EGLSyncKHR sync
, EGLenum mode
);
270 #ifdef EGL_EGLEXT_PROTOTYPES
271 EGLAPI EGLBoolean EGLAPIENTRY
eglSignalSyncKHR (EGLDisplay dpy
, EGLSyncKHR sync
, EGLenum mode
);
273 #endif /* KHRONOS_SUPPORT_INT64 */
274 #endif /* EGL_KHR_reusable_sync */
276 #ifndef EGL_KHR_stream
277 #define EGL_KHR_stream 1
278 typedef void *EGLStreamKHR
;
279 typedef khronos_uint64_t EGLuint64KHR
;
280 #ifdef KHRONOS_SUPPORT_INT64
281 #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0)
282 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
283 #define EGL_PRODUCER_FRAME_KHR 0x3212
284 #define EGL_CONSUMER_FRAME_KHR 0x3213
285 #define EGL_STREAM_STATE_KHR 0x3214
286 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
287 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
288 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
289 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
290 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
291 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
292 #define EGL_BAD_STREAM_KHR 0x321B
293 #define EGL_BAD_STATE_KHR 0x321C
294 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC
) (EGLDisplay dpy
, const EGLint
*attrib_list
);
295 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
);
296 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLint value
);
297 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLint
*value
);
298 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLuint64KHR
*value
);
299 #ifdef EGL_EGLEXT_PROTOTYPES
300 EGLAPI EGLStreamKHR EGLAPIENTRY
eglCreateStreamKHR (EGLDisplay dpy
, const EGLint
*attrib_list
);
301 EGLAPI EGLBoolean EGLAPIENTRY
eglDestroyStreamKHR (EGLDisplay dpy
, EGLStreamKHR stream
);
302 EGLAPI EGLBoolean EGLAPIENTRY
eglStreamAttribKHR (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLint value
);
303 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryStreamKHR (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLint
*value
);
304 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryStreamu64KHR (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLuint64KHR
*value
);
306 #endif /* KHRONOS_SUPPORT_INT64 */
307 #endif /* EGL_KHR_stream */
309 #ifndef EGL_KHR_stream_consumer_gltexture
310 #define EGL_KHR_stream_consumer_gltexture 1
311 #ifdef EGL_KHR_stream
312 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
313 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
);
314 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
);
315 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
);
316 #ifdef EGL_EGLEXT_PROTOTYPES
317 EGLAPI EGLBoolean EGLAPIENTRY
eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy
, EGLStreamKHR stream
);
318 EGLAPI EGLBoolean EGLAPIENTRY
eglStreamConsumerAcquireKHR (EGLDisplay dpy
, EGLStreamKHR stream
);
319 EGLAPI EGLBoolean EGLAPIENTRY
eglStreamConsumerReleaseKHR (EGLDisplay dpy
, EGLStreamKHR stream
);
321 #endif /* EGL_KHR_stream */
322 #endif /* EGL_KHR_stream_consumer_gltexture */
324 #ifndef EGL_KHR_stream_cross_process_fd
325 #define EGL_KHR_stream_cross_process_fd 1
326 typedef int EGLNativeFileDescriptorKHR
;
327 #ifdef EGL_KHR_stream
328 #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1))
329 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
);
330 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC
) (EGLDisplay dpy
, EGLNativeFileDescriptorKHR file_descriptor
);
331 #ifdef EGL_EGLEXT_PROTOTYPES
332 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY
eglGetStreamFileDescriptorKHR (EGLDisplay dpy
, EGLStreamKHR stream
);
333 EGLAPI EGLStreamKHR EGLAPIENTRY
eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy
, EGLNativeFileDescriptorKHR file_descriptor
);
335 #endif /* EGL_KHR_stream */
336 #endif /* EGL_KHR_stream_cross_process_fd */
338 #ifndef EGL_KHR_stream_fifo
339 #define EGL_KHR_stream_fifo 1
340 #ifdef EGL_KHR_stream
341 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
342 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
343 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
344 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
345 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLTimeKHR
*value
);
346 #ifdef EGL_EGLEXT_PROTOTYPES
347 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryStreamTimeKHR (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum attribute
, EGLTimeKHR
*value
);
349 #endif /* EGL_KHR_stream */
350 #endif /* EGL_KHR_stream_fifo */
352 #ifndef EGL_KHR_stream_producer_aldatalocator
353 #define EGL_KHR_stream_producer_aldatalocator 1
354 #ifdef EGL_KHR_stream
355 #endif /* EGL_KHR_stream */
356 #endif /* EGL_KHR_stream_producer_aldatalocator */
358 #ifndef EGL_KHR_stream_producer_eglsurface
359 #define EGL_KHR_stream_producer_eglsurface 1
360 #ifdef EGL_KHR_stream
361 #define EGL_STREAM_BIT_KHR 0x0800
362 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC
) (EGLDisplay dpy
, EGLConfig config
, EGLStreamKHR stream
, const EGLint
*attrib_list
);
363 #ifdef EGL_EGLEXT_PROTOTYPES
364 EGLAPI EGLSurface EGLAPIENTRY
eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy
, EGLConfig config
, EGLStreamKHR stream
, const EGLint
*attrib_list
);
366 #endif /* EGL_KHR_stream */
367 #endif /* EGL_KHR_stream_producer_eglsurface */
369 #ifndef EGL_KHR_surfaceless_context
370 #define EGL_KHR_surfaceless_context 1
371 #endif /* EGL_KHR_surfaceless_context */
373 #ifndef EGL_KHR_swap_buffers_with_damage
374 #define EGL_KHR_swap_buffers_with_damage 1
375 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint
*rects
, EGLint n_rects
);
376 #ifdef EGL_EGLEXT_PROTOTYPES
377 EGLAPI EGLBoolean EGLAPIENTRY
eglSwapBuffersWithDamageKHR (EGLDisplay dpy
, EGLSurface surface
, EGLint
*rects
, EGLint n_rects
);
379 #endif /* EGL_KHR_swap_buffers_with_damage */
381 #ifndef EGL_KHR_vg_parent_image
382 #define EGL_KHR_vg_parent_image 1
383 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
384 #endif /* EGL_KHR_vg_parent_image */
386 #ifndef EGL_KHR_wait_sync
387 #define EGL_KHR_wait_sync 1
388 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC
) (EGLDisplay dpy
, EGLSyncKHR sync
, EGLint flags
);
389 #ifdef EGL_EGLEXT_PROTOTYPES
390 EGLAPI EGLint EGLAPIENTRY
eglWaitSyncKHR (EGLDisplay dpy
, EGLSyncKHR sync
, EGLint flags
);
392 #endif /* EGL_KHR_wait_sync */
394 #ifndef EGL_ANDROID_blob_cache
395 #define EGL_ANDROID_blob_cache 1
396 typedef khronos_ssize_t EGLsizeiANDROID
;
397 typedef void (*EGLSetBlobFuncANDROID
) (const void *key
, EGLsizeiANDROID keySize
, const void *value
, EGLsizeiANDROID valueSize
);
398 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID
) (const void *key
, EGLsizeiANDROID keySize
, void *value
, EGLsizeiANDROID valueSize
);
399 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC
) (EGLDisplay dpy
, EGLSetBlobFuncANDROID set
, EGLGetBlobFuncANDROID get
);
400 #ifdef EGL_EGLEXT_PROTOTYPES
401 EGLAPI
void EGLAPIENTRY
eglSetBlobCacheFuncsANDROID (EGLDisplay dpy
, EGLSetBlobFuncANDROID set
, EGLGetBlobFuncANDROID get
);
403 #endif /* EGL_ANDROID_blob_cache */
405 #ifndef EGL_ANDROID_framebuffer_target
406 #define EGL_ANDROID_framebuffer_target 1
407 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
408 #endif /* EGL_ANDROID_framebuffer_target */
410 #ifndef EGL_ANDROID_image_native_buffer
411 #define EGL_ANDROID_image_native_buffer 1
412 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
413 #endif /* EGL_ANDROID_image_native_buffer */
415 #ifndef EGL_ANDROID_native_fence_sync
416 #define EGL_ANDROID_native_fence_sync 1
417 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
418 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
419 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
420 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
421 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC
) (EGLDisplay dpy
, EGLSyncKHR sync
);
422 #ifdef EGL_EGLEXT_PROTOTYPES
423 EGLAPI EGLint EGLAPIENTRY
eglDupNativeFenceFDANDROID (EGLDisplay dpy
, EGLSyncKHR sync
);
425 #endif /* EGL_ANDROID_native_fence_sync */
427 #ifndef EGL_ANDROID_recordable
428 #define EGL_ANDROID_recordable 1
429 #define EGL_RECORDABLE_ANDROID 0x3142
430 #endif /* EGL_ANDROID_recordable */
432 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
433 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
434 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
435 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
437 #ifndef EGL_ANGLE_device_d3d
438 #define EGL_ANGLE_device_d3d 1
439 #define EGL_D3D9_DEVICE_ANGLE 0x33A0
440 #define EGL_D3D11_DEVICE_ANGLE 0x33A1
441 #endif /* EGL_ANGLE_device_d3d */
443 #ifndef EGL_ANGLE_query_surface_pointer
444 #define EGL_ANGLE_query_surface_pointer 1
445 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint attribute
, void **value
);
446 #ifdef EGL_EGLEXT_PROTOTYPES
447 EGLAPI EGLBoolean EGLAPIENTRY
eglQuerySurfacePointerANGLE (EGLDisplay dpy
, EGLSurface surface
, EGLint attribute
, void **value
);
449 #endif /* EGL_ANGLE_query_surface_pointer */
451 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
452 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
453 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
455 #ifndef EGL_ANGLE_window_fixed_size
456 #define EGL_ANGLE_window_fixed_size 1
457 #define EGL_FIXED_SIZE_ANGLE 0x3201
458 #endif /* EGL_ANGLE_window_fixed_size */
460 #ifndef EGL_ARM_pixmap_multisample_discard
461 #define EGL_ARM_pixmap_multisample_discard 1
462 #define EGL_DISCARD_SAMPLES_ARM 0x3286
463 #endif /* EGL_ARM_pixmap_multisample_discard */
465 #ifndef EGL_EXT_buffer_age
466 #define EGL_EXT_buffer_age 1
467 #define EGL_BUFFER_AGE_EXT 0x313D
468 #endif /* EGL_EXT_buffer_age */
470 #ifndef EGL_EXT_client_extensions
471 #define EGL_EXT_client_extensions 1
472 #endif /* EGL_EXT_client_extensions */
474 #ifndef EGL_EXT_create_context_robustness
475 #define EGL_EXT_create_context_robustness 1
476 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
477 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
478 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
479 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
480 #endif /* EGL_EXT_create_context_robustness */
482 #ifndef EGL_EXT_device_base
483 #define EGL_EXT_device_base 1
484 typedef void *EGLDeviceEXT
;
485 #define EGL_NO_DEVICE_EXT ((EGLDeviceEXT)(0))
486 #define EGL_BAD_DEVICE_EXT 0x322B
487 #define EGL_DEVICE_EXT 0x322C
488 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC
) (EGLDeviceEXT device
, EGLint attribute
, EGLAttrib
*value
);
489 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC
) (EGLDeviceEXT device
, EGLint name
);
490 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC
) (EGLint max_devices
, EGLDeviceEXT
*devices
, EGLint
*num_devices
);
491 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC
) (EGLDisplay dpy
, EGLint attribute
, EGLAttrib
*value
);
492 #ifdef EGL_EGLEXT_PROTOTYPES
493 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryDeviceAttribEXT (EGLDeviceEXT device
, EGLint attribute
, EGLAttrib
*value
);
494 EGLAPI
const char *EGLAPIENTRY
eglQueryDeviceStringEXT (EGLDeviceEXT device
, EGLint name
);
495 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryDevicesEXT (EGLint max_devices
, EGLDeviceEXT
*devices
, EGLint
*num_devices
);
496 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryDisplayAttribEXT (EGLDisplay dpy
, EGLint attribute
, EGLAttrib
*value
);
498 #endif /* EGL_EXT_device_base */
500 #ifndef EGL_EXT_device_drm
501 #define EGL_EXT_device_drm 1
502 #define EGL_DRM_DEVICE_FILE_EXT 0x3233
503 #endif /* EGL_EXT_device_drm */
505 #ifndef EGL_EXT_device_enumeration
506 #define EGL_EXT_device_enumeration 1
507 #endif /* EGL_EXT_device_enumeration */
509 #ifndef EGL_EXT_device_openwf
510 #define EGL_EXT_device_openwf 1
511 #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
512 #endif /* EGL_EXT_device_openwf */
514 #ifndef EGL_EXT_device_query
515 #define EGL_EXT_device_query 1
516 #endif /* EGL_EXT_device_query */
518 #ifndef EGL_EXT_image_dma_buf_import
519 #define EGL_EXT_image_dma_buf_import 1
520 #define EGL_LINUX_DMA_BUF_EXT 0x3270
521 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
522 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
523 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
524 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
525 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
526 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
527 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
528 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
529 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
530 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
531 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
532 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
533 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
534 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
535 #define EGL_ITU_REC601_EXT 0x327F
536 #define EGL_ITU_REC709_EXT 0x3280
537 #define EGL_ITU_REC2020_EXT 0x3281
538 #define EGL_YUV_FULL_RANGE_EXT 0x3282
539 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
540 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
541 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
542 #endif /* EGL_EXT_image_dma_buf_import */
544 #ifndef EGL_EXT_multiview_window
545 #define EGL_EXT_multiview_window 1
546 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
547 #endif /* EGL_EXT_multiview_window */
549 #ifndef EGL_EXT_output_base
550 #define EGL_EXT_output_base 1
551 typedef void *EGLOutputLayerEXT
;
552 typedef void *EGLOutputPortEXT
;
553 #define EGL_NO_OUTPUT_LAYER_EXT ((EGLOutputLayerEXT)0)
554 #define EGL_NO_OUTPUT_PORT_EXT ((EGLOutputPortEXT)0)
555 #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
556 #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
557 #define EGL_SWAP_INTERVAL_EXT 0x322F
558 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC
) (EGLDisplay dpy
, const EGLAttrib
*attrib_list
, EGLOutputLayerEXT
*layers
, EGLint max_layers
, EGLint
*num_layers
);
559 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC
) (EGLDisplay dpy
, const EGLAttrib
*attrib_list
, EGLOutputPortEXT
*ports
, EGLint max_ports
, EGLint
*num_ports
);
560 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC
) (EGLDisplay dpy
, EGLOutputLayerEXT layer
, EGLint attribute
, EGLAttrib value
);
561 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC
) (EGLDisplay dpy
, EGLOutputLayerEXT layer
, EGLint attribute
, EGLAttrib
*value
);
562 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC
) (EGLDisplay dpy
, EGLOutputLayerEXT layer
, EGLint name
);
563 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC
) (EGLDisplay dpy
, EGLOutputPortEXT port
, EGLint attribute
, EGLAttrib value
);
564 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC
) (EGLDisplay dpy
, EGLOutputPortEXT port
, EGLint attribute
, EGLAttrib
*value
);
565 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC
) (EGLDisplay dpy
, EGLOutputPortEXT port
, EGLint name
);
566 #ifdef EGL_EGLEXT_PROTOTYPES
567 EGLAPI EGLBoolean EGLAPIENTRY
eglGetOutputLayersEXT (EGLDisplay dpy
, const EGLAttrib
*attrib_list
, EGLOutputLayerEXT
*layers
, EGLint max_layers
, EGLint
*num_layers
);
568 EGLAPI EGLBoolean EGLAPIENTRY
eglGetOutputPortsEXT (EGLDisplay dpy
, const EGLAttrib
*attrib_list
, EGLOutputPortEXT
*ports
, EGLint max_ports
, EGLint
*num_ports
);
569 EGLAPI EGLBoolean EGLAPIENTRY
eglOutputLayerAttribEXT (EGLDisplay dpy
, EGLOutputLayerEXT layer
, EGLint attribute
, EGLAttrib value
);
570 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryOutputLayerAttribEXT (EGLDisplay dpy
, EGLOutputLayerEXT layer
, EGLint attribute
, EGLAttrib
*value
);
571 EGLAPI
const char *EGLAPIENTRY
eglQueryOutputLayerStringEXT (EGLDisplay dpy
, EGLOutputLayerEXT layer
, EGLint name
);
572 EGLAPI EGLBoolean EGLAPIENTRY
eglOutputPortAttribEXT (EGLDisplay dpy
, EGLOutputPortEXT port
, EGLint attribute
, EGLAttrib value
);
573 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryOutputPortAttribEXT (EGLDisplay dpy
, EGLOutputPortEXT port
, EGLint attribute
, EGLAttrib
*value
);
574 EGLAPI
const char *EGLAPIENTRY
eglQueryOutputPortStringEXT (EGLDisplay dpy
, EGLOutputPortEXT port
, EGLint name
);
576 #endif /* EGL_EXT_output_base */
578 #ifndef EGL_EXT_output_drm
579 #define EGL_EXT_output_drm 1
580 #define EGL_DRM_CRTC_EXT 0x3234
581 #define EGL_DRM_PLANE_EXT 0x3235
582 #define EGL_DRM_CONNECTOR_EXT 0x3236
583 #endif /* EGL_EXT_output_drm */
585 #ifndef EGL_EXT_output_openwf
586 #define EGL_EXT_output_openwf 1
587 #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
588 #define EGL_OPENWF_PORT_ID_EXT 0x3239
589 #endif /* EGL_EXT_output_openwf */
591 #ifndef EGL_EXT_platform_base
592 #define EGL_EXT_platform_base 1
593 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC
) (EGLenum platform
, void *native_display
, const EGLint
*attrib_list
);
594 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC
) (EGLDisplay dpy
, EGLConfig config
, void *native_window
, const EGLint
*attrib_list
);
595 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC
) (EGLDisplay dpy
, EGLConfig config
, void *native_pixmap
, const EGLint
*attrib_list
);
596 #ifdef EGL_EGLEXT_PROTOTYPES
597 EGLAPI EGLDisplay EGLAPIENTRY
eglGetPlatformDisplayEXT (EGLenum platform
, void *native_display
, const EGLint
*attrib_list
);
598 EGLAPI EGLSurface EGLAPIENTRY
eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy
, EGLConfig config
, void *native_window
, const EGLint
*attrib_list
);
599 EGLAPI EGLSurface EGLAPIENTRY
eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy
, EGLConfig config
, void *native_pixmap
, const EGLint
*attrib_list
);
601 #endif /* EGL_EXT_platform_base */
603 #ifndef EGL_EXT_platform_device
604 #define EGL_EXT_platform_device 1
605 #define EGL_PLATFORM_DEVICE_EXT 0x313F
606 #endif /* EGL_EXT_platform_device */
608 #ifndef EGL_EXT_platform_wayland
609 #define EGL_EXT_platform_wayland 1
610 #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
611 #endif /* EGL_EXT_platform_wayland */
613 #ifndef EGL_EXT_platform_x11
614 #define EGL_EXT_platform_x11 1
615 #define EGL_PLATFORM_X11_EXT 0x31D5
616 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
617 #endif /* EGL_EXT_platform_x11 */
619 #ifndef EGL_EXT_protected_surface
620 #define EGL_EXT_protected_surface 1
621 #define EGL_PROTECTED_CONTENT_EXT 0x32C0
622 #endif /* EGL_EXT_protected_surface */
624 #ifndef EGL_EXT_stream_consumer_egloutput
625 #define EGL_EXT_stream_consumer_egloutput 1
626 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
, EGLOutputLayerEXT layer
);
627 #ifdef EGL_EGLEXT_PROTOTYPES
628 EGLAPI EGLBoolean EGLAPIENTRY
eglStreamConsumerOutputEXT (EGLDisplay dpy
, EGLStreamKHR stream
, EGLOutputLayerEXT layer
);
630 #endif /* EGL_EXT_stream_consumer_egloutput */
632 #ifndef EGL_EXT_swap_buffers_with_damage
633 #define EGL_EXT_swap_buffers_with_damage 1
634 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint
*rects
, EGLint n_rects
);
635 #ifdef EGL_EGLEXT_PROTOTYPES
636 EGLAPI EGLBoolean EGLAPIENTRY
eglSwapBuffersWithDamageEXT (EGLDisplay dpy
, EGLSurface surface
, EGLint
*rects
, EGLint n_rects
);
638 #endif /* EGL_EXT_swap_buffers_with_damage */
640 #ifndef EGL_EXT_yuv_surface
641 #define EGL_EXT_yuv_surface 1
642 #define EGL_YUV_ORDER_EXT 0x3301
643 #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
644 #define EGL_YUV_SUBSAMPLE_EXT 0x3312
645 #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
646 #define EGL_YUV_CSC_STANDARD_EXT 0x330A
647 #define EGL_YUV_PLANE_BPP_EXT 0x331A
648 #define EGL_YUV_BUFFER_EXT 0x3300
649 #define EGL_YUV_ORDER_YUV_EXT 0x3302
650 #define EGL_YUV_ORDER_YVU_EXT 0x3303
651 #define EGL_YUV_ORDER_YUYV_EXT 0x3304
652 #define EGL_YUV_ORDER_UYVY_EXT 0x3305
653 #define EGL_YUV_ORDER_YVYU_EXT 0x3306
654 #define EGL_YUV_ORDER_VYUY_EXT 0x3307
655 #define EGL_YUV_ORDER_AYUV_EXT 0x3308
656 #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
657 #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
658 #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
659 #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
660 #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
661 #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
662 #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
663 #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
664 #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
665 #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
666 #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
667 #endif /* EGL_EXT_yuv_surface */
669 #ifndef EGL_HI_clientpixmap
670 #define EGL_HI_clientpixmap 1
671 struct EGLClientPixmapHI
{
677 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
678 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC
) (EGLDisplay dpy
, EGLConfig config
, struct EGLClientPixmapHI
*pixmap
);
679 #ifdef EGL_EGLEXT_PROTOTYPES
680 EGLAPI EGLSurface EGLAPIENTRY
eglCreatePixmapSurfaceHI (EGLDisplay dpy
, EGLConfig config
, struct EGLClientPixmapHI
*pixmap
);
682 #endif /* EGL_HI_clientpixmap */
684 #ifndef EGL_HI_colorformats
685 #define EGL_HI_colorformats 1
686 #define EGL_COLOR_FORMAT_HI 0x8F70
687 #define EGL_COLOR_RGB_HI 0x8F71
688 #define EGL_COLOR_RGBA_HI 0x8F72
689 #define EGL_COLOR_ARGB_HI 0x8F73
690 #endif /* EGL_HI_colorformats */
692 #ifndef EGL_IMG_context_priority
693 #define EGL_IMG_context_priority 1
694 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
695 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
696 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
697 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
698 #endif /* EGL_IMG_context_priority */
700 #ifndef EGL_MESA_drm_image
701 #define EGL_MESA_drm_image 1
702 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
703 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
704 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
705 #define EGL_DRM_BUFFER_MESA 0x31D3
706 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
707 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
708 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
709 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC
) (EGLDisplay dpy
, const EGLint
*attrib_list
);
710 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC
) (EGLDisplay dpy
, EGLImageKHR image
, EGLint
*name
, EGLint
*handle
, EGLint
*stride
);
711 #ifdef EGL_EGLEXT_PROTOTYPES
712 EGLAPI EGLImageKHR EGLAPIENTRY
eglCreateDRMImageMESA (EGLDisplay dpy
, const EGLint
*attrib_list
);
713 EGLAPI EGLBoolean EGLAPIENTRY
eglExportDRMImageMESA (EGLDisplay dpy
, EGLImageKHR image
, EGLint
*name
, EGLint
*handle
, EGLint
*stride
);
715 #endif /* EGL_MESA_drm_image */
717 #ifndef EGL_MESA_image_dma_buf_export
718 #define EGL_MESA_image_dma_buf_export 1
719 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC
) (EGLDisplay dpy
, EGLImageKHR image
, int *fourcc
, int *num_planes
, EGLuint64KHR
*modifiers
);
720 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC
) (EGLDisplay dpy
, EGLImageKHR image
, int *fds
, EGLint
*strides
, EGLint
*offsets
);
721 #ifdef EGL_EGLEXT_PROTOTYPES
722 EGLAPI EGLBoolean EGLAPIENTRY
eglExportDMABUFImageQueryMESA (EGLDisplay dpy
, EGLImageKHR image
, int *fourcc
, int *num_planes
, EGLuint64KHR
*modifiers
);
723 EGLAPI EGLBoolean EGLAPIENTRY
eglExportDMABUFImageMESA (EGLDisplay dpy
, EGLImageKHR image
, int *fds
, EGLint
*strides
, EGLint
*offsets
);
725 #endif /* EGL_MESA_image_dma_buf_export */
727 #ifndef EGL_MESA_platform_gbm
728 #define EGL_MESA_platform_gbm 1
729 #define EGL_PLATFORM_GBM_MESA 0x31D7
730 #endif /* EGL_MESA_platform_gbm */
732 #ifndef EGL_NOK_swap_region
733 #define EGL_NOK_swap_region 1
734 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint numRects
, const EGLint
*rects
);
735 #ifdef EGL_EGLEXT_PROTOTYPES
736 EGLAPI EGLBoolean EGLAPIENTRY
eglSwapBuffersRegionNOK (EGLDisplay dpy
, EGLSurface surface
, EGLint numRects
, const EGLint
*rects
);
738 #endif /* EGL_NOK_swap_region */
740 #ifndef EGL_NOK_swap_region2
741 #define EGL_NOK_swap_region2 1
742 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint numRects
, const EGLint
*rects
);
743 #ifdef EGL_EGLEXT_PROTOTYPES
744 EGLAPI EGLBoolean EGLAPIENTRY
eglSwapBuffersRegion2NOK (EGLDisplay dpy
, EGLSurface surface
, EGLint numRects
, const EGLint
*rects
);
746 #endif /* EGL_NOK_swap_region2 */
748 #ifndef EGL_NOK_texture_from_pixmap
749 #define EGL_NOK_texture_from_pixmap 1
750 #define EGL_Y_INVERTED_NOK 0x307F
751 #endif /* EGL_NOK_texture_from_pixmap */
753 #ifndef EGL_NV_3dvision_surface
754 #define EGL_NV_3dvision_surface 1
755 #define EGL_AUTO_STEREO_NV 0x3136
756 #endif /* EGL_NV_3dvision_surface */
758 #ifndef EGL_NV_coverage_sample
759 #define EGL_NV_coverage_sample 1
760 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
761 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
762 #endif /* EGL_NV_coverage_sample */
764 #ifndef EGL_NV_coverage_sample_resolve
765 #define EGL_NV_coverage_sample_resolve 1
766 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
767 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
768 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
769 #endif /* EGL_NV_coverage_sample_resolve */
771 #ifndef EGL_NV_cuda_event
772 #define EGL_NV_cuda_event 1
773 #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
774 #define EGL_SYNC_CUDA_EVENT_NV 0x323C
775 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
776 #endif /* EGL_NV_cuda_event */
778 #ifndef EGL_NV_depth_nonlinear
779 #define EGL_NV_depth_nonlinear 1
780 #define EGL_DEPTH_ENCODING_NV 0x30E2
781 #define EGL_DEPTH_ENCODING_NONE_NV 0
782 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
783 #endif /* EGL_NV_depth_nonlinear */
785 #ifndef EGL_NV_device_cuda
786 #define EGL_NV_device_cuda 1
787 #define EGL_CUDA_DEVICE_NV 0x323A
788 #endif /* EGL_NV_device_cuda */
790 #ifndef EGL_NV_native_query
791 #define EGL_NV_native_query 1
792 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC
) (EGLDisplay dpy
, EGLNativeDisplayType
*display_id
);
793 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC
) (EGLDisplay dpy
, EGLSurface surf
, EGLNativeWindowType
*window
);
794 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC
) (EGLDisplay dpy
, EGLSurface surf
, EGLNativePixmapType
*pixmap
);
795 #ifdef EGL_EGLEXT_PROTOTYPES
796 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryNativeDisplayNV (EGLDisplay dpy
, EGLNativeDisplayType
*display_id
);
797 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryNativeWindowNV (EGLDisplay dpy
, EGLSurface surf
, EGLNativeWindowType
*window
);
798 EGLAPI EGLBoolean EGLAPIENTRY
eglQueryNativePixmapNV (EGLDisplay dpy
, EGLSurface surf
, EGLNativePixmapType
*pixmap
);
800 #endif /* EGL_NV_native_query */
802 #ifndef EGL_NV_post_convert_rounding
803 #define EGL_NV_post_convert_rounding 1
804 #endif /* EGL_NV_post_convert_rounding */
806 #ifndef EGL_NV_post_sub_buffer
807 #define EGL_NV_post_sub_buffer 1
808 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
809 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC
) (EGLDisplay dpy
, EGLSurface surface
, EGLint x
, EGLint y
, EGLint width
, EGLint height
);
810 #ifdef EGL_EGLEXT_PROTOTYPES
811 EGLAPI EGLBoolean EGLAPIENTRY
eglPostSubBufferNV (EGLDisplay dpy
, EGLSurface surface
, EGLint x
, EGLint y
, EGLint width
, EGLint height
);
813 #endif /* EGL_NV_post_sub_buffer */
815 #ifndef EGL_NV_stream_sync
816 #define EGL_NV_stream_sync 1
817 #define EGL_SYNC_NEW_FRAME_NV 0x321F
818 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC
) (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum type
, const EGLint
*attrib_list
);
819 #ifdef EGL_EGLEXT_PROTOTYPES
820 EGLAPI EGLSyncKHR EGLAPIENTRY
eglCreateStreamSyncNV (EGLDisplay dpy
, EGLStreamKHR stream
, EGLenum type
, const EGLint
*attrib_list
);
822 #endif /* EGL_NV_stream_sync */
825 #define EGL_NV_sync 1
826 typedef void *EGLSyncNV
;
827 typedef khronos_utime_nanoseconds_t EGLTimeNV
;
828 #ifdef KHRONOS_SUPPORT_INT64
829 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
830 #define EGL_SYNC_STATUS_NV 0x30E7
831 #define EGL_SIGNALED_NV 0x30E8
832 #define EGL_UNSIGNALED_NV 0x30E9
833 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
834 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
835 #define EGL_ALREADY_SIGNALED_NV 0x30EA
836 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
837 #define EGL_CONDITION_SATISFIED_NV 0x30EC
838 #define EGL_SYNC_TYPE_NV 0x30ED
839 #define EGL_SYNC_CONDITION_NV 0x30EE
840 #define EGL_SYNC_FENCE_NV 0x30EF
841 #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
842 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC
) (EGLDisplay dpy
, EGLenum condition
, const EGLint
*attrib_list
);
843 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC
) (EGLSyncNV sync
);
844 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC
) (EGLSyncNV sync
);
845 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC
) (EGLSyncNV sync
, EGLint flags
, EGLTimeNV timeout
);
846 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC
) (EGLSyncNV sync
, EGLenum mode
);
847 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC
) (EGLSyncNV sync
, EGLint attribute
, EGLint
*value
);
848 #ifdef EGL_EGLEXT_PROTOTYPES
849 EGLAPI EGLSyncNV EGLAPIENTRY
eglCreateFenceSyncNV (EGLDisplay dpy
, EGLenum condition
, const EGLint
*attrib_list
);
850 EGLAPI EGLBoolean EGLAPIENTRY
eglDestroySyncNV (EGLSyncNV sync
);
851 EGLAPI EGLBoolean EGLAPIENTRY
eglFenceNV (EGLSyncNV sync
);
852 EGLAPI EGLint EGLAPIENTRY
eglClientWaitSyncNV (EGLSyncNV sync
, EGLint flags
, EGLTimeNV timeout
);
853 EGLAPI EGLBoolean EGLAPIENTRY
eglSignalSyncNV (EGLSyncNV sync
, EGLenum mode
);
854 EGLAPI EGLBoolean EGLAPIENTRY
eglGetSyncAttribNV (EGLSyncNV sync
, EGLint attribute
, EGLint
*value
);
856 #endif /* KHRONOS_SUPPORT_INT64 */
857 #endif /* EGL_NV_sync */
859 #ifndef EGL_NV_system_time
860 #define EGL_NV_system_time 1
861 typedef khronos_utime_nanoseconds_t EGLuint64NV
;
862 #ifdef KHRONOS_SUPPORT_INT64
863 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC
) (void);
864 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC
) (void);
865 #ifdef EGL_EGLEXT_PROTOTYPES
866 EGLAPI EGLuint64NV EGLAPIENTRY
eglGetSystemTimeFrequencyNV (void);
867 EGLAPI EGLuint64NV EGLAPIENTRY
eglGetSystemTimeNV (void);
869 #endif /* KHRONOS_SUPPORT_INT64 */
870 #endif /* EGL_NV_system_time */
872 #ifndef EGL_TIZEN_image_native_buffer
873 #define EGL_TIZEN_image_native_buffer 1
874 #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
875 #endif /* EGL_TIZEN_image_native_buffer */
877 #ifndef EGL_TIZEN_image_native_surface
878 #define EGL_TIZEN_image_native_surface 1
879 #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
880 #endif /* EGL_TIZEN_image_native_surface */
882 #include <EGL/eglmesaext.h>
883 #include <EGL/eglextchromium.h>