eglext.h 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050
  1. #ifndef __eglext_h_
  2. #define __eglext_h_ 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2013-2016 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: 32432 $ on $Date: 2016-02-09 23:01:07 -0800 (Tue, 09 Feb 2016) $
  35. */
  36. #include <EGL/eglplatform.h>
  37. #define EGL_EGLEXT_VERSION 20160209
  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_debug
  91. #define EGL_KHR_debug 1
  92. typedef void *EGLLabelKHR;
  93. typedef void *EGLObjectKHR;
  94. typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
  95. #define EGL_OBJECT_THREAD_KHR 0x33B0
  96. #define EGL_OBJECT_DISPLAY_KHR 0x33B1
  97. #define EGL_OBJECT_CONTEXT_KHR 0x33B2
  98. #define EGL_OBJECT_SURFACE_KHR 0x33B3
  99. #define EGL_OBJECT_IMAGE_KHR 0x33B4
  100. #define EGL_OBJECT_SYNC_KHR 0x33B5
  101. #define EGL_OBJECT_STREAM_KHR 0x33B6
  102. #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
  103. #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
  104. #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
  105. #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
  106. #define EGL_DEBUG_CALLBACK_KHR 0x33B8
  107. typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
  108. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
  109. typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
  110. #ifdef EGL_EGLEXT_PROTOTYPES
  111. EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
  112. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
  113. EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
  114. #endif
  115. #endif /* EGL_KHR_debug */
  116. #ifndef EGL_KHR_fence_sync
  117. #define EGL_KHR_fence_sync 1
  118. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  119. #ifdef KHRONOS_SUPPORT_INT64
  120. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
  121. #define EGL_SYNC_CONDITION_KHR 0x30F8
  122. #define EGL_SYNC_FENCE_KHR 0x30F9
  123. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  124. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  125. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  126. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  127. #ifdef EGL_EGLEXT_PROTOTYPES
  128. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  129. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
  130. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  131. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  132. #endif
  133. #endif /* KHRONOS_SUPPORT_INT64 */
  134. #endif /* EGL_KHR_fence_sync */
  135. #ifndef EGL_KHR_get_all_proc_addresses
  136. #define EGL_KHR_get_all_proc_addresses 1
  137. #endif /* EGL_KHR_get_all_proc_addresses */
  138. #ifndef EGL_KHR_gl_colorspace
  139. #define EGL_KHR_gl_colorspace 1
  140. #define EGL_GL_COLORSPACE_KHR 0x309D
  141. #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
  142. #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
  143. #endif /* EGL_KHR_gl_colorspace */
  144. #ifndef EGL_KHR_gl_renderbuffer_image
  145. #define EGL_KHR_gl_renderbuffer_image 1
  146. #define EGL_GL_RENDERBUFFER_KHR 0x30B9
  147. #endif /* EGL_KHR_gl_renderbuffer_image */
  148. #ifndef EGL_KHR_gl_texture_2D_image
  149. #define EGL_KHR_gl_texture_2D_image 1
  150. #define EGL_GL_TEXTURE_2D_KHR 0x30B1
  151. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
  152. #endif /* EGL_KHR_gl_texture_2D_image */
  153. #ifndef EGL_KHR_gl_texture_3D_image
  154. #define EGL_KHR_gl_texture_3D_image 1
  155. #define EGL_GL_TEXTURE_3D_KHR 0x30B2
  156. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
  157. #endif /* EGL_KHR_gl_texture_3D_image */
  158. #ifndef EGL_KHR_gl_texture_cubemap_image
  159. #define EGL_KHR_gl_texture_cubemap_image 1
  160. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
  161. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
  162. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
  163. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
  164. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
  165. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
  166. #endif /* EGL_KHR_gl_texture_cubemap_image */
  167. #ifndef EGL_KHR_image
  168. #define EGL_KHR_image 1
  169. typedef void *EGLImageKHR;
  170. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  171. #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
  172. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  173. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  174. #ifdef EGL_EGLEXT_PROTOTYPES
  175. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  176. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
  177. #endif
  178. #endif /* EGL_KHR_image */
  179. #ifndef EGL_KHR_image_base
  180. #define EGL_KHR_image_base 1
  181. #define EGL_IMAGE_PRESERVED_KHR 0x30D2
  182. #endif /* EGL_KHR_image_base */
  183. #ifndef EGL_KHR_image_pixmap
  184. #define EGL_KHR_image_pixmap 1
  185. #endif /* EGL_KHR_image_pixmap */
  186. #ifndef EGL_KHR_lock_surface
  187. #define EGL_KHR_lock_surface 1
  188. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  189. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  190. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  191. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  192. #define EGL_MATCH_FORMAT_KHR 0x3043
  193. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  194. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  195. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  196. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  197. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  198. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  199. #define EGL_BITMAP_POINTER_KHR 0x30C6
  200. #define EGL_BITMAP_PITCH_KHR 0x30C7
  201. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  202. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  203. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  204. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  205. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  206. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  207. #define EGL_LOWER_LEFT_KHR 0x30CE
  208. #define EGL_UPPER_LEFT_KHR 0x30CF
  209. typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
  210. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
  211. #ifdef EGL_EGLEXT_PROTOTYPES
  212. EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
  213. EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
  214. #endif
  215. #endif /* EGL_KHR_lock_surface */
  216. #ifndef EGL_KHR_lock_surface2
  217. #define EGL_KHR_lock_surface2 1
  218. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  219. #endif /* EGL_KHR_lock_surface2 */
  220. #ifndef EGL_KHR_lock_surface3
  221. #define EGL_KHR_lock_surface3 1
  222. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
  223. #ifdef EGL_EGLEXT_PROTOTYPES
  224. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
  225. #endif
  226. #endif /* EGL_KHR_lock_surface3 */
  227. #ifndef EGL_KHR_partial_update
  228. #define EGL_KHR_partial_update 1
  229. #define EGL_BUFFER_AGE_KHR 0x313D
  230. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  231. #ifdef EGL_EGLEXT_PROTOTYPES
  232. EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  233. #endif
  234. #endif /* EGL_KHR_partial_update */
  235. #ifndef EGL_KHR_platform_android
  236. #define EGL_KHR_platform_android 1
  237. #define EGL_PLATFORM_ANDROID_KHR 0x3141
  238. #endif /* EGL_KHR_platform_android */
  239. #ifndef EGL_KHR_platform_gbm
  240. #define EGL_KHR_platform_gbm 1
  241. #define EGL_PLATFORM_GBM_KHR 0x31D7
  242. #endif /* EGL_KHR_platform_gbm */
  243. #ifndef EGL_KHR_platform_wayland
  244. #define EGL_KHR_platform_wayland 1
  245. #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
  246. #endif /* EGL_KHR_platform_wayland */
  247. #ifndef EGL_KHR_platform_x11
  248. #define EGL_KHR_platform_x11 1
  249. #define EGL_PLATFORM_X11_KHR 0x31D5
  250. #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
  251. #endif /* EGL_KHR_platform_x11 */
  252. #ifndef EGL_KHR_reusable_sync
  253. #define EGL_KHR_reusable_sync 1
  254. #ifdef KHRONOS_SUPPORT_INT64
  255. #define EGL_SYNC_STATUS_KHR 0x30F1
  256. #define EGL_SIGNALED_KHR 0x30F2
  257. #define EGL_UNSIGNALED_KHR 0x30F3
  258. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  259. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  260. #define EGL_SYNC_TYPE_KHR 0x30F7
  261. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  262. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
  263. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
  264. #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
  265. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  266. #ifdef EGL_EGLEXT_PROTOTYPES
  267. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  268. #endif
  269. #endif /* KHRONOS_SUPPORT_INT64 */
  270. #endif /* EGL_KHR_reusable_sync */
  271. #ifndef EGL_KHR_stream
  272. #define EGL_KHR_stream 1
  273. typedef void *EGLStreamKHR;
  274. typedef khronos_uint64_t EGLuint64KHR;
  275. #ifdef KHRONOS_SUPPORT_INT64
  276. #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0)
  277. #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
  278. #define EGL_PRODUCER_FRAME_KHR 0x3212
  279. #define EGL_CONSUMER_FRAME_KHR 0x3213
  280. #define EGL_STREAM_STATE_KHR 0x3214
  281. #define EGL_STREAM_STATE_CREATED_KHR 0x3215
  282. #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
  283. #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
  284. #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
  285. #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
  286. #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
  287. #define EGL_BAD_STREAM_KHR 0x321B
  288. #define EGL_BAD_STATE_KHR 0x321C
  289. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  290. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  291. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  292. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
  293. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
  294. #ifdef EGL_EGLEXT_PROTOTYPES
  295. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
  296. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
  297. EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  298. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
  299. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
  300. #endif
  301. #endif /* KHRONOS_SUPPORT_INT64 */
  302. #endif /* EGL_KHR_stream */
  303. #ifndef EGL_KHR_stream_consumer_gltexture
  304. #define EGL_KHR_stream_consumer_gltexture 1
  305. #ifdef EGL_KHR_stream
  306. #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
  307. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  308. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  309. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  310. #ifdef EGL_EGLEXT_PROTOTYPES
  311. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
  312. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
  313. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
  314. #endif
  315. #endif /* EGL_KHR_stream */
  316. #endif /* EGL_KHR_stream_consumer_gltexture */
  317. #ifndef EGL_KHR_stream_cross_process_fd
  318. #define EGL_KHR_stream_cross_process_fd 1
  319. typedef int EGLNativeFileDescriptorKHR;
  320. #ifdef EGL_KHR_stream
  321. #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1))
  322. typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  323. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  324. #ifdef EGL_EGLEXT_PROTOTYPES
  325. EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
  326. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  327. #endif
  328. #endif /* EGL_KHR_stream */
  329. #endif /* EGL_KHR_stream_cross_process_fd */
  330. #ifndef EGL_KHR_stream_fifo
  331. #define EGL_KHR_stream_fifo 1
  332. #ifdef EGL_KHR_stream
  333. #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
  334. #define EGL_STREAM_TIME_NOW_KHR 0x31FD
  335. #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
  336. #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
  337. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
  338. #ifdef EGL_EGLEXT_PROTOTYPES
  339. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
  340. #endif
  341. #endif /* EGL_KHR_stream */
  342. #endif /* EGL_KHR_stream_fifo */
  343. #ifndef EGL_KHR_stream_producer_aldatalocator
  344. #define EGL_KHR_stream_producer_aldatalocator 1
  345. #ifdef EGL_KHR_stream
  346. #endif /* EGL_KHR_stream */
  347. #endif /* EGL_KHR_stream_producer_aldatalocator */
  348. #ifndef EGL_KHR_stream_producer_eglsurface
  349. #define EGL_KHR_stream_producer_eglsurface 1
  350. #ifdef EGL_KHR_stream
  351. #define EGL_STREAM_BIT_KHR 0x0800
  352. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
  353. #ifdef EGL_EGLEXT_PROTOTYPES
  354. EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
  355. #endif
  356. #endif /* EGL_KHR_stream */
  357. #endif /* EGL_KHR_stream_producer_eglsurface */
  358. #ifndef EGL_KHR_surfaceless_context
  359. #define EGL_KHR_surfaceless_context 1
  360. #endif /* EGL_KHR_surfaceless_context */
  361. #ifndef EGL_KHR_swap_buffers_with_damage
  362. #define EGL_KHR_swap_buffers_with_damage 1
  363. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  364. #ifdef EGL_EGLEXT_PROTOTYPES
  365. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  366. #endif
  367. #endif /* EGL_KHR_swap_buffers_with_damage */
  368. #ifndef EGL_KHR_vg_parent_image
  369. #define EGL_KHR_vg_parent_image 1
  370. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
  371. #endif /* EGL_KHR_vg_parent_image */
  372. #ifndef EGL_KHR_wait_sync
  373. #define EGL_KHR_wait_sync 1
  374. typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  375. #ifdef EGL_EGLEXT_PROTOTYPES
  376. EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  377. #endif
  378. #endif /* EGL_KHR_wait_sync */
  379. #ifndef EGL_ANDROID_blob_cache
  380. #define EGL_ANDROID_blob_cache 1
  381. typedef khronos_ssize_t EGLsizeiANDROID;
  382. typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
  383. typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
  384. typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  385. #ifdef EGL_EGLEXT_PROTOTYPES
  386. EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  387. #endif
  388. #endif /* EGL_ANDROID_blob_cache */
  389. #ifndef EGL_ANDROID_framebuffer_target
  390. #define EGL_ANDROID_framebuffer_target 1
  391. #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
  392. #endif /* EGL_ANDROID_framebuffer_target */
  393. #ifndef EGL_ANDROID_image_native_buffer
  394. #define EGL_ANDROID_image_native_buffer 1
  395. #define EGL_NATIVE_BUFFER_ANDROID 0x3140
  396. #endif /* EGL_ANDROID_image_native_buffer */
  397. #ifndef EGL_ANDROID_native_fence_sync
  398. #define EGL_ANDROID_native_fence_sync 1
  399. #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
  400. #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
  401. #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
  402. #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
  403. typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  404. #ifdef EGL_EGLEXT_PROTOTYPES
  405. EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
  406. #endif
  407. #endif /* EGL_ANDROID_native_fence_sync */
  408. #ifndef EGL_ANDROID_recordable
  409. #define EGL_ANDROID_recordable 1
  410. #define EGL_RECORDABLE_ANDROID 0x3142
  411. #endif /* EGL_ANDROID_recordable */
  412. #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
  413. #define EGL_ANGLE_d3d_share_handle_client_buffer 1
  414. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  415. #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
  416. #ifndef EGL_ANGLE_device_d3d
  417. #define EGL_ANGLE_device_d3d 1
  418. #define EGL_D3D9_DEVICE_ANGLE 0x33A0
  419. #define EGL_D3D11_DEVICE_ANGLE 0x33A1
  420. #endif /* EGL_ANGLE_device_d3d */
  421. #ifndef EGL_ANGLE_keyed_mutex
  422. #define EGL_ANGLE_keyed_mutex 1
  423. #define EGL_DXGI_KEYED_MUTEX_ANGLE 0x33A2
  424. #endif /* EGL_ANGLE_keyed_mutex */
  425. #ifndef EGL_ANGLE_query_surface_pointer
  426. #define EGL_ANGLE_query_surface_pointer 1
  427. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  428. #ifdef EGL_EGLEXT_PROTOTYPES
  429. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  430. #endif
  431. #endif /* EGL_ANGLE_query_surface_pointer */
  432. #ifndef EGL_ANGLE_software_display
  433. #define EGL_ANGLE_software_display 1
  434. #define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1)
  435. #endif /* EGL_ANGLE_software_display */
  436. #ifndef EGL_ANGLE_direct3d_display
  437. #define EGL_ANGLE_direct3d_display 1
  438. #define EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE ((EGLNativeDisplayType)-2)
  439. #define EGL_D3D11_ONLY_DISPLAY_ANGLE ((EGLNativeDisplayType)-3)
  440. #endif /* EGL_ANGLE_direct3d_display */
  441. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  442. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  443. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  444. #ifndef EGL_ANGLE_direct_composition
  445. #define EGL_ANGLE_direct_composition 1
  446. #define EGL_DIRECT_COMPOSITION_ANGLE 0x33A5
  447. #endif /* EGL_ANGLE_direct_composition */
  448. #ifndef EGL_ANGLE_platform_angle
  449. #define EGL_ANGLE_platform_angle 1
  450. #define EGL_PLATFORM_ANGLE_ANGLE 0x3202
  451. #define EGL_PLATFORM_ANGLE_TYPE_ANGLE 0x3203
  452. #define EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE 0x3204
  453. #define EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE 0x3205
  454. #define EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE 0x3206
  455. #endif /* EGL_ANGLE_platform_angle */
  456. #ifndef EGL_ANGLE_platform_angle_d3d
  457. #define EGL_ANGLE_platform_angle_d3d 1
  458. #define EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3207
  459. #define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3208
  460. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE 0x3209
  461. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE 0x320A
  462. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_WARP_ANGLE 0x320B
  463. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_REFERENCE_ANGLE 0x320C
  464. #define EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE 0x320F
  465. #endif /* EGL_ANGLE_platform_angle_d3d */
  466. #ifndef EGL_ANGLE_platform_angle_opengl
  467. #define EGL_ANGLE_platform_angle_opengl 1
  468. #define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE 0x320D
  469. #define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE 0x320E
  470. #endif /* EGL_ANGLE_platform_angle_opengl */
  471. #ifndef EGL_ANGLE_window_fixed_size
  472. #define EGL_ANGLE_window_fixed_size 1
  473. #define EGL_FIXED_SIZE_ANGLE 0x3201
  474. #endif /* EGL_ANGLE_window_fixed_size */
  475. #ifndef EGL_ANGLE_x11_visual
  476. #define EGL_ANGLE_x11_visual
  477. #define EGL_X11_VISUAL_ID_ANGLE 0x33A3
  478. #endif /* EGL_ANGLE_x11_visual */
  479. #ifndef EGL_ANGLE_flexible_surface_compatibility
  480. #define EGL_ANGLE_flexible_surface_compatibility 1
  481. #define EGL_FLEXIBLE_SURFACE_COMPATIBILITY_SUPPORTED_ANGLE 0x33A6
  482. #endif /* EGL_ANGLE_flexible_surface_compatibility */
  483. #ifndef EGL_ANGLE_surface_orientation
  484. #define EGL_ANGLE_surface_orientation
  485. #define EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE 0x33A7
  486. #define EGL_SURFACE_ORIENTATION_ANGLE 0x33A8
  487. #define EGL_SURFACE_ORIENTATION_INVERT_X_ANGLE 0x0001
  488. #define EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE 0x0002
  489. #endif /* EGL_ANGLE_surface_orientation */
  490. #ifndef EGL_ANGLE_experimental_present_path
  491. #define EGL_ANGLE_experimental_present_path
  492. #define EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE 0x33A4
  493. #define EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE 0x33A9
  494. #define EGL_EXPERIMENTAL_PRESENT_PATH_COPY_ANGLE 0x33AA
  495. #endif /* EGL_ANGLE_experimental_present_path */
  496. #ifndef EGL_ANGLE_stream_producer_d3d_texture_nv12
  497. #define EGL_ANGLE_stream_producer_d3d_texture_nv12
  498. #define EGL_D3D_TEXTURE_SUBRESOURCE_ID_ANGLE 0x3AAB
  499. typedef EGLBoolean(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERD3DTEXTURENV12ANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  500. typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMPOSTD3DTEXTURENV12ANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
  501. #ifdef EGL_EGLEXT_PROTOTYPES
  502. EGLAPI EGLBoolean EGLAPIENTRY eglCreateStreamProducerD3DTextureNV12ANGLE(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  503. EGLAPI EGLBoolean EGLAPIENTRY eglStreamPostD3DTextureNV12ANGLE(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
  504. #endif
  505. #endif /* EGL_ANGLE_stream_producer_d3d_texture_nv12 */
  506. #ifndef EGL_ARM_pixmap_multisample_discard
  507. #define EGL_ARM_pixmap_multisample_discard 1
  508. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  509. #endif /* EGL_ARM_pixmap_multisample_discard */
  510. #ifndef EGL_EXT_buffer_age
  511. #define EGL_EXT_buffer_age 1
  512. #define EGL_BUFFER_AGE_EXT 0x313D
  513. #endif /* EGL_EXT_buffer_age */
  514. #ifndef EGL_EXT_client_extensions
  515. #define EGL_EXT_client_extensions 1
  516. #endif /* EGL_EXT_client_extensions */
  517. #ifndef EGL_EXT_create_context_robustness
  518. #define EGL_EXT_create_context_robustness 1
  519. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  520. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  521. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  522. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  523. #endif /* EGL_EXT_create_context_robustness */
  524. #ifndef EGL_EXT_device_base
  525. #define EGL_EXT_device_base 1
  526. typedef void *EGLDeviceEXT;
  527. #define EGL_NO_DEVICE_EXT ((EGLDeviceEXT)(0))
  528. #define EGL_BAD_DEVICE_EXT 0x322B
  529. #define EGL_DEVICE_EXT 0x322C
  530. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  531. typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  532. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  533. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  534. #ifdef EGL_EGLEXT_PROTOTYPES
  535. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  536. EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
  537. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  538. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  539. #endif
  540. #endif /* EGL_EXT_device_base */
  541. #ifndef EGL_ANGLE_device_creation
  542. #define EGL_ANGLE_device_creation 1
  543. typedef EGLDeviceEXT (EGLAPIENTRYP PFNEGLCREATEDEVICEANGLEPROC) (EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
  544. typedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASEDEVICEANGLEPROC) (EGLDeviceEXT device);
  545. #ifdef EGL_EGLEXT_PROTOTYPES
  546. EGLAPI EGLDeviceEXT EGLAPIENTRY eglCreateDeviceANGLE (EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
  547. EGLAPI EGLBoolean EGLAPIENTRY eglReleaseDeviceANGLE (EGLDeviceEXT device);
  548. #endif
  549. #endif /* EGL_ANGLE_device_creation */
  550. #ifndef EGL_EXT_device_drm
  551. #define EGL_EXT_device_drm 1
  552. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  553. #endif /* EGL_EXT_device_drm */
  554. #ifndef EGL_EXT_device_enumeration
  555. #define EGL_EXT_device_enumeration 1
  556. #endif /* EGL_EXT_device_enumeration */
  557. #ifndef EGL_EXT_device_openwf
  558. #define EGL_EXT_device_openwf 1
  559. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  560. #endif /* EGL_EXT_device_openwf */
  561. #ifndef EGL_EXT_device_query
  562. #define EGL_EXT_device_query 1
  563. #endif /* EGL_EXT_device_query */
  564. #ifndef EGL_EXT_image_dma_buf_import
  565. #define EGL_EXT_image_dma_buf_import 1
  566. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  567. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  568. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  569. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  570. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  571. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  572. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  573. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  574. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  575. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  576. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  577. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  578. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  579. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  580. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  581. #define EGL_ITU_REC601_EXT 0x327F
  582. #define EGL_ITU_REC709_EXT 0x3280
  583. #define EGL_ITU_REC2020_EXT 0x3281
  584. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  585. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  586. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  587. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  588. #endif /* EGL_EXT_image_dma_buf_import */
  589. #ifndef EGL_EXT_multiview_window
  590. #define EGL_EXT_multiview_window 1
  591. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  592. #endif /* EGL_EXT_multiview_window */
  593. #ifndef EGL_EXT_output_base
  594. #define EGL_EXT_output_base 1
  595. typedef void *EGLOutputLayerEXT;
  596. typedef void *EGLOutputPortEXT;
  597. #define EGL_NO_OUTPUT_LAYER_EXT ((EGLOutputLayerEXT)0)
  598. #define EGL_NO_OUTPUT_PORT_EXT ((EGLOutputPortEXT)0)
  599. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  600. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  601. #define EGL_SWAP_INTERVAL_EXT 0x322F
  602. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  603. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  604. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  605. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  606. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  607. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  608. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  609. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  610. #ifdef EGL_EGLEXT_PROTOTYPES
  611. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  612. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  613. EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  614. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  615. EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  616. EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  617. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  618. EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  619. #endif
  620. #endif /* EGL_EXT_output_base */
  621. #ifndef EGL_EXT_output_drm
  622. #define EGL_EXT_output_drm 1
  623. #define EGL_DRM_CRTC_EXT 0x3234
  624. #define EGL_DRM_PLANE_EXT 0x3235
  625. #define EGL_DRM_CONNECTOR_EXT 0x3236
  626. #endif /* EGL_EXT_output_drm */
  627. #ifndef EGL_EXT_output_openwf
  628. #define EGL_EXT_output_openwf 1
  629. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  630. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  631. #endif /* EGL_EXT_output_openwf */
  632. #ifndef EGL_EXT_platform_base
  633. #define EGL_EXT_platform_base 1
  634. typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
  635. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  636. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  637. #ifdef EGL_EGLEXT_PROTOTYPES
  638. EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
  639. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  640. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  641. #endif
  642. #endif /* EGL_EXT_platform_base */
  643. #ifndef EGL_EXT_platform_device
  644. #define EGL_EXT_platform_device 1
  645. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  646. #endif /* EGL_EXT_platform_device */
  647. #ifndef EGL_EXT_platform_wayland
  648. #define EGL_EXT_platform_wayland 1
  649. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  650. #endif /* EGL_EXT_platform_wayland */
  651. #ifndef EGL_EXT_platform_x11
  652. #define EGL_EXT_platform_x11 1
  653. #define EGL_PLATFORM_X11_EXT 0x31D5
  654. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  655. #endif /* EGL_EXT_platform_x11 */
  656. #ifndef EGL_EXT_protected_surface
  657. #define EGL_EXT_protected_surface 1
  658. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  659. #endif /* EGL_EXT_protected_surface */
  660. #ifndef EGL_EXT_stream_consumer_egloutput
  661. #define EGL_EXT_stream_consumer_egloutput 1
  662. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  663. #ifdef EGL_EGLEXT_PROTOTYPES
  664. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  665. #endif
  666. #endif /* EGL_EXT_stream_consumer_egloutput */
  667. #ifndef EGL_EXT_swap_buffers_with_damage
  668. #define EGL_EXT_swap_buffers_with_damage 1
  669. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  670. #ifdef EGL_EGLEXT_PROTOTYPES
  671. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  672. #endif
  673. #endif /* EGL_EXT_swap_buffers_with_damage */
  674. #ifndef EGL_EXT_yuv_surface
  675. #define EGL_EXT_yuv_surface 1
  676. #define EGL_YUV_ORDER_EXT 0x3301
  677. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  678. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  679. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  680. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  681. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  682. #define EGL_YUV_BUFFER_EXT 0x3300
  683. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  684. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  685. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  686. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  687. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  688. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  689. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  690. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  691. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  692. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  693. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  694. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  695. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  696. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  697. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  698. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  699. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  700. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  701. #endif /* EGL_EXT_yuv_surface */
  702. #ifndef EGL_HI_clientpixmap
  703. #define EGL_HI_clientpixmap 1
  704. struct EGLClientPixmapHI {
  705. void *pData;
  706. EGLint iWidth;
  707. EGLint iHeight;
  708. EGLint iStride;
  709. };
  710. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  711. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  712. #ifdef EGL_EGLEXT_PROTOTYPES
  713. EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  714. #endif
  715. #endif /* EGL_HI_clientpixmap */
  716. #ifndef EGL_HI_colorformats
  717. #define EGL_HI_colorformats 1
  718. #define EGL_COLOR_FORMAT_HI 0x8F70
  719. #define EGL_COLOR_RGB_HI 0x8F71
  720. #define EGL_COLOR_RGBA_HI 0x8F72
  721. #define EGL_COLOR_ARGB_HI 0x8F73
  722. #endif /* EGL_HI_colorformats */
  723. #ifndef EGL_IMG_context_priority
  724. #define EGL_IMG_context_priority 1
  725. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  726. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  727. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  728. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  729. #endif /* EGL_IMG_context_priority */
  730. #ifndef EGL_IMG_image_plane_attribs
  731. #define EGL_IMG_image_plane_attribs 1
  732. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  733. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  734. #endif /* EGL_IMG_image_plane_attribs */
  735. #ifndef EGL_MESA_drm_image
  736. #define EGL_MESA_drm_image 1
  737. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  738. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  739. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  740. #define EGL_DRM_BUFFER_MESA 0x31D3
  741. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  742. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  743. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  744. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  745. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  746. #ifdef EGL_EGLEXT_PROTOTYPES
  747. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
  748. EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  749. #endif
  750. #endif /* EGL_MESA_drm_image */
  751. #ifndef EGL_MESA_image_dma_buf_export
  752. #define EGL_MESA_image_dma_buf_export 1
  753. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  754. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  755. #ifdef EGL_EGLEXT_PROTOTYPES
  756. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  757. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  758. #endif
  759. #endif /* EGL_MESA_image_dma_buf_export */
  760. #ifndef EGL_MESA_platform_gbm
  761. #define EGL_MESA_platform_gbm 1
  762. #define EGL_PLATFORM_GBM_MESA 0x31D7
  763. #endif /* EGL_MESA_platform_gbm */
  764. #ifndef EGL_NOK_swap_region
  765. #define EGL_NOK_swap_region 1
  766. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  767. #ifdef EGL_EGLEXT_PROTOTYPES
  768. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  769. #endif
  770. #endif /* EGL_NOK_swap_region */
  771. #ifndef EGL_NOK_swap_region2
  772. #define EGL_NOK_swap_region2 1
  773. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  774. #ifdef EGL_EGLEXT_PROTOTYPES
  775. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  776. #endif
  777. #endif /* EGL_NOK_swap_region2 */
  778. #ifndef EGL_NOK_texture_from_pixmap
  779. #define EGL_NOK_texture_from_pixmap 1
  780. #define EGL_Y_INVERTED_NOK 0x307F
  781. #endif /* EGL_NOK_texture_from_pixmap */
  782. #ifndef EGL_NV_3dvision_surface
  783. #define EGL_NV_3dvision_surface 1
  784. #define EGL_AUTO_STEREO_NV 0x3136
  785. #endif /* EGL_NV_3dvision_surface */
  786. #ifndef EGL_NV_coverage_sample
  787. #define EGL_NV_coverage_sample 1
  788. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  789. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  790. #endif /* EGL_NV_coverage_sample */
  791. #ifndef EGL_NV_coverage_sample_resolve
  792. #define EGL_NV_coverage_sample_resolve 1
  793. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  794. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  795. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  796. #endif /* EGL_NV_coverage_sample_resolve */
  797. #ifndef EGL_NV_cuda_event
  798. #define EGL_NV_cuda_event 1
  799. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  800. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  801. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  802. #endif /* EGL_NV_cuda_event */
  803. #ifndef EGL_NV_depth_nonlinear
  804. #define EGL_NV_depth_nonlinear 1
  805. #define EGL_DEPTH_ENCODING_NV 0x30E2
  806. #define EGL_DEPTH_ENCODING_NONE_NV 0
  807. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  808. #endif /* EGL_NV_depth_nonlinear */
  809. #ifndef EGL_NV_device_cuda
  810. #define EGL_NV_device_cuda 1
  811. #define EGL_CUDA_DEVICE_NV 0x323A
  812. #endif /* EGL_NV_device_cuda */
  813. #ifndef EGL_NV_native_query
  814. #define EGL_NV_native_query 1
  815. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  816. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  817. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  818. #ifdef EGL_EGLEXT_PROTOTYPES
  819. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  820. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  821. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  822. #endif
  823. #endif /* EGL_NV_native_query */
  824. #ifndef EGL_NV_post_convert_rounding
  825. #define EGL_NV_post_convert_rounding 1
  826. #endif /* EGL_NV_post_convert_rounding */
  827. #ifndef EGL_NV_post_sub_buffer
  828. #define EGL_NV_post_sub_buffer 1
  829. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  830. typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  831. #ifdef EGL_EGLEXT_PROTOTYPES
  832. EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  833. #endif
  834. #endif /* EGL_NV_post_sub_buffer */
  835. #ifndef EGL_NV_stream_consumer_gltexture_yuv
  836. #define EGL_NV_stream_consumer_gltexture_yuv 1
  837. #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
  838. #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
  839. #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
  840. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  841. #ifdef EGL_EGLEXT_PROTOTYPES
  842. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  843. #endif
  844. #endif /* EGL_NV_stream_consumer_gltexture_yuv */
  845. #ifndef EGL_NV_stream_metadata
  846. #define EGL_NV_stream_metadata 1
  847. #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  848. #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  849. #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  850. #define EGL_PRODUCER_METADATA_NV 0x3253
  851. #define EGL_CONSUMER_METADATA_NV 0x3254
  852. #define EGL_PENDING_METADATA_NV 0x3328
  853. #define EGL_METADATA0_SIZE_NV 0x3255
  854. #define EGL_METADATA1_SIZE_NV 0x3256
  855. #define EGL_METADATA2_SIZE_NV 0x3257
  856. #define EGL_METADATA3_SIZE_NV 0x3258
  857. #define EGL_METADATA0_TYPE_NV 0x3259
  858. #define EGL_METADATA1_TYPE_NV 0x325A
  859. #define EGL_METADATA2_TYPE_NV 0x325B
  860. #define EGL_METADATA3_TYPE_NV 0x325C
  861. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  862. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  863. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  864. #ifdef EGL_EGLEXT_PROTOTYPES
  865. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  866. EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  867. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  868. #endif
  869. #endif /* EGL_NV_stream_metadata */
  870. #ifndef EGL_NV_stream_sync
  871. #define EGL_NV_stream_sync 1
  872. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  873. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  874. #ifdef EGL_EGLEXT_PROTOTYPES
  875. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  876. #endif
  877. #endif /* EGL_NV_stream_sync */
  878. #ifndef EGL_NV_sync
  879. #define EGL_NV_sync 1
  880. typedef void *EGLSyncNV;
  881. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  882. #ifdef KHRONOS_SUPPORT_INT64
  883. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  884. #define EGL_SYNC_STATUS_NV 0x30E7
  885. #define EGL_SIGNALED_NV 0x30E8
  886. #define EGL_UNSIGNALED_NV 0x30E9
  887. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  888. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
  889. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  890. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  891. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  892. #define EGL_SYNC_TYPE_NV 0x30ED
  893. #define EGL_SYNC_CONDITION_NV 0x30EE
  894. #define EGL_SYNC_FENCE_NV 0x30EF
  895. #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
  896. typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  897. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  898. typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
  899. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  900. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  901. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
  902. #ifdef EGL_EGLEXT_PROTOTYPES
  903. EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  904. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
  905. EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
  906. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  907. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
  908. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
  909. #endif
  910. #endif /* KHRONOS_SUPPORT_INT64 */
  911. #endif /* EGL_NV_sync */
  912. #ifndef EGL_NV_system_time
  913. #define EGL_NV_system_time 1
  914. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  915. #ifdef KHRONOS_SUPPORT_INT64
  916. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  917. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
  918. #ifdef EGL_EGLEXT_PROTOTYPES
  919. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
  920. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
  921. #endif
  922. #endif /* KHRONOS_SUPPORT_INT64 */
  923. #endif /* EGL_NV_system_time */
  924. #ifndef EGL_TIZEN_image_native_buffer
  925. #define EGL_TIZEN_image_native_buffer 1
  926. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  927. #endif /* EGL_TIZEN_image_native_buffer */
  928. #ifndef EGL_TIZEN_image_native_surface
  929. #define EGL_TIZEN_image_native_surface 1
  930. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  931. #endif /* EGL_TIZEN_image_native_surface */
  932. #ifdef __cplusplus
  933. }
  934. #endif
  935. #endif