Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: third_party/khronos/EGL/eglext.h

Issue 2767063002: 16-bit video upload to float: intermediate R16_EXT and copy to float. (Closed)
Patch Set: Rebase. Comments fix. Thanks kbr@. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef __eglext_h_ 1 #ifndef __eglext_h_
2 #define __eglext_h_ 2 #define __eglext_h_ 1
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 /* 8 /*
9 ** Copyright (c) 2007-2013 The Khronos Group Inc. 9 ** Copyright (c) 2013-2017 The Khronos Group Inc.
10 ** 10 **
11 ** Permission is hereby granted, free of charge, to any person obtaining a 11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the 12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including 13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish, 14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to 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 16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions: 17 ** the following conditions:
18 ** 18 **
19 ** The above copyright notice and this permission notice shall be included 19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials. 20 ** in all copies or substantial portions of the Materials.
21 ** 21 **
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 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, 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 27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29 */ 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.khronos.org/registry/egl
35 **
36 ** Khronos $Revision$ on $Date$
37 */
30 38
31 #include <EGL/eglplatform.h> 39 #include <EGL/eglplatform.h>
32 40
33 /*************************************************************/ 41 #define EGL_EGLEXT_VERSION 20170301
34 42
35 /* Header file version number */ 43 /* Generated C header for:
36 /* Current version at http://www.khronos.org/registry/egl/ */ 44 * API: egl
37 /* $Revision: 20690 $ on $Date: 2013-02-22 17:15:05 -0800 (Fri, 22 Feb 2013) $ * / 45 * Versions considered: .*
38 #define EGL_EGLEXT_VERSION 15 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, EGL enum 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 */
39 72
40 #ifndef EGL_KHR_config_attribs 73 #ifndef EGL_KHR_config_attribs
41 #define EGL_KHR_config_attribs 1 74 #define EGL_KHR_config_attribs 1
42 #define EGL_CONFORMANT_KHR» » » 0x3042» /* EGLConfig attribute * / 75 #define EGL_CONFORMANT_KHR 0x3042
43 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR» 0x0020» /* EGL_SURFACE_TYPE bitf ield */ 76 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
44 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR»» 0x0040» /* EGL_SURFACE_TYPE bitf ield */ 77 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
45 #endif 78 #endif /* EGL_KHR_config_attribs */
46 79
47 #ifndef EGL_KHR_lock_surface 80 #ifndef EGL_KHR_context_flush_control
48 #define EGL_KHR_lock_surface 1 81 #define EGL_KHR_context_flush_control 1
49 #define EGL_READ_SURFACE_BIT_KHR» » 0x0001» /* EGL_LOCK_USAGE_HINT_K HR bitfield */ 82 #define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
50 #define EGL_WRITE_SURFACE_BIT_KHR» » 0x0002» /* EGL_LOCK_USAGE_HINT_K HR bitfield */ 83 #define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097
51 #define EGL_LOCK_SURFACE_BIT_KHR» » 0x0080» /* EGL_SURFACE_TYPE bitf ield */ 84 #define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
52 #define EGL_OPTIMAL_FORMAT_BIT_KHR» » 0x0100» /* EGL_SURFACE_TYPE bitf ield */ 85 #endif /* EGL_KHR_context_flush_control */
53 #define EGL_MATCH_FORMAT_KHR» » » 0x3043» /* EGLConfig attribute * / 86
54 #define EGL_FORMAT_RGB_565_EXACT_KHR» » 0x30C0» /* EGL_MATCH_FORMAT_KHR value */ 87 #ifndef EGL_KHR_create_context
55 #define EGL_FORMAT_RGB_565_KHR» » » 0x30C1» /* EGL_MATCH_FORMAT_KHR value */ 88 #define EGL_KHR_create_context 1
56 #define EGL_FORMAT_RGBA_8888_EXACT_KHR» » 0x30C2» /* EGL_MATCH_FORMAT_KHR value */ 89 #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
57 #define EGL_FORMAT_RGBA_8888_KHR» » 0x30C3» /* EGL_MATCH_FORMAT_KHR value */ 90 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
58 #define EGL_MAP_PRESERVE_PIXELS_KHR» » 0x30C4» /* eglLockSurfaceKHR att ribute */ 91 #define EGL_CONTEXT_FLAGS_KHR 0x30FC
59 #define EGL_LOCK_USAGE_HINT_KHR»» » 0x30C5» /* eglLockSurfaceKHR att ribute */ 92 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
60 #define EGL_BITMAP_POINTER_KHR» » » 0x30C6» /* eglQuerySurface attri bute */ 93 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
61 #define EGL_BITMAP_PITCH_KHR» » » 0x30C7» /* eglQuerySurface attri bute */ 94 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
62 #define EGL_BITMAP_ORIGIN_KHR» » » 0x30C8» /* eglQuerySurface attri bute */ 95 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
63 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR»» 0x30C9» /* eglQuerySurface attri bute */ 96 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
64 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR» 0x30CA» /* eglQuerySurface attri bute */ 97 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
65 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR» 0x30CB» /* eglQuerySurface attri bute */ 98 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
66 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR» 0x30CC» /* eglQuerySurface attri bute */ 99 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
67 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR» 0x30CD» /* eglQuerySurface attri bute */ 100 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
68 #define EGL_LOWER_LEFT_KHR» » » 0x30CE» /* EGL_BITMAP_ORIGIN_KHR value */ 101 #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
69 #define EGL_UPPER_LEFT_KHR» » » 0x30CF» /* EGL_BITMAP_ORIGIN_KHR value */ 102 #endif /* EGL_KHR_create_context */
70 #ifdef EGL_EGLEXT_PROTOTYPES 103
71 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); 104 #ifndef EGL_KHR_create_context_no_error
72 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurfac e surface); 105 #define EGL_KHR_create_context_no_error 1
73 #endif /* EGL_EGLEXT_PROTOTYPES */ 106 #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
74 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); 107 #endif /* EGL_KHR_create_context_no_error */
75 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display , EGLSurface surface); 108
76 #endif 109 #ifndef EGL_KHR_debug
77 110 #define EGL_KHR_debug 1
78 #ifndef EGL_KHR_image 111 typedef void *EGLLabelKHR;
79 #define EGL_KHR_image 1 112 typedef void *EGLObjectKHR;
80 #define EGL_NATIVE_PIXMAP_KHR» » » 0x30B0» /* eglCreateImageKHR tar get */ 113 typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,E GLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* me ssage);
81 typedef void *EGLImageKHR; 114 #define EGL_OBJECT_THREAD_KHR 0x33B0
82 #define EGL_NO_IMAGE_KHR» » » ((EGLImageKHR)0) 115 #define EGL_OBJECT_DISPLAY_KHR 0x33B1
83 #ifdef EGL_EGLEXT_PROTOTYPES 116 #define EGL_OBJECT_CONTEXT_KHR 0x33B2
84 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx , EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 117 #define EGL_OBJECT_SURFACE_KHR 0x33B3
85 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR im age); 118 #define EGL_OBJECT_IMAGE_KHR 0x33B4
86 #endif /* EGL_EGLEXT_PROTOTYPES */ 119 #define EGL_OBJECT_SYNC_KHR 0x33B5
87 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGL Context ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 120 #define EGL_OBJECT_STREAM_KHR 0x33B6
88 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGL ImageKHR image); 121 #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
89 #endif 122 #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
90 123 #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
91 #ifndef EGL_KHR_vg_parent_image 124 #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
92 #define EGL_KHR_vg_parent_image 1 125 #define EGL_DEBUG_CALLBACK_KHR 0x33B8
93 #define EGL_VG_PARENT_IMAGE_KHR»» » 0x30BA» /* eglCreateImageKHR tar get */ 126 typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
94 #endif 127 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGL Attrib *value);
95 128 typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLe num objectType, EGLObjectKHR object, EGLLabelKHR label);
96 #ifndef EGL_KHR_gl_texture_2D_image 129 #ifdef EGL_EGLEXT_PROTOTYPES
97 #define EGL_KHR_gl_texture_2D_image 1 130 EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, c onst EGLAttrib *attrib_list);
98 #define EGL_GL_TEXTURE_2D_KHR» » » 0x30B1» /* eglCreateImageKHR tar get */ 131 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *val ue);
99 #define EGL_GL_TEXTURE_LEVEL_KHR» » 0x30BC» /* eglCreateImageKHR att ribute */ 132 EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectT ype, EGLObjectKHR object, EGLLabelKHR label);
100 #endif 133 #endif
101 134 #endif /* EGL_KHR_debug */
102 #ifndef EGL_KHR_gl_texture_cubemap_image 135
103 #define EGL_KHR_gl_texture_cubemap_image 1 136 #ifndef EGL_KHR_fence_sync
104 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR» 0x30B3» /* eglCreateImageKHR tar get */ 137 #define EGL_KHR_fence_sync 1
105 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR» 0x30B4» /* eglCreateImageKHR tar get */
106 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR» 0x30B5» /* eglCreateImageKHR tar get */
107 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR» 0x30B6» /* eglCreateImageKHR tar get */
108 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR» 0x30B7» /* eglCreateImageKHR tar get */
109 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR» 0x30B8» /* eglCreateImageKHR tar get */
110 #endif
111
112 #ifndef EGL_KHR_gl_texture_3D_image
113 #define EGL_KHR_gl_texture_3D_image 1
114 #define EGL_GL_TEXTURE_3D_KHR» » » 0x30B2» /* eglCreateImageKHR tar get */
115 #define EGL_GL_TEXTURE_ZOFFSET_KHR» » 0x30BD» /* eglCreateImageKHR att ribute */
116 #endif
117
118 #ifndef EGL_KHR_gl_renderbuffer_image
119 #define EGL_KHR_gl_renderbuffer_image 1
120 #define EGL_GL_RENDERBUFFER_KHR»» » 0x30B9» /* eglCreateImageKHR tar get */
121 #endif
122
123 #if KHRONOS_SUPPORT_INT64 /* EGLTimeKHR requires 64-bit uint support */
124 #ifndef EGL_KHR_reusable_sync
125 #define EGL_KHR_reusable_sync 1
126
127 typedef void* EGLSyncKHR;
128 typedef khronos_utime_nanoseconds_t EGLTimeKHR; 138 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
129 139 #ifdef KHRONOS_SUPPORT_INT64
130 #define EGL_SYNC_STATUS_KHR» » » 0x30F1 140 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
131 #define EGL_SIGNALED_KHR» » » 0x30F2 141 #define EGL_SYNC_CONDITION_KHR 0x30F8
132 #define EGL_UNSIGNALED_KHR» » » 0x30F3 142 #define EGL_SYNC_FENCE_KHR 0x30F9
133 #define EGL_TIMEOUT_EXPIRED_KHR»» » 0x30F5
134 #define EGL_CONDITION_SATISFIED_KHR» » 0x30F6
135 #define EGL_SYNC_TYPE_KHR» » » 0x30F7
136 #define EGL_SYNC_REUSABLE_KHR» » » 0x30FA
137 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR»» 0x0001» /* eglClientWaitSyncKHR <flags> bitfield */
138 #define EGL_FOREVER_KHR»» » » 0xFFFFFFFFFFFFFFFFull
139 #define EGL_NO_SYNC_KHR»» » » ((EGLSyncKHR)0)
140 #ifdef EGL_EGLEXT_PROTOTYPES
141 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, con st EGLint *attrib_list);
142 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) ;
143 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
144 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
145 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR syn c, EGLint attribute, EGLint *value);
146 #endif /* EGL_EGLEXT_PROTOTYPES */
147 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLen um type, const EGLint *attrib_list); 143 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLen um type, const EGLint *attrib_list);
148 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLS yncKHR sync); 144 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLS yncKHR sync);
149 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSy ncKHR sync, EGLint flags, EGLTimeKHR timeout); 145 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSy ncKHR sync, EGLint flags, EGLTimeKHR timeout);
150 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSy ncKHR sync, EGLenum mode);
151 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EG LSyncKHR sync, EGLint attribute, EGLint *value); 146 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EG LSyncKHR sync, EGLint attribute, EGLint *value);
152 #endif 147 #ifdef EGL_EGLEXT_PROTOTYPES
153 #endif 148 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, co nst EGLint *attrib_list);
149 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync );
150 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
151 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sy nc, EGLint attribute, EGLint *value);
152 #endif
153 #endif /* KHRONOS_SUPPORT_INT64 */
154 #endif /* EGL_KHR_fence_sync */
155
156 #ifndef EGL_KHR_get_all_proc_addresses
157 #define EGL_KHR_get_all_proc_addresses 1
158 #endif /* EGL_KHR_get_all_proc_addresses */
159
160 #ifndef EGL_KHR_gl_colorspace
161 #define EGL_KHR_gl_colorspace 1
162 #define EGL_GL_COLORSPACE_KHR 0x309D
163 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
164 #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
165 #endif /* EGL_KHR_gl_colorspace */
166
167 #ifndef EGL_KHR_gl_renderbuffer_image
168 #define EGL_KHR_gl_renderbuffer_image 1
169 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
170 #endif /* EGL_KHR_gl_renderbuffer_image */
171
172 #ifndef EGL_KHR_gl_texture_2D_image
173 #define EGL_KHR_gl_texture_2D_image 1
174 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
175 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
176 #endif /* EGL_KHR_gl_texture_2D_image */
177
178 #ifndef EGL_KHR_gl_texture_3D_image
179 #define EGL_KHR_gl_texture_3D_image 1
180 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
181 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
182 #endif /* EGL_KHR_gl_texture_3D_image */
183
184 #ifndef EGL_KHR_gl_texture_cubemap_image
185 #define EGL_KHR_gl_texture_cubemap_image 1
186 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
187 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
188 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
189 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
190 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
191 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
192 #endif /* EGL_KHR_gl_texture_cubemap_image */
193
194 #ifndef EGL_KHR_image
195 #define EGL_KHR_image 1
196 typedef void *EGLImageKHR;
197 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
198 #define EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0)
199 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGL Context ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
200 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGL ImageKHR image);
201 #ifdef EGL_EGLEXT_PROTOTYPES
202 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx , EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
203 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR im age);
204 #endif
205 #endif /* EGL_KHR_image */
154 206
155 #ifndef EGL_KHR_image_base 207 #ifndef EGL_KHR_image_base
156 #define EGL_KHR_image_base 1 208 #define EGL_KHR_image_base 1
157 /* Most interfaces defined by EGL_KHR_image_pixmap above */ 209 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
158 #define EGL_IMAGE_PRESERVED_KHR»» » 0x30D2» /* eglCreateImageKHR att ribute */ 210 #endif /* EGL_KHR_image_base */
159 #endif
160 211
161 #ifndef EGL_KHR_image_pixmap 212 #ifndef EGL_KHR_image_pixmap
162 #define EGL_KHR_image_pixmap 1 213 #define EGL_KHR_image_pixmap 1
163 /* Interfaces defined by EGL_KHR_image above */ 214 #endif /* EGL_KHR_image_pixmap */
164 #endif 215
216 #ifndef EGL_KHR_lock_surface
217 #define EGL_KHR_lock_surface 1
218 #define EGL_READ_SURFACE_BIT_KHR 0x0001
219 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
220 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
221 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
222 #define EGL_MATCH_FORMAT_KHR 0x3043
223 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
224 #define EGL_FORMAT_RGB_565_KHR 0x30C1
225 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
226 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
227 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
228 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
229 #define EGL_BITMAP_POINTER_KHR 0x30C6
230 #define EGL_BITMAP_PITCH_KHR 0x30C7
231 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
232 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
233 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
234 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
235 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
236 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
237 #define EGL_LOWER_LEFT_KHR 0x30CE
238 #define EGL_UPPER_LEFT_KHR 0x30CF
239 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLS urface surface, const EGLint *attrib_list);
240 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EG LSurface surface);
241 #ifdef EGL_EGLEXT_PROTOTYPES
242 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surf ace, const EGLint *attrib_list);
243 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface su rface);
244 #endif
245 #endif /* EGL_KHR_lock_surface */
246
247 #ifndef EGL_KHR_lock_surface2
248 #define EGL_KHR_lock_surface2 1
249 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
250 #endif /* EGL_KHR_lock_surface2 */
251
252 #ifndef EGL_KHR_lock_surface3
253 #define EGL_KHR_lock_surface3 1
254 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, E GLSurface surface, EGLint attribute, EGLAttribKHR *value);
255 #ifdef EGL_EGLEXT_PROTOTYPES
256 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface s urface, EGLint attribute, EGLAttribKHR *value);
257 #endif
258 #endif /* EGL_KHR_lock_surface3 */
259
260 #ifndef EGL_KHR_mutable_render_buffer
261 #define EGL_KHR_mutable_render_buffer 1
262 #define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
263 #endif /* EGL_KHR_mutable_render_buffer */
264
265 #ifndef EGL_KHR_no_config_context
266 #define EGL_KHR_no_config_context 1
267 #define EGL_NO_CONFIG_KHR EGL_CAST(EGLConfig,0)
268 #endif /* EGL_KHR_no_config_context */
269
270 #ifndef EGL_KHR_partial_update
271 #define EGL_KHR_partial_update 1
272 #define EGL_BUFFER_AGE_KHR 0x313D
273 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
274 #ifdef EGL_EGLEXT_PROTOTYPES
275 EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
276 #endif
277 #endif /* EGL_KHR_partial_update */
278
279 #ifndef EGL_KHR_platform_android
280 #define EGL_KHR_platform_android 1
281 #define EGL_PLATFORM_ANDROID_KHR 0x3141
282 #endif /* EGL_KHR_platform_android */
283
284 #ifndef EGL_KHR_platform_gbm
285 #define EGL_KHR_platform_gbm 1
286 #define EGL_PLATFORM_GBM_KHR 0x31D7
287 #endif /* EGL_KHR_platform_gbm */
288
289 #ifndef EGL_KHR_platform_wayland
290 #define EGL_KHR_platform_wayland 1
291 #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
292 #endif /* EGL_KHR_platform_wayland */
293
294 #ifndef EGL_KHR_platform_x11
295 #define EGL_KHR_platform_x11 1
296 #define EGL_PLATFORM_X11_KHR 0x31D5
297 #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
298 #endif /* EGL_KHR_platform_x11 */
299
300 #ifndef EGL_KHR_reusable_sync
301 #define EGL_KHR_reusable_sync 1
302 #ifdef KHRONOS_SUPPORT_INT64
303 #define EGL_SYNC_STATUS_KHR 0x30F1
304 #define EGL_SIGNALED_KHR 0x30F2
305 #define EGL_UNSIGNALED_KHR 0x30F3
306 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
307 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
308 #define EGL_SYNC_TYPE_KHR 0x30F7
309 #define EGL_SYNC_REUSABLE_KHR 0x30FA
310 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
311 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
312 #define EGL_NO_SYNC_KHR EGL_CAST(EGLSyncKHR,0)
313 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSy ncKHR sync, EGLenum mode);
314 #ifdef EGL_EGLEXT_PROTOTYPES
315 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
316 #endif
317 #endif /* KHRONOS_SUPPORT_INT64 */
318 #endif /* EGL_KHR_reusable_sync */
319
320 #ifndef EGL_KHR_stream
321 #define EGL_KHR_stream 1
322 typedef void *EGLStreamKHR;
323 typedef khronos_uint64_t EGLuint64KHR;
324 #ifdef KHRONOS_SUPPORT_INT64
325 #define EGL_NO_STREAM_KHR EGL_CAST(EGLStreamKHR,0)
326 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
327 #define EGL_PRODUCER_FRAME_KHR 0x3212
328 #define EGL_CONSUMER_FRAME_KHR 0x3213
329 #define EGL_STREAM_STATE_KHR 0x3214
330 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
331 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
332 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
333 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
334 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
335 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
336 #define EGL_BAD_STREAM_KHR 0x321B
337 #define EGL_BAD_STATE_KHR 0x321C
338 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, c onst EGLint *attrib_list);
339 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EG LStreamKHR stream);
340 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGL StreamKHR stream, EGLenum attribute, EGLint value);
341 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLS treamKHR stream, EGLenum attribute, EGLint *value);
342 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, E GLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
343 #ifdef EGL_EGLEXT_PROTOTYPES
344 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
345 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
346 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR s tream, EGLenum attribute, EGLint value);
347 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR st ream, EGLenum attribute, EGLint *value);
348 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
349 #endif
350 #endif /* KHRONOS_SUPPORT_INT64 */
351 #endif /* EGL_KHR_stream */
352
353 #ifndef EGL_KHR_stream_attrib
354 #define EGL_KHR_stream_attrib 1
355 #ifdef KHRONOS_SUPPORT_INT64
356 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
357 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
358 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy , EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
359 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLD isplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
360 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLD isplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
361 #ifdef EGL_EGLEXT_PROTOTYPES
362 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribKHR (EGLDisplay dpy, const EGLAttrib *attrib_list);
363 EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribKHR (EGLDisplay dpy, EGLStreamKH R stream, EGLenum attribute, EGLAttrib value);
364 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribKHR (EGLDisplay dpy, EGLStream KHR stream, EGLenum attribute, EGLAttrib *value);
365 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
366 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
367 #endif
368 #endif /* KHRONOS_SUPPORT_INT64 */
369 #endif /* EGL_KHR_stream_attrib */
370
371 #ifndef EGL_KHR_stream_consumer_gltexture
372 #define EGL_KHR_stream_consumer_gltexture 1
373 #ifdef EGL_KHR_stream
374 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
375 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) ( EGLDisplay dpy, EGLStreamKHR stream);
376 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
377 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
378 #ifdef EGL_EGLEXT_PROTOTYPES
379 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
380 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLSt reamKHR stream);
381 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLSt reamKHR stream);
382 #endif
383 #endif /* EGL_KHR_stream */
384 #endif /* EGL_KHR_stream_consumer_gltexture */
385
386 #ifndef EGL_KHR_stream_cross_process_fd
387 #define EGL_KHR_stream_cross_process_fd 1
388 typedef int EGLNativeFileDescriptorKHR;
389 #ifdef EGL_KHR_stream
390 #define EGL_NO_FILE_DESCRIPTOR_KHR EGL_CAST(EGLNativeFileDescriptorKHR,-1 )
391 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKH RPROC) (EGLDisplay dpy, EGLStreamKHR stream);
392 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
393 #ifdef EGL_EGLEXT_PROTOTYPES
394 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGL Display dpy, EGLStreamKHR stream);
395 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
396 #endif
397 #endif /* EGL_KHR_stream */
398 #endif /* EGL_KHR_stream_cross_process_fd */
399
400 #ifndef EGL_KHR_stream_fifo
401 #define EGL_KHR_stream_fifo 1
402 #ifdef EGL_KHR_stream
403 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
404 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
405 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
406 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
407 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
408 #ifdef EGL_EGLEXT_PROTOTYPES
409 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKH R stream, EGLenum attribute, EGLTimeKHR *value);
410 #endif
411 #endif /* EGL_KHR_stream */
412 #endif /* EGL_KHR_stream_fifo */
413
414 #ifndef EGL_KHR_stream_producer_aldatalocator
415 #define EGL_KHR_stream_producer_aldatalocator 1
416 #ifdef EGL_KHR_stream
417 #endif /* EGL_KHR_stream */
418 #endif /* EGL_KHR_stream_producer_aldatalocator */
419
420 #ifndef EGL_KHR_stream_producer_eglsurface
421 #define EGL_KHR_stream_producer_eglsurface 1
422 #ifdef EGL_KHR_stream
423 #define EGL_STREAM_BIT_KHR 0x0800
424 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLD isplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
425 #ifdef EGL_EGLEXT_PROTOTYPES
426 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
427 #endif
428 #endif /* EGL_KHR_stream */
429 #endif /* EGL_KHR_stream_producer_eglsurface */
430
431 #ifndef EGL_KHR_surfaceless_context
432 #define EGL_KHR_surfaceless_context 1
433 #endif /* EGL_KHR_surfaceless_context */
434
435 #ifndef EGL_KHR_swap_buffers_with_damage
436 #define EGL_KHR_swap_buffers_with_damage 1
437 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
438 #ifdef EGL_EGLEXT_PROTOTYPES
439 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSu rface surface, EGLint *rects, EGLint n_rects);
440 #endif
441 #endif /* EGL_KHR_swap_buffers_with_damage */
442
443 #ifndef EGL_KHR_vg_parent_image
444 #define EGL_KHR_vg_parent_image 1
445 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
446 #endif /* EGL_KHR_vg_parent_image */
447
448 #ifndef EGL_KHR_wait_sync
449 #define EGL_KHR_wait_sync 1
450 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
451 #ifdef EGL_EGLEXT_PROTOTYPES
452 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLin t flags);
453 #endif
454 #endif /* EGL_KHR_wait_sync */
455
456 #ifndef EGL_ANDROID_blob_cache
457 #define EGL_ANDROID_blob_cache 1
458 typedef khronos_ssize_t EGLsizeiANDROID;
459 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
460 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDRO ID keySize, void *value, EGLsizeiANDROID valueSize);
461 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
462 #ifdef EGL_EGLEXT_PROTOTYPES
463 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobF uncANDROID set, EGLGetBlobFuncANDROID get);
464 #endif
465 #endif /* EGL_ANDROID_blob_cache */
466
467 #ifndef EGL_ANDROID_create_native_client_buffer
468 #define EGL_ANDROID_create_native_client_buffer 1
469 #define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
470 #define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
471 #define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
472 #define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
473 typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint *attrib_list);
474 #ifdef EGL_EGLEXT_PROTOTYPES
475 EGLAPI EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID (const EGL int *attrib_list);
476 #endif
477 #endif /* EGL_ANDROID_create_native_client_buffer */
478
479 #ifndef EGL_ANDROID_framebuffer_target
480 #define EGL_ANDROID_framebuffer_target 1
481 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
482 #endif /* EGL_ANDROID_framebuffer_target */
483
484 #ifndef EGL_ANDROID_front_buffer_auto_refresh
485 #define EGL_ANDROID_front_buffer_auto_refresh 1
486 #define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
487 #endif /* EGL_ANDROID_front_buffer_auto_refresh */
488
489 #ifndef EGL_ANDROID_image_native_buffer
490 #define EGL_ANDROID_image_native_buffer 1
491 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
492 #endif /* EGL_ANDROID_image_native_buffer */
493
494 #ifndef EGL_ANDROID_native_fence_sync
495 #define EGL_ANDROID_native_fence_sync 1
496 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
497 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
498 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
499 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
500 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
501 #ifdef EGL_EGLEXT_PROTOTYPES
502 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
503 #endif
504 #endif /* EGL_ANDROID_native_fence_sync */
505
506 #ifndef EGL_ANDROID_presentation_time
507 #define EGL_ANDROID_presentation_time 1
508 typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
509 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
510 #ifdef EGL_EGLEXT_PROTOTYPES
511 EGLAPI EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID (EGLDisplay dpy, EGLSur face surface, EGLnsecsANDROID time);
512 #endif
513 #endif /* EGL_ANDROID_presentation_time */
514
515 #ifndef EGL_ANDROID_recordable
516 #define EGL_ANDROID_recordable 1
517 #define EGL_RECORDABLE_ANDROID 0x3142
518 #endif /* EGL_ANDROID_recordable */
519
520 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
521 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
522 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
523 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
524
525 #ifndef EGL_ANGLE_device_d3d
526 #define EGL_ANGLE_device_d3d 1
527 #define EGL_D3D9_DEVICE_ANGLE 0x33A0
528 #define EGL_D3D11_DEVICE_ANGLE 0x33A1
529 #endif /* EGL_ANGLE_device_d3d */
530
531 #ifndef EGL_ANGLE_query_surface_pointer
532 #define EGL_ANGLE_query_surface_pointer 1
533 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
534 #ifdef EGL_EGLEXT_PROTOTYPES
535 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSu rface surface, EGLint attribute, void **value);
536 #endif
537 #endif /* EGL_ANGLE_query_surface_pointer */
538
539 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
540 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
541 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
542
543 #ifndef EGL_ANGLE_window_fixed_size
544 #define EGL_ANGLE_window_fixed_size 1
545 #define EGL_FIXED_SIZE_ANGLE 0x3201
546 #endif /* EGL_ANGLE_window_fixed_size */
547
548 #ifndef EGL_ARM_implicit_external_sync
549 #define EGL_ARM_implicit_external_sync 1
550 #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
551 #endif /* EGL_ARM_implicit_external_sync */
552
553 #ifndef EGL_ARM_pixmap_multisample_discard
554 #define EGL_ARM_pixmap_multisample_discard 1
555 #define EGL_DISCARD_SAMPLES_ARM 0x3286
556 #endif /* EGL_ARM_pixmap_multisample_discard */
557
558 #ifndef EGL_EXT_buffer_age
559 #define EGL_EXT_buffer_age 1
560 #define EGL_BUFFER_AGE_EXT 0x313D
561 #endif /* EGL_EXT_buffer_age */
562
563 #ifndef EGL_EXT_client_extensions
564 #define EGL_EXT_client_extensions 1
565 #endif /* EGL_EXT_client_extensions */
566
567 #ifndef EGL_EXT_compositor
568 #define EGL_EXT_compositor 1
569 #define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
570 #define EGL_EXTERNAL_REF_ID_EXT 0x3461
571 #define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
572 #define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
573 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const E GLint *external_ref_ids, EGLint num_entries);
574 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (E GLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
575 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint e xternal_ref_id, const EGLint *external_win_ids, EGLint num_entries);
576 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EG Lint external_win_id, const EGLint *window_attributes, EGLint num_entries);
577 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint e xternal_win_id);
578 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint externa l_win_id, EGLint width, EGLint height);
579 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint exte rnal_win_id, EGLint policy);
580 #ifdef EGL_EGLEXT_PROTOTYPES
581 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *exte rnal_ref_ids, EGLint num_entries);
582 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint exter nal_ref_id, const EGLint *context_attributes, EGLint num_entries);
583 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref _id, const EGLint *external_win_ids, EGLint num_entries);
584 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint extern al_win_id, const EGLint *window_attributes, EGLint num_entries);
585 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win _id);
586 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, E GLint width, EGLint height);
587 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id , EGLint policy);
588 #endif
589 #endif /* EGL_EXT_compositor */
590
591 #ifndef EGL_EXT_create_context_robustness
592 #define EGL_EXT_create_context_robustness 1
593 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
594 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
595 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
596 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
597 #endif /* EGL_EXT_create_context_robustness */
598
599 #ifndef EGL_EXT_device_base
600 #define EGL_EXT_device_base 1
601 typedef void *EGLDeviceEXT;
602 #define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0)
603 #define EGL_BAD_DEVICE_EXT 0x322B
604 #define EGL_DEVICE_EXT 0x322C
605 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT d evice, EGLint attribute, EGLAttrib *value);
606 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
607 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
608 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dp y, EGLint attribute, EGLAttrib *value);
609 #ifdef EGL_EGLEXT_PROTOTYPES
610 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLi nt attribute, EGLAttrib *value);
611 EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGL int name);
612 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceE XT *devices, EGLint *num_devices);
613 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint a ttribute, EGLAttrib *value);
614 #endif
615 #endif /* EGL_EXT_device_base */
616
617 #ifndef EGL_EXT_device_drm
618 #define EGL_EXT_device_drm 1
619 #define EGL_DRM_DEVICE_FILE_EXT 0x3233
620 #endif /* EGL_EXT_device_drm */
621
622 #ifndef EGL_EXT_device_enumeration
623 #define EGL_EXT_device_enumeration 1
624 #endif /* EGL_EXT_device_enumeration */
625
626 #ifndef EGL_EXT_device_openwf
627 #define EGL_EXT_device_openwf 1
628 #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
629 #endif /* EGL_EXT_device_openwf */
630
631 #ifndef EGL_EXT_device_query
632 #define EGL_EXT_device_query 1
633 #endif /* EGL_EXT_device_query */
634
635 #ifndef EGL_EXT_gl_colorspace_bt2020_linear
636 #define EGL_EXT_gl_colorspace_bt2020_linear 1
637 #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
638 #endif /* EGL_EXT_gl_colorspace_bt2020_linear */
639
640 #ifndef EGL_EXT_gl_colorspace_bt2020_pq
641 #define EGL_EXT_gl_colorspace_bt2020_pq 1
642 #define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
643 #endif /* EGL_EXT_gl_colorspace_bt2020_pq */
644
645 #ifndef EGL_EXT_gl_colorspace_scrgb_linear
646 #define EGL_EXT_gl_colorspace_scrgb_linear 1
647 #define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
648 #endif /* EGL_EXT_gl_colorspace_scrgb_linear */
649
650 #ifndef EGL_EXT_image_dma_buf_import
651 #define EGL_EXT_image_dma_buf_import 1
652 #define EGL_LINUX_DMA_BUF_EXT 0x3270
653 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
654 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
655 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
656 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
657 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
658 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
659 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
660 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
661 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
662 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
663 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
664 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
665 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
666 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
667 #define EGL_ITU_REC601_EXT 0x327F
668 #define EGL_ITU_REC709_EXT 0x3280
669 #define EGL_ITU_REC2020_EXT 0x3281
670 #define EGL_YUV_FULL_RANGE_EXT 0x3282
671 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
672 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
673 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
674 #endif /* EGL_EXT_image_dma_buf_import */
675
676 #ifndef EGL_EXT_image_dma_buf_import_modifiers
677 #define EGL_EXT_image_dma_buf_import_modifiers 1
678 #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
679 #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
680 #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
681 #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
682 #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
683 #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
684 #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
685 #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
686 #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
687 #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
688 #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
689 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dp y, EGLint max_formats, EGLint *formats, EGLint *num_formats);
690 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *e xternal_only, EGLint *num_modifiers);
691 #ifdef EGL_EGLEXT_PROTOTYPES
692 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint m ax_formats, EGLint *formats, EGLint *num_formats);
693 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_onl y, EGLint *num_modifiers);
694 #endif
695 #endif /* EGL_EXT_image_dma_buf_import_modifiers */
696
697 #ifndef EGL_EXT_multiview_window
698 #define EGL_EXT_multiview_window 1
699 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
700 #endif /* EGL_EXT_multiview_window */
701
702 #ifndef EGL_EXT_output_base
703 #define EGL_EXT_output_base 1
704 typedef void *EGLOutputLayerEXT;
705 typedef void *EGLOutputPortEXT;
706 #define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0)
707 #define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0)
708 #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
709 #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
710 #define EGL_SWAP_INTERVAL_EXT 0x322F
711 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLi nt *num_layers);
712 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, c onst EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint * num_ports);
713 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy , EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
714 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDispla y dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
715 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDispl ay dpy, EGLOutputLayerEXT layer, EGLint name);
716 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
717 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
718 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDispla y dpy, EGLOutputPortEXT port, EGLint name);
719 #ifdef EGL_EGLEXT_PROTOTYPES
720 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAt trib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_lay ers);
721 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAtt rib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
722 EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutput LayerEXT layer, EGLint attribute, EGLAttrib value);
723 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLO utputLayerEXT layer, EGLint attribute, EGLAttrib *value);
724 EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGL OutputLayerEXT layer, EGLint name);
725 EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputP ortEXT port, EGLint attribute, EGLAttrib value);
726 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOu tputPortEXT port, EGLint attribute, EGLAttrib *value);
727 EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLO utputPortEXT port, EGLint name);
728 #endif
729 #endif /* EGL_EXT_output_base */
730
731 #ifndef EGL_EXT_output_drm
732 #define EGL_EXT_output_drm 1
733 #define EGL_DRM_CRTC_EXT 0x3234
734 #define EGL_DRM_PLANE_EXT 0x3235
735 #define EGL_DRM_CONNECTOR_EXT 0x3236
736 #endif /* EGL_EXT_output_drm */
737
738 #ifndef EGL_EXT_output_openwf
739 #define EGL_EXT_output_openwf 1
740 #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
741 #define EGL_OPENWF_PORT_ID_EXT 0x3239
742 #endif /* EGL_EXT_output_openwf */
743
744 #ifndef EGL_EXT_pixel_format_float
745 #define EGL_EXT_pixel_format_float 1
746 #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
747 #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
748 #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
749 #endif /* EGL_EXT_pixel_format_float */
750
751 #ifndef EGL_EXT_platform_base
752 #define EGL_EXT_platform_base 1
753 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platf orm, void *native_display, const EGLint *attrib_list);
754 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLD isplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
755 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLD isplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
756 #ifdef EGL_EGLEXT_PROTOTYPES
757 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void * native_display, const EGLint *attrib_list);
758 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
759 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
760 #endif
761 #endif /* EGL_EXT_platform_base */
762
763 #ifndef EGL_EXT_platform_device
764 #define EGL_EXT_platform_device 1
765 #define EGL_PLATFORM_DEVICE_EXT 0x313F
766 #endif /* EGL_EXT_platform_device */
767
768 #ifndef EGL_EXT_platform_wayland
769 #define EGL_EXT_platform_wayland 1
770 #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
771 #endif /* EGL_EXT_platform_wayland */
772
773 #ifndef EGL_EXT_platform_x11
774 #define EGL_EXT_platform_x11 1
775 #define EGL_PLATFORM_X11_EXT 0x31D5
776 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
777 #endif /* EGL_EXT_platform_x11 */
778
779 #ifndef EGL_EXT_protected_content
780 #define EGL_EXT_protected_content 1
781 #define EGL_PROTECTED_CONTENT_EXT 0x32C0
782 #endif /* EGL_EXT_protected_content */
783
784 #ifndef EGL_EXT_protected_surface
785 #define EGL_EXT_protected_surface 1
786 #endif /* EGL_EXT_protected_surface */
787
788 #ifndef EGL_EXT_stream_consumer_egloutput
789 #define EGL_EXT_stream_consumer_egloutput 1
790 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
791 #ifdef EGL_EGLEXT_PROTOTYPES
792 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStr eamKHR stream, EGLOutputLayerEXT layer);
793 #endif
794 #endif /* EGL_EXT_stream_consumer_egloutput */
795
796 #ifndef EGL_EXT_surface_CTA861_3_metadata
797 #define EGL_EXT_surface_CTA861_3_metadata 1
798 #define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
799 #define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
800 #endif /* EGL_EXT_surface_CTA861_3_metadata */
801
802 #ifndef EGL_EXT_surface_SMPTE2086_metadata
803 #define EGL_EXT_surface_SMPTE2086_metadata 1
804 #define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
805 #define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
806 #define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
807 #define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
808 #define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
809 #define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
810 #define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
811 #define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
812 #define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
813 #define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
814 #define EGL_METADATA_SCALING_EXT 50000
815 #endif /* EGL_EXT_surface_SMPTE2086_metadata */
816
817 #ifndef EGL_EXT_swap_buffers_with_damage
818 #define EGL_EXT_swap_buffers_with_damage 1
819 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
820 #ifdef EGL_EGLEXT_PROTOTYPES
821 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSu rface surface, EGLint *rects, EGLint n_rects);
822 #endif
823 #endif /* EGL_EXT_swap_buffers_with_damage */
824
825 #ifndef EGL_EXT_yuv_surface
826 #define EGL_EXT_yuv_surface 1
827 #define EGL_YUV_ORDER_EXT 0x3301
828 #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
829 #define EGL_YUV_SUBSAMPLE_EXT 0x3312
830 #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
831 #define EGL_YUV_CSC_STANDARD_EXT 0x330A
832 #define EGL_YUV_PLANE_BPP_EXT 0x331A
833 #define EGL_YUV_BUFFER_EXT 0x3300
834 #define EGL_YUV_ORDER_YUV_EXT 0x3302
835 #define EGL_YUV_ORDER_YVU_EXT 0x3303
836 #define EGL_YUV_ORDER_YUYV_EXT 0x3304
837 #define EGL_YUV_ORDER_UYVY_EXT 0x3305
838 #define EGL_YUV_ORDER_YVYU_EXT 0x3306
839 #define EGL_YUV_ORDER_VYUY_EXT 0x3307
840 #define EGL_YUV_ORDER_AYUV_EXT 0x3308
841 #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
842 #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
843 #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
844 #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
845 #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
846 #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
847 #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
848 #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
849 #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
850 #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
851 #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
852 #endif /* EGL_EXT_yuv_surface */
853
854 #ifndef EGL_HI_clientpixmap
855 #define EGL_HI_clientpixmap 1
856 struct EGLClientPixmapHI {
857 void *pData;
858 EGLint iWidth;
859 EGLint iHeight;
860 EGLint iStride;
861 };
862 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
863 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dp y, EGLConfig config, struct EGLClientPixmapHI *pixmap);
864 #ifdef EGL_EGLEXT_PROTOTYPES
865 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfi g config, struct EGLClientPixmapHI *pixmap);
866 #endif
867 #endif /* EGL_HI_clientpixmap */
868
869 #ifndef EGL_HI_colorformats
870 #define EGL_HI_colorformats 1
871 #define EGL_COLOR_FORMAT_HI 0x8F70
872 #define EGL_COLOR_RGB_HI 0x8F71
873 #define EGL_COLOR_RGBA_HI 0x8F72
874 #define EGL_COLOR_ARGB_HI 0x8F73
875 #endif /* EGL_HI_colorformats */
165 876
166 #ifndef EGL_IMG_context_priority 877 #ifndef EGL_IMG_context_priority
167 #define EGL_IMG_context_priority 1 878 #define EGL_IMG_context_priority 1
168 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG» » 0x3100 879 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
169 #define EGL_CONTEXT_PRIORITY_HIGH_IMG» » 0x3101 880 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
170 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG»» 0x3102 881 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
171 #define EGL_CONTEXT_PRIORITY_LOW_IMG» » 0x3103 882 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
172 #endif 883 #endif /* EGL_IMG_context_priority */
173 884
174 #ifndef EGL_KHR_lock_surface2 885 #ifndef EGL_IMG_image_plane_attribs
175 #define EGL_KHR_lock_surface2 1 886 #define EGL_IMG_image_plane_attribs 1
176 #define EGL_BITMAP_PIXEL_SIZE_KHR» » 0x3110 887 #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
177 #endif 888 #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
889 #endif /* EGL_IMG_image_plane_attribs */
890
891 #ifndef EGL_MESA_drm_image
892 #define EGL_MESA_drm_image 1
893 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
894 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
895 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
896 #define EGL_DRM_BUFFER_MESA 0x31D3
897 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
898 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
899 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
900 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
901 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
902 #ifdef EGL_EGLEXT_PROTOTYPES
903 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLi nt *attrib_list);
904 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
905 #endif
906 #endif /* EGL_MESA_drm_image */
907
908 #ifndef EGL_MESA_image_dma_buf_export
909 #define EGL_MESA_image_dma_buf_export 1
910 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDispl ay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers );
911 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dp y, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
912 #ifdef EGL_EGLEXT_PROTOTYPES
913 EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGL ImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
914 EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImage KHR image, int *fds, EGLint *strides, EGLint *offsets);
915 #endif
916 #endif /* EGL_MESA_image_dma_buf_export */
917
918 #ifndef EGL_MESA_platform_gbm
919 #define EGL_MESA_platform_gbm 1
920 #define EGL_PLATFORM_GBM_MESA 0x31D7
921 #endif /* EGL_MESA_platform_gbm */
922
923 #ifndef EGL_MESA_platform_surfaceless
924 #define EGL_MESA_platform_surfaceless 1
925 #define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
926 #endif /* EGL_MESA_platform_surfaceless */
927
928 #ifndef EGL_NOK_swap_region
929 #define EGL_NOK_swap_region 1
930 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy , EGLSurface surface, EGLint numRects, const EGLint *rects);
931 #ifdef EGL_EGLEXT_PROTOTYPES
932 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurfac e surface, EGLint numRects, const EGLint *rects);
933 #endif
934 #endif /* EGL_NOK_swap_region */
935
936 #ifndef EGL_NOK_swap_region2
937 #define EGL_NOK_swap_region2 1
938 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dp y, EGLSurface surface, EGLint numRects, const EGLint *rects);
939 #ifdef EGL_EGLEXT_PROTOTYPES
940 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurfa ce surface, EGLint numRects, const EGLint *rects);
941 #endif
942 #endif /* EGL_NOK_swap_region2 */
943
944 #ifndef EGL_NOK_texture_from_pixmap
945 #define EGL_NOK_texture_from_pixmap 1
946 #define EGL_Y_INVERTED_NOK 0x307F
947 #endif /* EGL_NOK_texture_from_pixmap */
948
949 #ifndef EGL_NV_3dvision_surface
950 #define EGL_NV_3dvision_surface 1
951 #define EGL_AUTO_STEREO_NV 0x3136
952 #endif /* EGL_NV_3dvision_surface */
178 953
179 #ifndef EGL_NV_coverage_sample 954 #ifndef EGL_NV_coverage_sample
180 #define EGL_NV_coverage_sample 1 955 #define EGL_NV_coverage_sample 1
181 #define EGL_COVERAGE_BUFFERS_NV»» » 0x30E0 956 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
182 #define EGL_COVERAGE_SAMPLES_NV»» » 0x30E1 957 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
183 #endif 958 #endif /* EGL_NV_coverage_sample */
959
960 #ifndef EGL_NV_coverage_sample_resolve
961 #define EGL_NV_coverage_sample_resolve 1
962 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
963 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
964 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
965 #endif /* EGL_NV_coverage_sample_resolve */
966
967 #ifndef EGL_NV_cuda_event
968 #define EGL_NV_cuda_event 1
969 #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
970 #define EGL_SYNC_CUDA_EVENT_NV 0x323C
971 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
972 #endif /* EGL_NV_cuda_event */
184 973
185 #ifndef EGL_NV_depth_nonlinear 974 #ifndef EGL_NV_depth_nonlinear
186 #define EGL_NV_depth_nonlinear 1 975 #define EGL_NV_depth_nonlinear 1
187 #define EGL_DEPTH_ENCODING_NV» » » 0x30E2 976 #define EGL_DEPTH_ENCODING_NV 0x30E2
188 #define EGL_DEPTH_ENCODING_NONE_NV 0 977 #define EGL_DEPTH_ENCODING_NONE_NV 0
189 #define EGL_DEPTH_ENCODING_NONLINEAR_NV»» 0x30E3 978 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
190 #endif 979 #endif /* EGL_NV_depth_nonlinear */
191 980
192 #if KHRONOS_SUPPORT_INT64 /* EGLTimeNV requires 64-bit uint support */ 981 #ifndef EGL_NV_device_cuda
982 #define EGL_NV_device_cuda 1
983 #define EGL_CUDA_DEVICE_NV 0x323A
984 #endif /* EGL_NV_device_cuda */
985
986 #ifndef EGL_NV_native_query
987 #define EGL_NV_native_query 1
988 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy , EGLNativeDisplayType *display_id);
989 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
990 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
991 #ifdef EGL_EGLEXT_PROTOTYPES
992 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNative DisplayType *display_id);
993 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
994 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
995 #endif
996 #endif /* EGL_NV_native_query */
997
998 #ifndef EGL_NV_post_convert_rounding
999 #define EGL_NV_post_convert_rounding 1
1000 #endif /* EGL_NV_post_convert_rounding */
1001
1002 #ifndef EGL_NV_post_sub_buffer
1003 #define EGL_NV_post_sub_buffer 1
1004 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
1005 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGL Surface surface, EGLint x, EGLint y, EGLint width, EGLint height);
1006 #ifdef EGL_EGLEXT_PROTOTYPES
1007 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface sur face, EGLint x, EGLint y, EGLint width, EGLint height);
1008 #endif
1009 #endif /* EGL_NV_post_sub_buffer */
1010
1011 #ifndef EGL_NV_robustness_video_memory_purge
1012 #define EGL_NV_robustness_video_memory_purge 1
1013 #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
1014 #endif /* EGL_NV_robustness_video_memory_purge */
1015
1016 #ifndef EGL_NV_stream_consumer_gltexture_yuv
1017 #define EGL_NV_stream_consumer_gltexture_yuv 1
1018 #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
1019 #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
1020 #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
1021 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVP ROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
1022 #ifdef EGL_EGLEXT_PROTOTYPES
1023 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDi splay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
1024 #endif
1025 #endif /* EGL_NV_stream_consumer_gltexture_yuv */
1026
1027 #ifndef EGL_NV_stream_cross_display
1028 #define EGL_NV_stream_cross_display 1
1029 #define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
1030 #endif /* EGL_NV_stream_cross_display */
1031
1032 #ifndef EGL_NV_stream_cross_object
1033 #define EGL_NV_stream_cross_object 1
1034 #define EGL_STREAM_CROSS_OBJECT_NV 0x334D
1035 #endif /* EGL_NV_stream_cross_object */
1036
1037 #ifndef EGL_NV_stream_cross_partition
1038 #define EGL_NV_stream_cross_partition 1
1039 #define EGL_STREAM_CROSS_PARTITION_NV 0x323F
1040 #endif /* EGL_NV_stream_cross_partition */
1041
1042 #ifndef EGL_NV_stream_cross_process
1043 #define EGL_NV_stream_cross_process 1
1044 #define EGL_STREAM_CROSS_PROCESS_NV 0x3245
1045 #endif /* EGL_NV_stream_cross_process */
1046
1047 #ifndef EGL_NV_stream_cross_system
1048 #define EGL_NV_stream_cross_system 1
1049 #define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
1050 #endif /* EGL_NV_stream_cross_system */
1051
1052 #ifndef EGL_NV_stream_fifo_next
1053 #define EGL_NV_stream_fifo_next 1
1054 #define EGL_PENDING_FRAME_NV 0x3329
1055 #define EGL_STREAM_TIME_PENDING_NV 0x332A
1056 #endif /* EGL_NV_stream_fifo_next */
1057
1058 #ifndef EGL_NV_stream_fifo_synchronous
1059 #define EGL_NV_stream_fifo_synchronous 1
1060 #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
1061 #endif /* EGL_NV_stream_fifo_synchronous */
1062
1063 #ifndef EGL_NV_stream_frame_limits
1064 #define EGL_NV_stream_frame_limits 1
1065 #define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
1066 #define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
1067 #endif /* EGL_NV_stream_frame_limits */
1068
1069 #ifndef EGL_NV_stream_metadata
1070 #define EGL_NV_stream_metadata 1
1071 #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
1072 #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
1073 #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
1074 #define EGL_PRODUCER_METADATA_NV 0x3253
1075 #define EGL_CONSUMER_METADATA_NV 0x3254
1076 #define EGL_PENDING_METADATA_NV 0x3328
1077 #define EGL_METADATA0_SIZE_NV 0x3255
1078 #define EGL_METADATA1_SIZE_NV 0x3256
1079 #define EGL_METADATA2_SIZE_NV 0x3257
1080 #define EGL_METADATA3_SIZE_NV 0x3258
1081 #define EGL_METADATA0_TYPE_NV 0x3259
1082 #define EGL_METADATA1_TYPE_NV 0x325A
1083 #define EGL_METADATA2_TYPE_NV 0x325B
1084 #define EGL_METADATA3_TYPE_NV 0x325C
1085 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy , EGLint attribute, EGLAttrib *value);
1086 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
1087 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dp y, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
1088 #ifdef EGL_EGLEXT_PROTOTYPES
1089 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint at tribute, EGLAttrib *value);
1090 EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamK HR stream, EGLint n, EGLint offset, EGLint size, const void *data);
1091 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStrea mKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
1092 #endif
1093 #endif /* EGL_NV_stream_metadata */
1094
1095 #ifndef EGL_NV_stream_remote
1096 #define EGL_NV_stream_remote 1
1097 #define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
1098 #define EGL_STREAM_TYPE_NV 0x3241
1099 #define EGL_STREAM_PROTOCOL_NV 0x3242
1100 #define EGL_STREAM_ENDPOINT_NV 0x3243
1101 #define EGL_STREAM_LOCAL_NV 0x3244
1102 #define EGL_STREAM_PRODUCER_NV 0x3247
1103 #define EGL_STREAM_CONSUMER_NV 0x3248
1104 #define EGL_STREAM_PROTOCOL_FD_NV 0x3246
1105 #endif /* EGL_NV_stream_remote */
1106
1107 #ifndef EGL_NV_stream_reset
1108 #define EGL_NV_stream_reset 1
1109 #define EGL_SUPPORT_RESET_NV 0x3334
1110 #define EGL_SUPPORT_REUSE_NV 0x3335
1111 typedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLSt reamKHR stream);
1112 #ifdef EGL_EGLEXT_PROTOTYPES
1113 EGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR str eam);
1114 #endif
1115 #endif /* EGL_NV_stream_reset */
1116
1117 #ifndef EGL_NV_stream_socket
1118 #define EGL_NV_stream_socket 1
1119 #define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
1120 #define EGL_SOCKET_HANDLE_NV 0x324C
1121 #define EGL_SOCKET_TYPE_NV 0x324D
1122 #endif /* EGL_NV_stream_socket */
1123
1124 #ifndef EGL_NV_stream_socket_inet
1125 #define EGL_NV_stream_socket_inet 1
1126 #define EGL_SOCKET_TYPE_INET_NV 0x324F
1127 #endif /* EGL_NV_stream_socket_inet */
1128
1129 #ifndef EGL_NV_stream_socket_unix
1130 #define EGL_NV_stream_socket_unix 1
1131 #define EGL_SOCKET_TYPE_UNIX_NV 0x324E
1132 #endif /* EGL_NV_stream_socket_unix */
1133
1134 #ifndef EGL_NV_stream_sync
1135 #define EGL_NV_stream_sync 1
1136 #define EGL_SYNC_NEW_FRAME_NV 0x321F
1137 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
1138 #ifdef EGL_EGLEXT_PROTOTYPES
1139 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKH R stream, EGLenum type, const EGLint *attrib_list);
1140 #endif
1141 #endif /* EGL_NV_stream_sync */
1142
193 #ifndef EGL_NV_sync 1143 #ifndef EGL_NV_sync
194 #define EGL_NV_sync 1 1144 #define EGL_NV_sync 1
195 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV» 0x30E6 1145 typedef void *EGLSyncNV;
196 #define EGL_SYNC_STATUS_NV» » » 0x30E7
197 #define EGL_SIGNALED_NV»» » » 0x30E8
198 #define EGL_UNSIGNALED_NV» » » 0x30E9
199 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV» » 0x0001
200 #define EGL_FOREVER_NV» » » » 0xFFFFFFFFFFFFFFFFull
201 #define EGL_ALREADY_SIGNALED_NV»» » 0x30EA
202 #define EGL_TIMEOUT_EXPIRED_NV» » » 0x30EB
203 #define EGL_CONDITION_SATISFIED_NV» » 0x30EC
204 #define EGL_SYNC_TYPE_NV» » » 0x30ED
205 #define EGL_SYNC_CONDITION_NV» » » 0x30EE
206 #define EGL_SYNC_FENCE_NV» » » 0x30EF
207 #define EGL_NO_SYNC_NV» » » » ((EGLSyncNV)0)
208 typedef void* EGLSyncNV;
209 typedef khronos_utime_nanoseconds_t EGLTimeNV; 1146 typedef khronos_utime_nanoseconds_t EGLTimeNV;
1147 #ifdef KHRONOS_SUPPORT_INT64
1148 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
1149 #define EGL_SYNC_STATUS_NV 0x30E7
1150 #define EGL_SIGNALED_NV 0x30E8
1151 #define EGL_UNSIGNALED_NV 0x30E9
1152 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
1153 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
1154 #define EGL_ALREADY_SIGNALED_NV 0x30EA
1155 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
1156 #define EGL_CONDITION_SATISFIED_NV 0x30EC
1157 #define EGL_SYNC_TYPE_NV 0x30ED
1158 #define EGL_SYNC_CONDITION_NV 0x30EE
1159 #define EGL_SYNC_FENCE_NV 0x30EF
1160 #define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0)
1161 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EG Lenum condition, const EGLint *attrib_list);
1162 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
1163 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
1164 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
1165 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenu m mode);
1166 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGL int attribute, EGLint *value);
210 #ifdef EGL_EGLEXT_PROTOTYPES 1167 #ifdef EGL_EGLEXT_PROTOTYPES
211 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condi tion, const EGLint *attrib_list); 1168 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condi tion, const EGLint *attrib_list);
212 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync); 1169 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
213 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync); 1170 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
214 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGL TimeNV timeout); 1171 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGL TimeNV timeout);
215 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode); 1172 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
216 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribu te, EGLint *value); 1173 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribu te, EGLint *value);
217 #endif /* EGL_EGLEXT_PROTOTYPES */ 1174 #endif
218 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EG Lenum condition, const EGLint *attrib_list); 1175 #endif /* KHRONOS_SUPPORT_INT64 */
219 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync); 1176 #endif /* EGL_NV_sync */
220 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync); 1177
221 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
222 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenu m mode);
223 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGL int attribute, EGLint *value);
224 #endif
225 #endif
226
227 #if KHRONOS_SUPPORT_INT64 /* Dependent on EGL_KHR_reusable_sync which requires 64-bit uint support */
228 #ifndef EGL_KHR_fence_sync
229 #define EGL_KHR_fence_sync 1
230 /* Reuses most tokens and entry points from EGL_KHR_reusable_sync */
231 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR» 0x30F0
232 #define EGL_SYNC_CONDITION_KHR» » » 0x30F8
233 #define EGL_SYNC_FENCE_KHR» » » 0x30F9
234 #endif
235 #endif
236
237 #ifndef EGL_HI_clientpixmap
238 #define EGL_HI_clientpixmap 1
239
240 /* Surface Attribute */
241 #define EGL_CLIENT_PIXMAP_POINTER_HI» » 0x8F74
242 /*
243 * Structure representing a client pixmap
244 * (pixmap's data is in client-space memory).
245 */
246 struct EGLClientPixmapHI
247 {
248 » void*» » pData;
249 » EGLint» » iWidth;
250 » EGLint» » iHeight;
251 » EGLint» » iStride;
252 };
253 #ifdef EGL_EGLEXT_PROTOTYPES
254 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI(EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap);
255 #endif /* EGL_EGLEXT_PROTOTYPES */
256 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dp y, EGLConfig config, struct EGLClientPixmapHI* pixmap);
257 #endif» /* EGL_HI_clientpixmap */
258
259 #ifndef EGL_HI_colorformats
260 #define EGL_HI_colorformats 1
261 /* Config Attribute */
262 #define EGL_COLOR_FORMAT_HI» » » 0x8F70
263 /* Color Formats */
264 #define EGL_COLOR_RGB_HI» » » 0x8F71
265 #define EGL_COLOR_RGBA_HI» » » 0x8F72
266 #define EGL_COLOR_ARGB_HI» » » 0x8F73
267 #endif /* EGL_HI_colorformats */
268
269 #ifndef EGL_MESA_drm_image
270 #define EGL_MESA_drm_image 1
271 #define EGL_DRM_BUFFER_FORMAT_MESA» » 0x31D0» /* CreateDRMImageMES A attribute */
272 #define EGL_DRM_BUFFER_USE_MESA»» » 0x31D1» /* CreateDRMImageMES A attribute */
273 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA» 0x31D2» /* EGL_IMAGE_FORMAT_ MESA attribute value */
274 #define EGL_DRM_BUFFER_MESA» » » 0x31D3» /* eglCreateImageKHR target */
275 #define EGL_DRM_BUFFER_STRIDE_MESA» » 0x31D4
276 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA»» 0x00000001 /* EGL_DRM_BUFFER_US E_MESA bits */
277 #define EGL_DRM_BUFFER_USE_SHARE_MESA» » 0x00000002 /* EGL_DRM_BUFFER_US E_MESA bits */
278 #ifdef EGL_EGLEXT_PROTOTYPES
279 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLi nt *attrib_list);
280 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
281 #endif /* EGL_EGLEXT_PROTOTYPES */
282 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
283 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
284 #endif
285
286 #ifndef EGL_NV_post_sub_buffer
287 #define EGL_NV_post_sub_buffer 1
288 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV» 0x30BE
289 #ifdef EGL_EGLEXT_PROTOTYPES
290 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface sur face, EGLint x, EGLint y, EGLint width, EGLint height);
291 #endif /* EGL_EGLEXT_PROTOTYPES */
292 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGL Surface surface, EGLint x, EGLint y, EGLint width, EGLint height);
293 #endif
294
295 #ifndef EGL_ANGLE_query_surface_pointer
296 #define EGL_ANGLE_query_surface_pointer 1
297 #ifdef EGL_EGLEXT_PROTOTYPES
298 EGLAPI EGLBoolean eglQuerySurfacePointerANGLE(EGLDisplay dpy, EGLSurface surface , EGLint attribute, void **value);
299 #endif
300 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
301 #endif
302
303 #ifndef EGL_ANGLE_software_display
304 #define EGL_ANGLE_software_display 1
305 #define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1)
306 #endif
307
308 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
309 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
310 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE» 0x3200
311 #endif
312
313 #ifndef EGL_NV_coverage_sample_resolve
314 #define EGL_NV_coverage_sample_resolve 1
315 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV» » 0x3131
316 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV» 0x3132
317 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV» 0x3133
318 #endif
319
320 #if KHRONOS_SUPPORT_INT64 /* EGLuint64NV requires 64-bit uint support */
321 #ifndef EGL_NV_system_time 1178 #ifndef EGL_NV_system_time
322 #define EGL_NV_system_time 1 1179 #define EGL_NV_system_time 1
323 typedef khronos_utime_nanoseconds_t EGLuint64NV; 1180 typedef khronos_utime_nanoseconds_t EGLuint64NV;
324 #ifdef EGL_EGLEXT_PROTOTYPES 1181 #ifdef KHRONOS_SUPPORT_INT64
325 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV(void);
326 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV(void);
327 #endif /* EGL_EGLEXT_PROTOTYPES */
328 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void); 1182 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
329 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void); 1183 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
330 #endif 1184 #ifdef EGL_EGLEXT_PROTOTYPES
331 #endif 1185 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
332 1186 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
333 #if KHRONOS_SUPPORT_INT64 /* EGLuint64KHR requires 64-bit uint support */ 1187 #endif
334 #ifndef EGL_KHR_stream 1188 #endif /* KHRONOS_SUPPORT_INT64 */
335 #define EGL_KHR_stream 1 1189 #endif /* EGL_NV_system_time */
336 typedef void* EGLStreamKHR; 1190
337 typedef khronos_uint64_t EGLuint64KHR; 1191 #ifndef EGL_TIZEN_image_native_buffer
338 #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0) 1192 #define EGL_TIZEN_image_native_buffer 1
339 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210 1193 #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
340 #define EGL_PRODUCER_FRAME_KHR 0x3212 1194 #endif /* EGL_TIZEN_image_native_buffer */
341 #define EGL_CONSUMER_FRAME_KHR 0x3213 1195
342 #define EGL_STREAM_STATE_KHR 0x3214 1196 #ifndef EGL_TIZEN_image_native_surface
343 #define EGL_STREAM_STATE_CREATED_KHR 0x3215 1197 #define EGL_TIZEN_image_native_surface 1
344 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216 1198 #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
345 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217 1199 #endif /* EGL_TIZEN_image_native_surface */
346 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218 1200
347 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219 1201 /* Chromium-specific Added support for EGL_EXT_image_flush_external extension */
348 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
349 #define EGL_BAD_STREAM_KHR 0x321B
350 #define EGL_BAD_STATE_KHR 0x321C
351 #ifdef EGL_EGLEXT_PROTOTYPES
352 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR(EGLDisplay dpy, const EGLint *attrib_list);
353 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR(EGLDisplay dpy, EGLStreamKHR s tream);
354 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR(EGLDisplay dpy, EGLStreamKHR st ream, EGLenum attribute, EGLint value);
355 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR(EGLDisplay dpy, EGLStreamKHR str eam, EGLenum attribute, EGLint *value);
356 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
357 #endif /* EGL_EGLEXT_PROTOTYPES */
358 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC)(EGLDisplay dpy, co nst EGLint *attrib_list);
359 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC)(EGLDisplay dpy, EGL StreamKHR stream);
360 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLS treamKHR stream, EGLenum attribute, EGLint value);
361 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC)(EGLDisplay dpy, EGLSt reamKHR stream, EGLenum attribute, EGLint *value);
362 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC)(EGLDisplay dpy, EG LStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
363 #endif
364 #endif
365
366 #ifdef EGL_KHR_stream /* Requires KHR_stream extension */
367 #ifndef EGL_KHR_stream_consumer_gltexture
368 #define EGL_KHR_stream_consumer_gltexture 1
369 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
370 #ifdef EGL_EGLEXT_PROTOTYPES
371 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR(EGLDisplay d py, EGLStreamKHR stream);
372 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR(EGLDisplay dpy, EGLStr eamKHR stream);
373 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR(EGLDisplay dpy, EGLStr eamKHR stream);
374 #endif /* EGL_EGLEXT_PROTOTYPES */
375 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC)(E GLDisplay dpy, EGLStreamKHR stream);
376 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
377 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream);
378 #endif
379 #endif
380
381 #ifdef EGL_KHR_stream /* Requires KHR_stream extension */
382 #ifndef EGL_KHR_stream_producer_eglsurface
383 #define EGL_KHR_stream_producer_eglsurface 1
384 #define EGL_STREAM_BIT_KHR 0x0800
385 #ifdef EGL_EGLEXT_PROTOTYPES
386 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
387 #endif /* EGL_EGLEXT_PROTOTYPES */
388 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDi splay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
389 #endif
390 #endif
391
392 #ifdef EGL_KHR_stream /* Requires KHR_stream extension */
393 #ifndef EGL_KHR_stream_producer_aldatalocator
394 #define EGL_KHR_stream_producer_aldatalocator 1
395 #endif
396 #endif
397
398 #ifdef EGL_KHR_stream /* Requires KHR_stream extension */
399 #ifndef EGL_KHR_stream_fifo
400 #define EGL_KHR_stream_fifo 1
401 /* reuse EGLTimeKHR */
402 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
403 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
404 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
405 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
406 #ifdef EGL_EGLEXT_PROTOTYPES
407 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
408 #endif /* EGL_EGLEXT_PROTOTYPES */
409 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC)(EGLDisplay dpy, E GLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
410 #endif
411 #endif
412
413 #ifndef EGL_EXT_create_context_robustness
414 #define EGL_EXT_create_context_robustness 1
415 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
416 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
417 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
418 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
419 #endif
420
421 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
422 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
423 /* reuse EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE */
424 #endif
425
426 #ifndef EGL_KHR_create_context
427 #define EGL_KHR_create_context 1
428 #define EGL_CONTEXT_MAJOR_VERSION_KHR EGL_CONTEXT_CLIENT_V ERSION
429 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
430 #define EGL_CONTEXT_FLAGS_KHR 0x30FC
431 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
432 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
433 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
434 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
435 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
436 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
437 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
438 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
439 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
440 #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
441 #endif
442
443 #ifndef EGL_KHR_surfaceless_context
444 #define EGL_KHR_surfaceless_context 1
445 /* No tokens/entry points, just relaxes an error condition */
446 #endif
447
448 #ifndef EGL_KHR_swap_buffers_with_damage
449 #define EGL_KHR_swap_buffers_with_damage 1
450 typedef EGLBoolean(EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC)(
451 EGLDisplay dpy,
452 EGLSurface surface,
453 EGLint* rects,
454 EGLint n_rects);
455 #ifdef EGL_EGLEXT_PROTOTYPES
456 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR(EGLDisplay dpy,
457 EGLSurface surface,
458 EGLint* rects,
459 EGLint n_rects);
460 #endif
461 #endif /* EGL_KHR_swap_buffers_with_damage */
462
463 #ifdef EGL_KHR_stream /* Requires KHR_stream extension */
464 #ifndef EGL_KHR_stream_cross_process_fd
465 #define EGL_KHR_stream_cross_process_fd 1
466 typedef int EGLNativeFileDescriptorKHR;
467 #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1 ))
468 #ifdef EGL_EGLEXT_PROTOTYPES
469 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR(EGLD isplay dpy, EGLStreamKHR stream);
470 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
471 #endif /* EGL_EGLEXT_PROTOTYPES */
472 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKH RPROC)(EGLDisplay dpy, EGLStreamKHR stream);
473 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC)( EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
474 #endif
475 #endif
476
477 #ifndef EGL_EXT_multiview_window
478 #define EGL_EXT_multiview_window 1
479 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
480 #endif
481
482 #ifndef EGL_KHR_wait_sync
483 #define EGL_KHR_wait_sync 1
484 #ifdef EGL_EGLEXT_PROTOTYPES
485 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
486 #endif /* EGL_EGLEXT_PROTOTYPES */
487 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR s ync, EGLint flags);
488 #endif
489
490 #ifndef EGL_NV_post_convert_rounding
491 #define EGL_NV_post_convert_rounding 1
492 /* No tokens or entry points, just relaxes behavior of SwapBuffers */
493 #endif
494
495 #ifndef EGL_NV_native_query
496 #define EGL_NV_native_query 1
497 #ifdef EGL_EGLEXT_PROTOTYPES
498 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV( EGLDisplay dpy, EGLNative DisplayType* display_id);
499 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV( EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType* window);
500 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV( EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType* pixmap);
501 #endif /* EGL_EGLEXT_PROTOTYPES */
502 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC)(EGLDisplay dpy, EGLNativeDisplayType *display_id);
503 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
504 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
505 #endif
506
507 #ifndef EGL_NV_3dvision_surface
508 #define EGL_NV_3dvision_surface 1
509 #define EGL_AUTO_STEREO_NV 0x3136
510 #endif
511
512 #ifndef EGL_ANDROID_framebuffer_target
513 #define EGL_ANDROID_framebuffer_target 1
514 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
515 #endif
516
517 #ifndef EGL_ANDROID_blob_cache
518 #define EGL_ANDROID_blob_cache 1
519 typedef khronos_ssize_t EGLsizeiANDROID;
520 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
521 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDRO ID keySize, void *value, EGLsizeiANDROID valueSize);
522 #ifdef EGL_EGLEXT_PROTOTYPES
523 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID(EGLDisplay dpy, EGLSetBlobFu ncANDROID set, EGLGetBlobFuncANDROID get);
524 #endif /* EGL_EGLEXT_PROTOTYPES */
525 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC)(EGLDisplay dpy, E GLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
526 #endif
527
528 #ifndef EGL_ANDROID_image_native_buffer
529 #define EGL_ANDROID_image_native_buffer 1
530 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
531 #endif
532
533 #ifndef EGL_ANDROID_native_fence_sync
534 #define EGL_ANDROID_native_fence_sync 1
535 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
536 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
537 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
538 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
539 #ifdef EGL_EGLEXT_PROTOTYPES
540 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID( EGLDisplay dpy, EGLSyncKHR );
541 #endif /* EGL_EGLEXT_PROTOTYPES */
542 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC)(EGLDisplay dpy, EGLSyncKHR);
543 #endif
544
545 #ifndef EGL_ANDROID_recordable
546 #define EGL_ANDROID_recordable 1
547 #define EGL_RECORDABLE_ANDROID 0x3142
548 #endif
549
550 #ifndef EGL_EXT_buffer_age
551 #define EGL_EXT_buffer_age 1
552 #define EGL_BUFFER_AGE_EXT 0x313D
553 #endif
554
555 #ifndef EGL_EXT_image_dma_buf_import
556 #define EGL_EXT_image_dma_buf_import 1
557 #define EGL_LINUX_DMA_BUF_EXT 0x3270
558 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
559 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
560 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
561 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
562 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
563 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
564 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
565 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
566 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
567 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
568 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
569 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
570 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
571 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
572 #define EGL_ITU_REC601_EXT 0x327F
573 #define EGL_ITU_REC709_EXT 0x3280
574 #define EGL_ITU_REC2020_EXT 0x3281
575 #define EGL_YUV_FULL_RANGE_EXT 0x3282
576 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
577 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
578 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
579 #endif
580
581 #ifndef EGL_EXT_image_dma_buf_import_modifiers
582 #define EGL_EXT_image_dma_buf_import_modifiers
583 #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
584 #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
585 #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
586 #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
587 #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
588 #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
589 #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
590 #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
591 #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
592 #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
593 #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
594 #endif /* EGL_EXT_image_dma_buf_import_modifiers */
595
596 #ifndef EGL_ARM_implicit_external_sync
597 #define EGL_ARM_implicit_external_sync 1
598 #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
599 #endif /* EGL_ARM_implicit_external_sync */
600
601 #ifndef EGL_EXT_image_flush_external 1202 #ifndef EGL_EXT_image_flush_external
602 #define EGL_EXT_image_flush_external 1 1203 #define EGL_EXT_image_flush_external 1
603 #ifdef EGL_EGLEXT_PROTOTYPES 1204 #ifdef EGL_EGLEXT_PROTOTYPES
604 EGLAPI EGLBoolean EGLAPIENTRY 1205 EGLAPI EGLBoolean EGLAPIENTRY
605 eglImageFlushExternalEXT(EGLDisplay dpy, 1206 eglImageFlushExternalEXT(EGLDisplay dpy,
606 EGLImageKHR image, 1207 EGLImageKHR image,
607 const EGLint* attrib_list); 1208 const EGLint* attrib_list);
608 #else 1209 #else
609 typedef EGLBoolean(EGLAPIENTRYP PFNGLEGLIMAGEFLUSHEXTERNALEXT)( 1210 typedef EGLBoolean(EGLAPIENTRYP PFNGLEGLIMAGEFLUSHEXTERNALEXT)(
610 EGLDisplay dpy, 1211 EGLDisplay dpy,
611 EGLImageKHR image, 1212 EGLImageKHR image,
612 const EGLint* attrib_list); 1213 const EGLint* attrib_list);
613 #endif 1214 #endif
614 #endif 1215 #endif
615 1216
616 #ifdef __cplusplus 1217 #ifdef __cplusplus
617 } 1218 }
618 #endif 1219 #endif
619 1220
620 #endif /* __eglext_h_ */ 1221 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698