Import eglextchromium.h from Chromium.
[mesa.git] / include / EGL / eglext.h
1 #ifndef __eglext_h_
2 #define __eglext_h_ 1
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /*
9 ** Copyright (c) 2013 The Khronos Group Inc.
10 **
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:
18 **
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
21 **
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.
29 */
30 /*
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/
35 **
36 ** Khronos $Revision: 24567 $ on $Date: 2013-12-18 09:50:17 -0800 (Wed, 18 Dec 2013) $
37 */
38
39 #include <EGL/eglplatform.h>
40
41 #define EGL_EGLEXT_VERSION 20131218
42
43 /* Generated C header for:
44 * API: egl
45 * Versions considered: .*
46 * Versions emitted: _nomatch_^
47 * Default extensions included: egl
48 * Additional extensions included: _nomatch_^
49 * Extensions removed: _nomatch_^
50 */
51
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 */
58
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);
66 #endif
67 #endif /* EGL_KHR_cl_event2 */
68
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 */
72
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 */
79
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 */
96
97 #ifndef EGL_KHR_fence_sync
98 #define EGL_KHR_fence_sync 1
99 #ifdef KHRONOS_SUPPORT_INT64
100 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
101 #define EGL_SYNC_CONDITION_KHR 0x30F8
102 #define EGL_SYNC_FENCE_KHR 0x30F9
103 #endif /* KHRONOS_SUPPORT_INT64 */
104 #endif /* EGL_KHR_fence_sync */
105
106 #ifndef EGL_KHR_get_all_proc_addresses
107 #define EGL_KHR_get_all_proc_addresses 1
108 #endif /* EGL_KHR_get_all_proc_addresses */
109
110 #ifndef EGL_KHR_gl_colorspace
111 #define EGL_KHR_gl_colorspace 1
112 #define EGL_GL_COLORSPACE_KHR 0x309D
113 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
114 #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
115 #endif /* EGL_KHR_gl_colorspace */
116
117 #ifndef EGL_KHR_gl_renderbuffer_image
118 #define EGL_KHR_gl_renderbuffer_image 1
119 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
120 #endif /* EGL_KHR_gl_renderbuffer_image */
121
122 #ifndef EGL_KHR_gl_texture_2D_image
123 #define EGL_KHR_gl_texture_2D_image 1
124 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
125 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
126 #endif /* EGL_KHR_gl_texture_2D_image */
127
128 #ifndef EGL_KHR_gl_texture_3D_image
129 #define EGL_KHR_gl_texture_3D_image 1
130 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
131 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
132 #endif /* EGL_KHR_gl_texture_3D_image */
133
134 #ifndef EGL_KHR_gl_texture_cubemap_image
135 #define EGL_KHR_gl_texture_cubemap_image 1
136 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
137 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
138 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
139 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
140 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
141 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
142 #endif /* EGL_KHR_gl_texture_cubemap_image */
143
144 #ifndef EGL_KHR_image
145 #define EGL_KHR_image 1
146 typedef void *EGLImageKHR;
147 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
148 #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
149 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
150 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
151 #ifdef EGL_EGLEXT_PROTOTYPES
152 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
153 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
154 #endif
155 #endif /* EGL_KHR_image */
156
157 #ifndef EGL_KHR_image_base
158 #define EGL_KHR_image_base 1
159 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
160 #endif /* EGL_KHR_image_base */
161
162 #ifndef EGL_KHR_image_pixmap
163 #define EGL_KHR_image_pixmap 1
164 #endif /* EGL_KHR_image_pixmap */
165
166 #ifndef EGL_KHR_lock_surface
167 #define EGL_KHR_lock_surface 1
168 #define EGL_READ_SURFACE_BIT_KHR 0x0001
169 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
170 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
171 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
172 #define EGL_MATCH_FORMAT_KHR 0x3043
173 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
174 #define EGL_FORMAT_RGB_565_KHR 0x30C1
175 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
176 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
177 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
178 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
179 #define EGL_BITMAP_POINTER_KHR 0x30C6
180 #define EGL_BITMAP_PITCH_KHR 0x30C7
181 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
182 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
183 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
184 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
185 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
186 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
187 #define EGL_LOWER_LEFT_KHR 0x30CE
188 #define EGL_UPPER_LEFT_KHR 0x30CF
189 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
190 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
191 #ifdef EGL_EGLEXT_PROTOTYPES
192 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
193 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
194 #endif
195 #endif /* EGL_KHR_lock_surface */
196
197 #ifndef EGL_KHR_lock_surface2
198 #define EGL_KHR_lock_surface2 1
199 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
200 #endif /* EGL_KHR_lock_surface2 */
201
202 #ifndef EGL_KHR_lock_surface3
203 #define EGL_KHR_lock_surface3 1
204 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
205 #ifdef EGL_EGLEXT_PROTOTYPES
206 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
207 #endif
208 #endif /* EGL_KHR_lock_surface3 */
209
210 #ifndef EGL_KHR_reusable_sync
211 #define EGL_KHR_reusable_sync 1
212 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
213 #ifdef KHRONOS_SUPPORT_INT64
214 #define EGL_SYNC_STATUS_KHR 0x30F1
215 #define EGL_SIGNALED_KHR 0x30F2
216 #define EGL_UNSIGNALED_KHR 0x30F3
217 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
218 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
219 #define EGL_SYNC_TYPE_KHR 0x30F7
220 #define EGL_SYNC_REUSABLE_KHR 0x30FA
221 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
222 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
223 #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
224 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
225 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
226 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
227 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
228 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
229 #ifdef EGL_EGLEXT_PROTOTYPES
230 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
231 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
232 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
233 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
234 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
235 #endif
236 #endif /* KHRONOS_SUPPORT_INT64 */
237 #endif /* EGL_KHR_reusable_sync */
238
239 #ifndef EGL_KHR_stream
240 #define EGL_KHR_stream 1
241 typedef void *EGLStreamKHR;
242 typedef khronos_uint64_t EGLuint64KHR;
243 #ifdef KHRONOS_SUPPORT_INT64
244 #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0)
245 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
246 #define EGL_PRODUCER_FRAME_KHR 0x3212
247 #define EGL_CONSUMER_FRAME_KHR 0x3213
248 #define EGL_STREAM_STATE_KHR 0x3214
249 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
250 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
251 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
252 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
253 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
254 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
255 #define EGL_BAD_STREAM_KHR 0x321B
256 #define EGL_BAD_STATE_KHR 0x321C
257 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
258 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
259 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
260 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
261 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
262 #ifdef EGL_EGLEXT_PROTOTYPES
263 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
264 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
265 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
266 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
267 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
268 #endif
269 #endif /* KHRONOS_SUPPORT_INT64 */
270 #endif /* EGL_KHR_stream */
271
272 #ifndef EGL_KHR_stream_consumer_gltexture
273 #define EGL_KHR_stream_consumer_gltexture 1
274 #ifdef EGL_KHR_stream
275 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
276 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
277 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
278 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
279 #ifdef EGL_EGLEXT_PROTOTYPES
280 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
281 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
282 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
283 #endif
284 #endif /* EGL_KHR_stream */
285 #endif /* EGL_KHR_stream_consumer_gltexture */
286
287 #ifndef EGL_KHR_stream_cross_process_fd
288 #define EGL_KHR_stream_cross_process_fd 1
289 typedef int EGLNativeFileDescriptorKHR;
290 #ifdef EGL_KHR_stream
291 #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1))
292 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
293 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
294 #ifdef EGL_EGLEXT_PROTOTYPES
295 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
296 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
297 #endif
298 #endif /* EGL_KHR_stream */
299 #endif /* EGL_KHR_stream_cross_process_fd */
300
301 #ifndef EGL_KHR_stream_fifo
302 #define EGL_KHR_stream_fifo 1
303 #ifdef EGL_KHR_stream
304 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
305 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
306 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
307 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
308 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
309 #ifdef EGL_EGLEXT_PROTOTYPES
310 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
311 #endif
312 #endif /* EGL_KHR_stream */
313 #endif /* EGL_KHR_stream_fifo */
314
315 #ifndef EGL_KHR_stream_producer_aldatalocator
316 #define EGL_KHR_stream_producer_aldatalocator 1
317 #ifdef EGL_KHR_stream
318 #endif /* EGL_KHR_stream */
319 #endif /* EGL_KHR_stream_producer_aldatalocator */
320
321 #ifndef EGL_KHR_stream_producer_eglsurface
322 #define EGL_KHR_stream_producer_eglsurface 1
323 #ifdef EGL_KHR_stream
324 #define EGL_STREAM_BIT_KHR 0x0800
325 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
326 #ifdef EGL_EGLEXT_PROTOTYPES
327 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
328 #endif
329 #endif /* EGL_KHR_stream */
330 #endif /* EGL_KHR_stream_producer_eglsurface */
331
332 #ifndef EGL_KHR_surfaceless_context
333 #define EGL_KHR_surfaceless_context 1
334 #endif /* EGL_KHR_surfaceless_context */
335
336 #ifndef EGL_KHR_vg_parent_image
337 #define EGL_KHR_vg_parent_image 1
338 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
339 #endif /* EGL_KHR_vg_parent_image */
340
341 #ifndef EGL_KHR_wait_sync
342 #define EGL_KHR_wait_sync 1
343 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
344 #ifdef EGL_EGLEXT_PROTOTYPES
345 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
346 #endif
347 #endif /* EGL_KHR_wait_sync */
348
349 #ifndef EGL_ANDROID_blob_cache
350 #define EGL_ANDROID_blob_cache 1
351 typedef khronos_ssize_t EGLsizeiANDROID;
352 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
353 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
354 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
355 #ifdef EGL_EGLEXT_PROTOTYPES
356 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
357 #endif
358 #endif /* EGL_ANDROID_blob_cache */
359
360 #ifndef EGL_ANDROID_framebuffer_target
361 #define EGL_ANDROID_framebuffer_target 1
362 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
363 #endif /* EGL_ANDROID_framebuffer_target */
364
365 #ifndef EGL_ANDROID_image_native_buffer
366 #define EGL_ANDROID_image_native_buffer 1
367 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
368 #endif /* EGL_ANDROID_image_native_buffer */
369
370 #ifndef EGL_ANDROID_native_fence_sync
371 #define EGL_ANDROID_native_fence_sync 1
372 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
373 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
374 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
375 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
376 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
377 #ifdef EGL_EGLEXT_PROTOTYPES
378 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
379 #endif
380 #endif /* EGL_ANDROID_native_fence_sync */
381
382 #ifndef EGL_ANDROID_recordable
383 #define EGL_ANDROID_recordable 1
384 #define EGL_RECORDABLE_ANDROID 0x3142
385 #endif /* EGL_ANDROID_recordable */
386
387 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
388 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
389 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
390 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
391
392 #ifndef EGL_ANGLE_query_surface_pointer
393 #define EGL_ANGLE_query_surface_pointer 1
394 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
395 #ifdef EGL_EGLEXT_PROTOTYPES
396 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
397 #endif
398 #endif /* EGL_ANGLE_query_surface_pointer */
399
400 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
401 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
402 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
403
404 #ifndef EGL_ARM_pixmap_multisample_discard
405 #define EGL_ARM_pixmap_multisample_discard 1
406 #define EGL_DISCARD_SAMPLES_ARM 0x3286
407 #endif /* EGL_ARM_pixmap_multisample_discard */
408
409 #ifndef EGL_EXT_buffer_age
410 #define EGL_EXT_buffer_age 1
411 #define EGL_BUFFER_AGE_EXT 0x313D
412 #endif /* EGL_EXT_buffer_age */
413
414 #ifndef EGL_EXT_client_extensions
415 #define EGL_EXT_client_extensions 1
416 #endif /* EGL_EXT_client_extensions */
417
418 #ifndef EGL_EXT_create_context_robustness
419 #define EGL_EXT_create_context_robustness 1
420 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
421 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
422 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
423 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
424 #endif /* EGL_EXT_create_context_robustness */
425
426 #ifndef EGL_EXT_image_dma_buf_import
427 #define EGL_EXT_image_dma_buf_import 1
428 #define EGL_LINUX_DMA_BUF_EXT 0x3270
429 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
430 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
431 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
432 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
433 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
434 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
435 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
436 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
437 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
438 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
439 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
440 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
441 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
442 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
443 #define EGL_ITU_REC601_EXT 0x327F
444 #define EGL_ITU_REC709_EXT 0x3280
445 #define EGL_ITU_REC2020_EXT 0x3281
446 #define EGL_YUV_FULL_RANGE_EXT 0x3282
447 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
448 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
449 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
450 #endif /* EGL_EXT_image_dma_buf_import */
451
452 #ifndef EGL_EXT_multiview_window
453 #define EGL_EXT_multiview_window 1
454 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
455 #endif /* EGL_EXT_multiview_window */
456
457 #ifndef EGL_EXT_platform_base
458 #define EGL_EXT_platform_base 1
459 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
460 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
461 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
462 #ifdef EGL_EGLEXT_PROTOTYPES
463 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
464 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
465 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
466 #endif
467 #endif /* EGL_EXT_platform_base */
468
469 #ifndef EGL_EXT_platform_wayland
470 #define EGL_EXT_platform_wayland 1
471 #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
472 #endif /* EGL_EXT_platform_wayland */
473
474 #ifndef EGL_EXT_platform_x11
475 #define EGL_EXT_platform_x11 1
476 #define EGL_PLATFORM_X11_EXT 0x31D5
477 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
478 #endif /* EGL_EXT_platform_x11 */
479
480 #ifndef EGL_EXT_swap_buffers_with_damage
481 #define EGL_EXT_swap_buffers_with_damage 1
482 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
483 #ifdef EGL_EGLEXT_PROTOTYPES
484 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
485 #endif
486 #endif /* EGL_EXT_swap_buffers_with_damage */
487
488 #ifndef EGL_HI_clientpixmap
489 #define EGL_HI_clientpixmap 1
490 struct EGLClientPixmapHI {
491 void *pData;
492 EGLint iWidth;
493 EGLint iHeight;
494 EGLint iStride;
495 };
496 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
497 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
498 #ifdef EGL_EGLEXT_PROTOTYPES
499 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
500 #endif
501 #endif /* EGL_HI_clientpixmap */
502
503 #ifndef EGL_HI_colorformats
504 #define EGL_HI_colorformats 1
505 #define EGL_COLOR_FORMAT_HI 0x8F70
506 #define EGL_COLOR_RGB_HI 0x8F71
507 #define EGL_COLOR_RGBA_HI 0x8F72
508 #define EGL_COLOR_ARGB_HI 0x8F73
509 #endif /* EGL_HI_colorformats */
510
511 #ifndef EGL_IMG_context_priority
512 #define EGL_IMG_context_priority 1
513 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
514 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
515 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
516 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
517 #endif /* EGL_IMG_context_priority */
518
519 #ifndef EGL_MESA_drm_image
520 #define EGL_MESA_drm_image 1
521 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
522 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
523 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
524 #define EGL_DRM_BUFFER_MESA 0x31D3
525 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
526 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
527 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
528 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
529 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
530 #ifdef EGL_EGLEXT_PROTOTYPES
531 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
532 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
533 #endif
534 #endif /* EGL_MESA_drm_image */
535
536 #ifndef EGL_MESA_platform_gbm
537 #define EGL_MESA_platform_gbm 1
538 #define EGL_PLATFORM_GBM_MESA 0x31D7
539 #endif /* EGL_MESA_platform_gbm */
540
541 #ifndef EGL_NV_3dvision_surface
542 #define EGL_NV_3dvision_surface 1
543 #define EGL_AUTO_STEREO_NV 0x3136
544 #endif /* EGL_NV_3dvision_surface */
545
546 #ifndef EGL_NV_coverage_sample
547 #define EGL_NV_coverage_sample 1
548 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
549 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
550 #endif /* EGL_NV_coverage_sample */
551
552 #ifndef EGL_NV_coverage_sample_resolve
553 #define EGL_NV_coverage_sample_resolve 1
554 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
555 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
556 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
557 #endif /* EGL_NV_coverage_sample_resolve */
558
559 #ifndef EGL_NV_depth_nonlinear
560 #define EGL_NV_depth_nonlinear 1
561 #define EGL_DEPTH_ENCODING_NV 0x30E2
562 #define EGL_DEPTH_ENCODING_NONE_NV 0
563 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
564 #endif /* EGL_NV_depth_nonlinear */
565
566 #ifndef EGL_NV_native_query
567 #define EGL_NV_native_query 1
568 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
569 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
570 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
571 #ifdef EGL_EGLEXT_PROTOTYPES
572 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
573 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
574 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
575 #endif
576 #endif /* EGL_NV_native_query */
577
578 #ifndef EGL_NV_post_convert_rounding
579 #define EGL_NV_post_convert_rounding 1
580 #endif /* EGL_NV_post_convert_rounding */
581
582 #ifndef EGL_NV_post_sub_buffer
583 #define EGL_NV_post_sub_buffer 1
584 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
585 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
586 #ifdef EGL_EGLEXT_PROTOTYPES
587 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
588 #endif
589 #endif /* EGL_NV_post_sub_buffer */
590
591 #ifndef EGL_NV_stream_sync
592 #define EGL_NV_stream_sync 1
593 #define EGL_SYNC_NEW_FRAME_NV 0x321F
594 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
595 #ifdef EGL_EGLEXT_PROTOTYPES
596 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
597 #endif
598 #endif /* EGL_NV_stream_sync */
599
600 #ifndef EGL_NV_sync
601 #define EGL_NV_sync 1
602 typedef void *EGLSyncNV;
603 typedef khronos_utime_nanoseconds_t EGLTimeNV;
604 #ifdef KHRONOS_SUPPORT_INT64
605 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
606 #define EGL_SYNC_STATUS_NV 0x30E7
607 #define EGL_SIGNALED_NV 0x30E8
608 #define EGL_UNSIGNALED_NV 0x30E9
609 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
610 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
611 #define EGL_ALREADY_SIGNALED_NV 0x30EA
612 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
613 #define EGL_CONDITION_SATISFIED_NV 0x30EC
614 #define EGL_SYNC_TYPE_NV 0x30ED
615 #define EGL_SYNC_CONDITION_NV 0x30EE
616 #define EGL_SYNC_FENCE_NV 0x30EF
617 #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
618 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
619 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
620 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
621 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
622 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
623 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
624 #ifdef EGL_EGLEXT_PROTOTYPES
625 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
626 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
627 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
628 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
629 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
630 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
631 #endif
632 #endif /* KHRONOS_SUPPORT_INT64 */
633 #endif /* EGL_NV_sync */
634
635 #ifndef EGL_NV_system_time
636 #define EGL_NV_system_time 1
637 typedef khronos_utime_nanoseconds_t EGLuint64NV;
638 #ifdef KHRONOS_SUPPORT_INT64
639 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
640 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
641 #ifdef EGL_EGLEXT_PROTOTYPES
642 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
643 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
644 #endif
645 #endif /* KHRONOS_SUPPORT_INT64 */
646 #endif /* EGL_NV_system_time */
647
648 #include <EGL/eglmesaext.h>
649 #include <EGL/eglextchromium.h>
650
651 #ifdef __cplusplus
652 }
653 #endif
654
655 #endif