Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

eglext.h 41KB

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