eglext.h 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  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_d3d_texture_client_buffer
  426. #define EGL_ANGLE_d3d_texture_client_buffer 1
  427. #define EGL_D3D_TEXTURE_ANGLE 0x33A3
  428. #endif /* EGL_ANGLE_d3d_texture_client_buffer */
  429. #ifndef EGL_ANGLE_query_surface_pointer
  430. #define EGL_ANGLE_query_surface_pointer 1
  431. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  432. #ifdef EGL_EGLEXT_PROTOTYPES
  433. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  434. #endif
  435. #endif /* EGL_ANGLE_query_surface_pointer */
  436. #ifndef EGL_ANGLE_software_display
  437. #define EGL_ANGLE_software_display 1
  438. #define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1)
  439. #endif /* EGL_ANGLE_software_display */
  440. #ifndef EGL_ANGLE_direct3d_display
  441. #define EGL_ANGLE_direct3d_display 1
  442. #define EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE ((EGLNativeDisplayType)-2)
  443. #define EGL_D3D11_ONLY_DISPLAY_ANGLE ((EGLNativeDisplayType)-3)
  444. #endif /* EGL_ANGLE_direct3d_display */
  445. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  446. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  447. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  448. #ifndef EGL_ANGLE_surface_d3d_render_to_back_buffer
  449. #define EGL_ANGLE_surface_d3d_render_to_back_buffer 1
  450. #define EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER 0x320B
  451. #define EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER 0x320C
  452. #endif /* EGL_ANGLE_surface_d3d_render_to_back_buffer */
  453. #ifndef EGL_ANGLE_direct_composition
  454. #define EGL_ANGLE_direct_composition 1
  455. #define EGL_DIRECT_COMPOSITION_ANGLE 0x33A5
  456. #endif /* EGL_ANGLE_direct_composition */
  457. #ifndef EGL_ANGLE_platform_angle
  458. #define EGL_ANGLE_platform_angle 1
  459. #define EGL_PLATFORM_ANGLE_ANGLE 0x3202
  460. #define EGL_PLATFORM_ANGLE_TYPE_ANGLE 0x3203
  461. #define EGL_PLATFORM_ANGLE_MAX_VERSION_MAJOR_ANGLE 0x3204
  462. #define EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE 0x3205
  463. #define EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE 0x3206
  464. #endif /* EGL_ANGLE_platform_angle */
  465. #ifndef EGL_ANGLE_platform_angle_d3d
  466. #define EGL_ANGLE_platform_angle_d3d 1
  467. #define EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3207
  468. #define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3208
  469. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE 0x3209
  470. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_HARDWARE_ANGLE 0x320A
  471. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_WARP_ANGLE 0x320B
  472. #define EGL_PLATFORM_ANGLE_DEVICE_TYPE_REFERENCE_ANGLE 0x320C
  473. #define EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE 0x320F
  474. #endif /* EGL_ANGLE_platform_angle_d3d */
  475. #ifndef EGL_ANGLE_platform_angle_opengl
  476. #define EGL_ANGLE_platform_angle_opengl 1
  477. #define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE 0x320D
  478. #define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE 0x320E
  479. #endif /* EGL_ANGLE_platform_angle_opengl */
  480. #ifndef EGL_ANGLE_platform_angle_null
  481. #define EGL_ANGLE_platform_angle_null 1
  482. #define EGL_PLATFORM_ANGLE_TYPE_NULL_ANGLE 0x33AE
  483. #endif /* EGL_ANGLE_platform_angle_null */
  484. #ifndef EGL_ANGLE_window_fixed_size
  485. #define EGL_ANGLE_window_fixed_size 1
  486. #define EGL_FIXED_SIZE_ANGLE 0x3201
  487. #endif /* EGL_ANGLE_window_fixed_size */
  488. #ifndef EGL_ANGLE_x11_visual
  489. #define EGL_ANGLE_x11_visual
  490. #define EGL_X11_VISUAL_ID_ANGLE 0x33A3
  491. #endif /* EGL_ANGLE_x11_visual */
  492. #ifndef EGL_ANGLE_flexible_surface_compatibility
  493. #define EGL_ANGLE_flexible_surface_compatibility 1
  494. #define EGL_FLEXIBLE_SURFACE_COMPATIBILITY_SUPPORTED_ANGLE 0x33A6
  495. #endif /* EGL_ANGLE_flexible_surface_compatibility */
  496. #ifndef EGL_ANGLE_surface_orientation
  497. #define EGL_ANGLE_surface_orientation
  498. #define EGL_OPTIMAL_SURFACE_ORIENTATION_ANGLE 0x33A7
  499. #define EGL_SURFACE_ORIENTATION_ANGLE 0x33A8
  500. #define EGL_SURFACE_ORIENTATION_INVERT_X_ANGLE 0x0001
  501. #define EGL_SURFACE_ORIENTATION_INVERT_Y_ANGLE 0x0002
  502. #endif /* EGL_ANGLE_surface_orientation */
  503. #ifndef EGL_ANGLE_experimental_present_path
  504. #define EGL_ANGLE_experimental_present_path
  505. #define EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE 0x33A4
  506. #define EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE 0x33A9
  507. #define EGL_EXPERIMENTAL_PRESENT_PATH_COPY_ANGLE 0x33AA
  508. #endif /* EGL_ANGLE_experimental_present_path */
  509. #ifndef EGL_ANGLE_stream_producer_d3d_texture_nv12
  510. #define EGL_ANGLE_stream_producer_d3d_texture_nv12
  511. #define EGL_D3D_TEXTURE_SUBRESOURCE_ID_ANGLE 0x33AB
  512. typedef EGLBoolean(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERD3DTEXTURENV12ANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  513. typedef EGLBoolean(EGLAPIENTRYP PFNEGLSTREAMPOSTD3DTEXTURENV12ANGLEPROC)(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
  514. #ifdef EGL_EGLEXT_PROTOTYPES
  515. EGLAPI EGLBoolean EGLAPIENTRY eglCreateStreamProducerD3DTextureNV12ANGLE(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  516. EGLAPI EGLBoolean EGLAPIENTRY eglStreamPostD3DTextureNV12ANGLE(EGLDisplay dpy, EGLStreamKHR stream, void *texture, const EGLAttrib *attrib_list);
  517. #endif
  518. #endif /* EGL_ANGLE_stream_producer_d3d_texture_nv12 */
  519. #ifndef EGL_ANGLE_create_context_webgl_compatibility
  520. #define EGL_ANGLE_create_context_webgl_compatibility 1
  521. #define EGL_CONTEXT_WEBGL_COMPATIBILITY_ANGLE 0x3AAC
  522. #endif /* EGL_ANGLE_create_context_webgl_compatibility */
  523. #ifndef EGL_CHROMIUM_create_context_bind_generates_resource
  524. #define EGL_CHROMIUM_create_context_bind_generates_resource 1
  525. #define EGL_CONTEXT_BIND_GENERATES_RESOURCE_CHROMIUM 0x3AAD
  526. #endif /* EGL_CHROMIUM_create_context_bind_generates_resource */
  527. #ifndef EGL_ARM_pixmap_multisample_discard
  528. #define EGL_ARM_pixmap_multisample_discard 1
  529. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  530. #endif /* EGL_ARM_pixmap_multisample_discard */
  531. #ifndef EGL_EXT_buffer_age
  532. #define EGL_EXT_buffer_age 1
  533. #define EGL_BUFFER_AGE_EXT 0x313D
  534. #endif /* EGL_EXT_buffer_age */
  535. #ifndef EGL_EXT_client_extensions
  536. #define EGL_EXT_client_extensions 1
  537. #endif /* EGL_EXT_client_extensions */
  538. #ifndef EGL_EXT_create_context_robustness
  539. #define EGL_EXT_create_context_robustness 1
  540. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  541. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  542. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  543. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  544. #endif /* EGL_EXT_create_context_robustness */
  545. #ifndef EGL_EXT_device_base
  546. #define EGL_EXT_device_base 1
  547. typedef void *EGLDeviceEXT;
  548. #define EGL_NO_DEVICE_EXT ((EGLDeviceEXT)(0))
  549. #define EGL_BAD_DEVICE_EXT 0x322B
  550. #define EGL_DEVICE_EXT 0x322C
  551. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  552. typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  553. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  554. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  555. #ifdef EGL_EGLEXT_PROTOTYPES
  556. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  557. EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
  558. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  559. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  560. #endif
  561. #endif /* EGL_EXT_device_base */
  562. #ifndef EGL_ANGLE_device_creation
  563. #define EGL_ANGLE_device_creation 1
  564. typedef EGLDeviceEXT (EGLAPIENTRYP PFNEGLCREATEDEVICEANGLEPROC) (EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
  565. typedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASEDEVICEANGLEPROC) (EGLDeviceEXT device);
  566. #ifdef EGL_EGLEXT_PROTOTYPES
  567. EGLAPI EGLDeviceEXT EGLAPIENTRY eglCreateDeviceANGLE (EGLint device_type, void *native_device, const EGLAttrib *attrib_list);
  568. EGLAPI EGLBoolean EGLAPIENTRY eglReleaseDeviceANGLE (EGLDeviceEXT device);
  569. #endif
  570. #endif /* EGL_ANGLE_device_creation */
  571. #ifndef EGL_EXT_device_drm
  572. #define EGL_EXT_device_drm 1
  573. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  574. #endif /* EGL_EXT_device_drm */
  575. #ifndef EGL_EXT_device_enumeration
  576. #define EGL_EXT_device_enumeration 1
  577. #endif /* EGL_EXT_device_enumeration */
  578. #ifndef EGL_EXT_device_openwf
  579. #define EGL_EXT_device_openwf 1
  580. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  581. #endif /* EGL_EXT_device_openwf */
  582. #ifndef EGL_EXT_device_query
  583. #define EGL_EXT_device_query 1
  584. #endif /* EGL_EXT_device_query */
  585. #ifndef EGL_EXT_image_dma_buf_import
  586. #define EGL_EXT_image_dma_buf_import 1
  587. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  588. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  589. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  590. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  591. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  592. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  593. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  594. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  595. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  596. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  597. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  598. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  599. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  600. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  601. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  602. #define EGL_ITU_REC601_EXT 0x327F
  603. #define EGL_ITU_REC709_EXT 0x3280
  604. #define EGL_ITU_REC2020_EXT 0x3281
  605. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  606. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  607. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  608. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  609. #endif /* EGL_EXT_image_dma_buf_import */
  610. #ifndef EGL_EXT_multiview_window
  611. #define EGL_EXT_multiview_window 1
  612. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  613. #endif /* EGL_EXT_multiview_window */
  614. #ifndef EGL_EXT_output_base
  615. #define EGL_EXT_output_base 1
  616. typedef void *EGLOutputLayerEXT;
  617. typedef void *EGLOutputPortEXT;
  618. #define EGL_NO_OUTPUT_LAYER_EXT ((EGLOutputLayerEXT)0)
  619. #define EGL_NO_OUTPUT_PORT_EXT ((EGLOutputPortEXT)0)
  620. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  621. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  622. #define EGL_SWAP_INTERVAL_EXT 0x322F
  623. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  624. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  625. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  626. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  627. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  628. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  629. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  630. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  631. #ifdef EGL_EGLEXT_PROTOTYPES
  632. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  633. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  634. EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  635. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  636. EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  637. EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  638. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  639. EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  640. #endif
  641. #endif /* EGL_EXT_output_base */
  642. #ifndef EGL_EXT_output_drm
  643. #define EGL_EXT_output_drm 1
  644. #define EGL_DRM_CRTC_EXT 0x3234
  645. #define EGL_DRM_PLANE_EXT 0x3235
  646. #define EGL_DRM_CONNECTOR_EXT 0x3236
  647. #endif /* EGL_EXT_output_drm */
  648. #ifndef EGL_EXT_output_openwf
  649. #define EGL_EXT_output_openwf 1
  650. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  651. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  652. #endif /* EGL_EXT_output_openwf */
  653. #ifndef EGL_EXT_platform_base
  654. #define EGL_EXT_platform_base 1
  655. typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
  656. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  657. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  658. #ifdef EGL_EGLEXT_PROTOTYPES
  659. EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
  660. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  661. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  662. #endif
  663. #endif /* EGL_EXT_platform_base */
  664. #ifndef EGL_EXT_platform_device
  665. #define EGL_EXT_platform_device 1
  666. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  667. #endif /* EGL_EXT_platform_device */
  668. #ifndef EGL_EXT_platform_wayland
  669. #define EGL_EXT_platform_wayland 1
  670. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  671. #endif /* EGL_EXT_platform_wayland */
  672. #ifndef EGL_EXT_platform_x11
  673. #define EGL_EXT_platform_x11 1
  674. #define EGL_PLATFORM_X11_EXT 0x31D5
  675. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  676. #endif /* EGL_EXT_platform_x11 */
  677. #ifndef EGL_EXT_protected_surface
  678. #define EGL_EXT_protected_surface 1
  679. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  680. #endif /* EGL_EXT_protected_surface */
  681. #ifndef EGL_EXT_stream_consumer_egloutput
  682. #define EGL_EXT_stream_consumer_egloutput 1
  683. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  684. #ifdef EGL_EGLEXT_PROTOTYPES
  685. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  686. #endif
  687. #endif /* EGL_EXT_stream_consumer_egloutput */
  688. #ifndef EGL_EXT_swap_buffers_with_damage
  689. #define EGL_EXT_swap_buffers_with_damage 1
  690. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  691. #ifdef EGL_EGLEXT_PROTOTYPES
  692. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  693. #endif
  694. #endif /* EGL_EXT_swap_buffers_with_damage */
  695. #ifndef EGL_EXT_yuv_surface
  696. #define EGL_EXT_yuv_surface 1
  697. #define EGL_YUV_ORDER_EXT 0x3301
  698. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  699. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  700. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  701. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  702. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  703. #define EGL_YUV_BUFFER_EXT 0x3300
  704. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  705. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  706. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  707. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  708. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  709. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  710. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  711. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  712. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  713. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  714. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  715. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  716. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  717. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  718. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  719. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  720. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  721. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  722. #endif /* EGL_EXT_yuv_surface */
  723. #ifndef EGL_HI_clientpixmap
  724. #define EGL_HI_clientpixmap 1
  725. struct EGLClientPixmapHI {
  726. void *pData;
  727. EGLint iWidth;
  728. EGLint iHeight;
  729. EGLint iStride;
  730. };
  731. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  732. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  733. #ifdef EGL_EGLEXT_PROTOTYPES
  734. EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  735. #endif
  736. #endif /* EGL_HI_clientpixmap */
  737. #ifndef EGL_HI_colorformats
  738. #define EGL_HI_colorformats 1
  739. #define EGL_COLOR_FORMAT_HI 0x8F70
  740. #define EGL_COLOR_RGB_HI 0x8F71
  741. #define EGL_COLOR_RGBA_HI 0x8F72
  742. #define EGL_COLOR_ARGB_HI 0x8F73
  743. #endif /* EGL_HI_colorformats */
  744. #ifndef EGL_IMG_context_priority
  745. #define EGL_IMG_context_priority 1
  746. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  747. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  748. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  749. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  750. #endif /* EGL_IMG_context_priority */
  751. #ifndef EGL_IMG_image_plane_attribs
  752. #define EGL_IMG_image_plane_attribs 1
  753. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  754. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  755. #endif /* EGL_IMG_image_plane_attribs */
  756. #ifndef EGL_MESA_drm_image
  757. #define EGL_MESA_drm_image 1
  758. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  759. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  760. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  761. #define EGL_DRM_BUFFER_MESA 0x31D3
  762. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  763. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  764. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  765. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  766. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  767. #ifdef EGL_EGLEXT_PROTOTYPES
  768. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
  769. EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  770. #endif
  771. #endif /* EGL_MESA_drm_image */
  772. #ifndef EGL_MESA_image_dma_buf_export
  773. #define EGL_MESA_image_dma_buf_export 1
  774. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  775. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  776. #ifdef EGL_EGLEXT_PROTOTYPES
  777. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  778. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  779. #endif
  780. #endif /* EGL_MESA_image_dma_buf_export */
  781. #ifndef EGL_MESA_platform_gbm
  782. #define EGL_MESA_platform_gbm 1
  783. #define EGL_PLATFORM_GBM_MESA 0x31D7
  784. #endif /* EGL_MESA_platform_gbm */
  785. #ifndef EGL_NOK_swap_region
  786. #define EGL_NOK_swap_region 1
  787. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  788. #ifdef EGL_EGLEXT_PROTOTYPES
  789. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  790. #endif
  791. #endif /* EGL_NOK_swap_region */
  792. #ifndef EGL_NOK_swap_region2
  793. #define EGL_NOK_swap_region2 1
  794. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  795. #ifdef EGL_EGLEXT_PROTOTYPES
  796. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  797. #endif
  798. #endif /* EGL_NOK_swap_region2 */
  799. #ifndef EGL_NOK_texture_from_pixmap
  800. #define EGL_NOK_texture_from_pixmap 1
  801. #define EGL_Y_INVERTED_NOK 0x307F
  802. #endif /* EGL_NOK_texture_from_pixmap */
  803. #ifndef EGL_NV_3dvision_surface
  804. #define EGL_NV_3dvision_surface 1
  805. #define EGL_AUTO_STEREO_NV 0x3136
  806. #endif /* EGL_NV_3dvision_surface */
  807. #ifndef EGL_NV_coverage_sample
  808. #define EGL_NV_coverage_sample 1
  809. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  810. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  811. #endif /* EGL_NV_coverage_sample */
  812. #ifndef EGL_NV_coverage_sample_resolve
  813. #define EGL_NV_coverage_sample_resolve 1
  814. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  815. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  816. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  817. #endif /* EGL_NV_coverage_sample_resolve */
  818. #ifndef EGL_NV_cuda_event
  819. #define EGL_NV_cuda_event 1
  820. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  821. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  822. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  823. #endif /* EGL_NV_cuda_event */
  824. #ifndef EGL_NV_depth_nonlinear
  825. #define EGL_NV_depth_nonlinear 1
  826. #define EGL_DEPTH_ENCODING_NV 0x30E2
  827. #define EGL_DEPTH_ENCODING_NONE_NV 0
  828. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  829. #endif /* EGL_NV_depth_nonlinear */
  830. #ifndef EGL_NV_device_cuda
  831. #define EGL_NV_device_cuda 1
  832. #define EGL_CUDA_DEVICE_NV 0x323A
  833. #endif /* EGL_NV_device_cuda */
  834. #ifndef EGL_NV_native_query
  835. #define EGL_NV_native_query 1
  836. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  837. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  838. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  839. #ifdef EGL_EGLEXT_PROTOTYPES
  840. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  841. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  842. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  843. #endif
  844. #endif /* EGL_NV_native_query */
  845. #ifndef EGL_NV_post_convert_rounding
  846. #define EGL_NV_post_convert_rounding 1
  847. #endif /* EGL_NV_post_convert_rounding */
  848. #ifndef EGL_NV_post_sub_buffer
  849. #define EGL_NV_post_sub_buffer 1
  850. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  851. typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  852. #ifdef EGL_EGLEXT_PROTOTYPES
  853. EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  854. #endif
  855. #endif /* EGL_NV_post_sub_buffer */
  856. #ifndef EGL_NV_stream_consumer_gltexture_yuv
  857. #define EGL_NV_stream_consumer_gltexture_yuv 1
  858. #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
  859. #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
  860. #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
  861. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  862. #ifdef EGL_EGLEXT_PROTOTYPES
  863. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  864. #endif
  865. #endif /* EGL_NV_stream_consumer_gltexture_yuv */
  866. #ifndef EGL_NV_stream_metadata
  867. #define EGL_NV_stream_metadata 1
  868. #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  869. #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  870. #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  871. #define EGL_PRODUCER_METADATA_NV 0x3253
  872. #define EGL_CONSUMER_METADATA_NV 0x3254
  873. #define EGL_PENDING_METADATA_NV 0x3328
  874. #define EGL_METADATA0_SIZE_NV 0x3255
  875. #define EGL_METADATA1_SIZE_NV 0x3256
  876. #define EGL_METADATA2_SIZE_NV 0x3257
  877. #define EGL_METADATA3_SIZE_NV 0x3258
  878. #define EGL_METADATA0_TYPE_NV 0x3259
  879. #define EGL_METADATA1_TYPE_NV 0x325A
  880. #define EGL_METADATA2_TYPE_NV 0x325B
  881. #define EGL_METADATA3_TYPE_NV 0x325C
  882. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  883. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  884. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  885. #ifdef EGL_EGLEXT_PROTOTYPES
  886. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  887. EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  888. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  889. #endif
  890. #endif /* EGL_NV_stream_metadata */
  891. #ifndef EGL_NV_stream_sync
  892. #define EGL_NV_stream_sync 1
  893. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  894. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  895. #ifdef EGL_EGLEXT_PROTOTYPES
  896. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  897. #endif
  898. #endif /* EGL_NV_stream_sync */
  899. #ifndef EGL_NV_sync
  900. #define EGL_NV_sync 1
  901. typedef void *EGLSyncNV;
  902. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  903. #ifdef KHRONOS_SUPPORT_INT64
  904. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  905. #define EGL_SYNC_STATUS_NV 0x30E7
  906. #define EGL_SIGNALED_NV 0x30E8
  907. #define EGL_UNSIGNALED_NV 0x30E9
  908. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  909. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
  910. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  911. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  912. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  913. #define EGL_SYNC_TYPE_NV 0x30ED
  914. #define EGL_SYNC_CONDITION_NV 0x30EE
  915. #define EGL_SYNC_FENCE_NV 0x30EF
  916. #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
  917. typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  918. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  919. typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
  920. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  921. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  922. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
  923. #ifdef EGL_EGLEXT_PROTOTYPES
  924. EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  925. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
  926. EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
  927. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  928. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
  929. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
  930. #endif
  931. #endif /* KHRONOS_SUPPORT_INT64 */
  932. #endif /* EGL_NV_sync */
  933. #ifndef EGL_NV_system_time
  934. #define EGL_NV_system_time 1
  935. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  936. #ifdef KHRONOS_SUPPORT_INT64
  937. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  938. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
  939. #ifdef EGL_EGLEXT_PROTOTYPES
  940. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
  941. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
  942. #endif
  943. #endif /* KHRONOS_SUPPORT_INT64 */
  944. #endif /* EGL_NV_system_time */
  945. #ifndef EGL_TIZEN_image_native_buffer
  946. #define EGL_TIZEN_image_native_buffer 1
  947. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  948. #endif /* EGL_TIZEN_image_native_buffer */
  949. #ifndef EGL_TIZEN_image_native_surface
  950. #define EGL_TIZEN_image_native_surface 1
  951. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  952. #endif /* EGL_TIZEN_image_native_surface */
  953. #ifdef __cplusplus
  954. }
  955. #endif
  956. #endif