eglext.h 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521
  1. #ifndef __eglext_h_
  2. #define __eglext_h_ 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright 2013-2020 The Khronos Group Inc.
  8. ** SPDX-License-Identifier: Apache-2.0
  9. **
  10. ** This header is generated from the Khronos EGL XML API Registry.
  11. ** The current version of the Registry, generator scripts
  12. ** used to make the header, and the header can be found at
  13. ** http://www.khronos.org/registry/egl
  14. **
  15. ** Khronos $Git commit SHA1: bd4838f57c $ on $Git commit date: 2024-09-09 22:54:26 -0600 $
  16. */
  17. #include <EGL/eglplatform.h>
  18. #define EGL_EGLEXT_VERSION 20240909
  19. /* Generated C header for:
  20. * API: egl
  21. * Versions considered: .*
  22. * Versions emitted: _nomatch_^
  23. * Default extensions included: egl
  24. * Additional extensions included: _nomatch_^
  25. * Extensions removed: _nomatch_^
  26. */
  27. #ifndef EGL_KHR_cl_event
  28. #define EGL_KHR_cl_event 1
  29. #define EGL_CL_EVENT_HANDLE_KHR 0x309C
  30. #define EGL_SYNC_CL_EVENT_KHR 0x30FE
  31. #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
  32. #endif /* EGL_KHR_cl_event */
  33. #ifndef EGL_KHR_cl_event2
  34. #define EGL_KHR_cl_event2 1
  35. typedef void *EGLSyncKHR;
  36. typedef intptr_t EGLAttribKHR;
  37. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
  38. #ifdef EGL_EGLEXT_PROTOTYPES
  39. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
  40. #endif
  41. #endif /* EGL_KHR_cl_event2 */
  42. #ifndef EGL_KHR_client_get_all_proc_addresses
  43. #define EGL_KHR_client_get_all_proc_addresses 1
  44. #endif /* EGL_KHR_client_get_all_proc_addresses */
  45. #ifndef EGL_KHR_config_attribs
  46. #define EGL_KHR_config_attribs 1
  47. #define EGL_CONFORMANT_KHR 0x3042
  48. #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
  49. #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
  50. #endif /* EGL_KHR_config_attribs */
  51. #ifndef EGL_KHR_context_flush_control
  52. #define EGL_KHR_context_flush_control 1
  53. #define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
  54. #define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097
  55. #define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
  56. #endif /* EGL_KHR_context_flush_control */
  57. #ifndef EGL_KHR_create_context
  58. #define EGL_KHR_create_context 1
  59. #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
  60. #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
  61. #define EGL_CONTEXT_FLAGS_KHR 0x30FC
  62. #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
  63. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
  64. #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
  65. #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
  66. #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
  67. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
  68. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
  69. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
  70. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
  71. #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
  72. #endif /* EGL_KHR_create_context */
  73. #ifndef EGL_KHR_create_context_no_error
  74. #define EGL_KHR_create_context_no_error 1
  75. #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
  76. #endif /* EGL_KHR_create_context_no_error */
  77. #ifndef EGL_KHR_debug
  78. #define EGL_KHR_debug 1
  79. typedef void *EGLLabelKHR;
  80. typedef void *EGLObjectKHR;
  81. typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
  82. #define EGL_OBJECT_THREAD_KHR 0x33B0
  83. #define EGL_OBJECT_DISPLAY_KHR 0x33B1
  84. #define EGL_OBJECT_CONTEXT_KHR 0x33B2
  85. #define EGL_OBJECT_SURFACE_KHR 0x33B3
  86. #define EGL_OBJECT_IMAGE_KHR 0x33B4
  87. #define EGL_OBJECT_SYNC_KHR 0x33B5
  88. #define EGL_OBJECT_STREAM_KHR 0x33B6
  89. #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
  90. #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
  91. #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
  92. #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
  93. #define EGL_DEBUG_CALLBACK_KHR 0x33B8
  94. typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
  95. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
  96. typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
  97. #ifdef EGL_EGLEXT_PROTOTYPES
  98. EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
  99. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
  100. EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
  101. #endif
  102. #endif /* EGL_KHR_debug */
  103. #ifndef EGL_KHR_display_reference
  104. #define EGL_KHR_display_reference 1
  105. #define EGL_TRACK_REFERENCES_KHR 0x3352
  106. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value);
  107. #ifdef EGL_EGLEXT_PROTOTYPES
  108. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value);
  109. #endif
  110. #endif /* EGL_KHR_display_reference */
  111. #ifndef EGL_KHR_fence_sync
  112. #define EGL_KHR_fence_sync 1
  113. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  114. #ifdef KHRONOS_SUPPORT_INT64
  115. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
  116. #define EGL_SYNC_CONDITION_KHR 0x30F8
  117. #define EGL_SYNC_FENCE_KHR 0x30F9
  118. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  119. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  120. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  121. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  122. #ifdef EGL_EGLEXT_PROTOTYPES
  123. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  124. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
  125. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  126. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  127. #endif
  128. #endif /* KHRONOS_SUPPORT_INT64 */
  129. #endif /* EGL_KHR_fence_sync */
  130. #ifndef EGL_KHR_get_all_proc_addresses
  131. #define EGL_KHR_get_all_proc_addresses 1
  132. #endif /* EGL_KHR_get_all_proc_addresses */
  133. #ifndef EGL_KHR_gl_colorspace
  134. #define EGL_KHR_gl_colorspace 1
  135. #define EGL_GL_COLORSPACE_KHR 0x309D
  136. #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
  137. #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
  138. #endif /* EGL_KHR_gl_colorspace */
  139. #ifndef EGL_KHR_gl_renderbuffer_image
  140. #define EGL_KHR_gl_renderbuffer_image 1
  141. #define EGL_GL_RENDERBUFFER_KHR 0x30B9
  142. #endif /* EGL_KHR_gl_renderbuffer_image */
  143. #ifndef EGL_KHR_gl_texture_2D_image
  144. #define EGL_KHR_gl_texture_2D_image 1
  145. #define EGL_GL_TEXTURE_2D_KHR 0x30B1
  146. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
  147. #endif /* EGL_KHR_gl_texture_2D_image */
  148. #ifndef EGL_KHR_gl_texture_3D_image
  149. #define EGL_KHR_gl_texture_3D_image 1
  150. #define EGL_GL_TEXTURE_3D_KHR 0x30B2
  151. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
  152. #endif /* EGL_KHR_gl_texture_3D_image */
  153. #ifndef EGL_KHR_gl_texture_cubemap_image
  154. #define EGL_KHR_gl_texture_cubemap_image 1
  155. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
  156. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
  157. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
  158. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
  159. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
  160. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
  161. #endif /* EGL_KHR_gl_texture_cubemap_image */
  162. #ifndef EGL_KHR_image
  163. #define EGL_KHR_image 1
  164. typedef void *EGLImageKHR;
  165. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  166. #define EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0)
  167. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  168. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  169. #ifdef EGL_EGLEXT_PROTOTYPES
  170. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  171. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
  172. #endif
  173. #endif /* EGL_KHR_image */
  174. #ifndef EGL_KHR_image_base
  175. #define EGL_KHR_image_base 1
  176. #define EGL_IMAGE_PRESERVED_KHR 0x30D2
  177. #endif /* EGL_KHR_image_base */
  178. #ifndef EGL_KHR_image_pixmap
  179. #define EGL_KHR_image_pixmap 1
  180. #endif /* EGL_KHR_image_pixmap */
  181. #ifndef EGL_KHR_lock_surface
  182. #define EGL_KHR_lock_surface 1
  183. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  184. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  185. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  186. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  187. #define EGL_MATCH_FORMAT_KHR 0x3043
  188. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  189. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  190. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  191. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  192. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  193. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  194. #define EGL_BITMAP_POINTER_KHR 0x30C6
  195. #define EGL_BITMAP_PITCH_KHR 0x30C7
  196. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  197. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  198. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  199. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  200. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  201. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  202. #define EGL_LOWER_LEFT_KHR 0x30CE
  203. #define EGL_UPPER_LEFT_KHR 0x30CF
  204. typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
  205. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
  206. #ifdef EGL_EGLEXT_PROTOTYPES
  207. EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
  208. EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
  209. #endif
  210. #endif /* EGL_KHR_lock_surface */
  211. #ifndef EGL_KHR_lock_surface2
  212. #define EGL_KHR_lock_surface2 1
  213. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  214. #endif /* EGL_KHR_lock_surface2 */
  215. #ifndef EGL_KHR_lock_surface3
  216. #define EGL_KHR_lock_surface3 1
  217. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
  218. #ifdef EGL_EGLEXT_PROTOTYPES
  219. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
  220. #endif
  221. #endif /* EGL_KHR_lock_surface3 */
  222. #ifndef EGL_KHR_mutable_render_buffer
  223. #define EGL_KHR_mutable_render_buffer 1
  224. #define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
  225. #endif /* EGL_KHR_mutable_render_buffer */
  226. #ifndef EGL_KHR_no_config_context
  227. #define EGL_KHR_no_config_context 1
  228. #define EGL_NO_CONFIG_KHR EGL_CAST(EGLConfig,0)
  229. #endif /* EGL_KHR_no_config_context */
  230. #ifndef EGL_KHR_partial_update
  231. #define EGL_KHR_partial_update 1
  232. #define EGL_BUFFER_AGE_KHR 0x313D
  233. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  234. #ifdef EGL_EGLEXT_PROTOTYPES
  235. EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  236. #endif
  237. #endif /* EGL_KHR_partial_update */
  238. #ifndef EGL_KHR_platform_android
  239. #define EGL_KHR_platform_android 1
  240. #define EGL_PLATFORM_ANDROID_KHR 0x3141
  241. #endif /* EGL_KHR_platform_android */
  242. #ifndef EGL_KHR_platform_gbm
  243. #define EGL_KHR_platform_gbm 1
  244. #define EGL_PLATFORM_GBM_KHR 0x31D7
  245. #endif /* EGL_KHR_platform_gbm */
  246. #ifndef EGL_KHR_platform_wayland
  247. #define EGL_KHR_platform_wayland 1
  248. #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
  249. #endif /* EGL_KHR_platform_wayland */
  250. #ifndef EGL_KHR_platform_x11
  251. #define EGL_KHR_platform_x11 1
  252. #define EGL_PLATFORM_X11_KHR 0x31D5
  253. #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
  254. #endif /* EGL_KHR_platform_x11 */
  255. #ifndef EGL_KHR_reusable_sync
  256. #define EGL_KHR_reusable_sync 1
  257. #ifdef KHRONOS_SUPPORT_INT64
  258. #define EGL_SYNC_STATUS_KHR 0x30F1
  259. #define EGL_SIGNALED_KHR 0x30F2
  260. #define EGL_UNSIGNALED_KHR 0x30F3
  261. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  262. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  263. #define EGL_SYNC_TYPE_KHR 0x30F7
  264. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  265. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
  266. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
  267. #define EGL_NO_SYNC_KHR EGL_CAST(EGLSyncKHR,0)
  268. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  269. #ifdef EGL_EGLEXT_PROTOTYPES
  270. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  271. #endif
  272. #endif /* KHRONOS_SUPPORT_INT64 */
  273. #endif /* EGL_KHR_reusable_sync */
  274. #ifndef EGL_KHR_stream
  275. #define EGL_KHR_stream 1
  276. typedef void *EGLStreamKHR;
  277. typedef khronos_uint64_t EGLuint64KHR;
  278. #ifdef KHRONOS_SUPPORT_INT64
  279. #define EGL_NO_STREAM_KHR EGL_CAST(EGLStreamKHR,0)
  280. #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
  281. #define EGL_PRODUCER_FRAME_KHR 0x3212
  282. #define EGL_CONSUMER_FRAME_KHR 0x3213
  283. #define EGL_STREAM_STATE_KHR 0x3214
  284. #define EGL_STREAM_STATE_CREATED_KHR 0x3215
  285. #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
  286. #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
  287. #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
  288. #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
  289. #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
  290. #define EGL_BAD_STREAM_KHR 0x321B
  291. #define EGL_BAD_STATE_KHR 0x321C
  292. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  293. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  294. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  295. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
  296. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
  297. #ifdef EGL_EGLEXT_PROTOTYPES
  298. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
  299. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
  300. EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  301. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
  302. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
  303. #endif
  304. #endif /* KHRONOS_SUPPORT_INT64 */
  305. #endif /* EGL_KHR_stream */
  306. #ifndef EGL_KHR_stream_attrib
  307. #define EGL_KHR_stream_attrib 1
  308. #ifdef KHRONOS_SUPPORT_INT64
  309. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
  310. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
  311. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
  312. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  313. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  314. #ifdef EGL_EGLEXT_PROTOTYPES
  315. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribKHR (EGLDisplay dpy, const EGLAttrib *attrib_list);
  316. EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
  317. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
  318. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  319. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  320. #endif
  321. #endif /* KHRONOS_SUPPORT_INT64 */
  322. #endif /* EGL_KHR_stream_attrib */
  323. #ifndef EGL_KHR_stream_consumer_gltexture
  324. #define EGL_KHR_stream_consumer_gltexture 1
  325. #ifdef EGL_KHR_stream
  326. #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
  327. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  328. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  329. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  330. #ifdef EGL_EGLEXT_PROTOTYPES
  331. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
  332. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
  333. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
  334. #endif
  335. #endif /* EGL_KHR_stream */
  336. #endif /* EGL_KHR_stream_consumer_gltexture */
  337. #ifndef EGL_KHR_stream_cross_process_fd
  338. #define EGL_KHR_stream_cross_process_fd 1
  339. typedef int EGLNativeFileDescriptorKHR;
  340. #ifdef EGL_KHR_stream
  341. #define EGL_NO_FILE_DESCRIPTOR_KHR EGL_CAST(EGLNativeFileDescriptorKHR,-1)
  342. typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  343. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  344. #ifdef EGL_EGLEXT_PROTOTYPES
  345. EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
  346. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  347. #endif
  348. #endif /* EGL_KHR_stream */
  349. #endif /* EGL_KHR_stream_cross_process_fd */
  350. #ifndef EGL_KHR_stream_fifo
  351. #define EGL_KHR_stream_fifo 1
  352. #ifdef EGL_KHR_stream
  353. #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
  354. #define EGL_STREAM_TIME_NOW_KHR 0x31FD
  355. #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
  356. #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
  357. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
  358. #ifdef EGL_EGLEXT_PROTOTYPES
  359. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
  360. #endif
  361. #endif /* EGL_KHR_stream */
  362. #endif /* EGL_KHR_stream_fifo */
  363. #ifndef EGL_KHR_stream_producer_aldatalocator
  364. #define EGL_KHR_stream_producer_aldatalocator 1
  365. #ifdef EGL_KHR_stream
  366. #endif /* EGL_KHR_stream */
  367. #endif /* EGL_KHR_stream_producer_aldatalocator */
  368. #ifndef EGL_KHR_stream_producer_eglsurface
  369. #define EGL_KHR_stream_producer_eglsurface 1
  370. #ifdef EGL_KHR_stream
  371. #define EGL_STREAM_BIT_KHR 0x0800
  372. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
  373. #ifdef EGL_EGLEXT_PROTOTYPES
  374. EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
  375. #endif
  376. #endif /* EGL_KHR_stream */
  377. #endif /* EGL_KHR_stream_producer_eglsurface */
  378. #ifndef EGL_KHR_surfaceless_context
  379. #define EGL_KHR_surfaceless_context 1
  380. #endif /* EGL_KHR_surfaceless_context */
  381. #ifndef EGL_KHR_swap_buffers_with_damage
  382. #define EGL_KHR_swap_buffers_with_damage 1
  383. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
  384. #ifdef EGL_EGLEXT_PROTOTYPES
  385. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
  386. #endif
  387. #endif /* EGL_KHR_swap_buffers_with_damage */
  388. #ifndef EGL_KHR_vg_parent_image
  389. #define EGL_KHR_vg_parent_image 1
  390. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
  391. #endif /* EGL_KHR_vg_parent_image */
  392. #ifndef EGL_KHR_wait_sync
  393. #define EGL_KHR_wait_sync 1
  394. typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  395. #ifdef EGL_EGLEXT_PROTOTYPES
  396. EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  397. #endif
  398. #endif /* EGL_KHR_wait_sync */
  399. #ifndef EGL_ANDROID_GLES_layers
  400. #define EGL_ANDROID_GLES_layers 1
  401. #endif /* EGL_ANDROID_GLES_layers */
  402. #ifndef EGL_ANDROID_blob_cache
  403. #define EGL_ANDROID_blob_cache 1
  404. typedef khronos_ssize_t EGLsizeiANDROID;
  405. typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
  406. typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
  407. typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  408. #ifdef EGL_EGLEXT_PROTOTYPES
  409. EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  410. #endif
  411. #endif /* EGL_ANDROID_blob_cache */
  412. #ifndef EGL_ANDROID_create_native_client_buffer
  413. #define EGL_ANDROID_create_native_client_buffer 1
  414. #define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
  415. #define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
  416. #define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
  417. #define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
  418. typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint *attrib_list);
  419. #ifdef EGL_EGLEXT_PROTOTYPES
  420. EGLAPI EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID (const EGLint *attrib_list);
  421. #endif
  422. #endif /* EGL_ANDROID_create_native_client_buffer */
  423. #ifndef EGL_ANDROID_framebuffer_target
  424. #define EGL_ANDROID_framebuffer_target 1
  425. #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
  426. #endif /* EGL_ANDROID_framebuffer_target */
  427. #ifndef EGL_ANDROID_front_buffer_auto_refresh
  428. #define EGL_ANDROID_front_buffer_auto_refresh 1
  429. #define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
  430. #endif /* EGL_ANDROID_front_buffer_auto_refresh */
  431. #ifndef EGL_ANDROID_get_frame_timestamps
  432. #define EGL_ANDROID_get_frame_timestamps 1
  433. typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
  434. #define EGL_TIMESTAMP_PENDING_ANDROID EGL_CAST(EGLnsecsANDROID,-2)
  435. #define EGL_TIMESTAMP_INVALID_ANDROID EGL_CAST(EGLnsecsANDROID,-1)
  436. #define EGL_TIMESTAMPS_ANDROID 0x3430
  437. #define EGL_COMPOSITE_DEADLINE_ANDROID 0x3431
  438. #define EGL_COMPOSITE_INTERVAL_ANDROID 0x3432
  439. #define EGL_COMPOSITE_TO_PRESENT_LATENCY_ANDROID 0x3433
  440. #define EGL_REQUESTED_PRESENT_TIME_ANDROID 0x3434
  441. #define EGL_RENDERING_COMPLETE_TIME_ANDROID 0x3435
  442. #define EGL_COMPOSITION_LATCH_TIME_ANDROID 0x3436
  443. #define EGL_FIRST_COMPOSITION_START_TIME_ANDROID 0x3437
  444. #define EGL_LAST_COMPOSITION_START_TIME_ANDROID 0x3438
  445. #define EGL_FIRST_COMPOSITION_GPU_FINISHED_TIME_ANDROID 0x3439
  446. #define EGL_DISPLAY_PRESENT_TIME_ANDROID 0x343A
  447. #define EGL_DEQUEUE_READY_TIME_ANDROID 0x343B
  448. #define EGL_READS_DONE_TIME_ANDROID 0x343C
  449. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint name);
  450. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCOMPOSITORTIMINGANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values);
  451. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETNEXTFRAMEIDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId);
  452. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint timestamp);
  453. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values);
  454. #ifdef EGL_EGLEXT_PROTOTYPES
  455. EGLAPI EGLBoolean EGLAPIENTRY eglGetCompositorTimingSupportedANDROID (EGLDisplay dpy, EGLSurface surface, EGLint name);
  456. EGLAPI EGLBoolean EGLAPIENTRY eglGetCompositorTimingANDROID (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values);
  457. EGLAPI EGLBoolean EGLAPIENTRY eglGetNextFrameIdANDROID (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId);
  458. EGLAPI EGLBoolean EGLAPIENTRY eglGetFrameTimestampSupportedANDROID (EGLDisplay dpy, EGLSurface surface, EGLint timestamp);
  459. EGLAPI EGLBoolean EGLAPIENTRY eglGetFrameTimestampsANDROID (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values);
  460. #endif
  461. #endif /* EGL_ANDROID_get_frame_timestamps */
  462. #ifndef EGL_ANDROID_get_native_client_buffer
  463. #define EGL_ANDROID_get_native_client_buffer 1
  464. struct AHardwareBuffer;
  465. typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC) (const struct AHardwareBuffer *buffer);
  466. #ifdef EGL_EGLEXT_PROTOTYPES
  467. EGLAPI EGLClientBuffer EGLAPIENTRY eglGetNativeClientBufferANDROID (const struct AHardwareBuffer *buffer);
  468. #endif
  469. #endif /* EGL_ANDROID_get_native_client_buffer */
  470. #ifndef EGL_ANDROID_image_native_buffer
  471. #define EGL_ANDROID_image_native_buffer 1
  472. #define EGL_NATIVE_BUFFER_ANDROID 0x3140
  473. #endif /* EGL_ANDROID_image_native_buffer */
  474. #ifndef EGL_ANDROID_native_fence_sync
  475. #define EGL_ANDROID_native_fence_sync 1
  476. #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
  477. #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
  478. #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
  479. #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
  480. typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  481. #ifdef EGL_EGLEXT_PROTOTYPES
  482. EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
  483. #endif
  484. #endif /* EGL_ANDROID_native_fence_sync */
  485. #ifndef EGL_ANDROID_presentation_time
  486. #define EGL_ANDROID_presentation_time 1
  487. typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
  488. #ifdef EGL_EGLEXT_PROTOTYPES
  489. EGLAPI EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
  490. #endif
  491. #endif /* EGL_ANDROID_presentation_time */
  492. #ifndef EGL_ANDROID_recordable
  493. #define EGL_ANDROID_recordable 1
  494. #define EGL_RECORDABLE_ANDROID 0x3142
  495. #endif /* EGL_ANDROID_recordable */
  496. #ifndef EGL_ANDROID_telemetry_hint
  497. #define EGL_ANDROID_telemetry_hint 1
  498. #define EGL_TELEMETRY_HINT_ANDROID 0x3570
  499. #endif /* EGL_ANDROID_telemetry_hint */
  500. #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
  501. #define EGL_ANGLE_d3d_share_handle_client_buffer 1
  502. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  503. #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
  504. #ifndef EGL_ANGLE_device_d3d
  505. #define EGL_ANGLE_device_d3d 1
  506. #define EGL_D3D9_DEVICE_ANGLE 0x33A0
  507. #define EGL_D3D11_DEVICE_ANGLE 0x33A1
  508. #endif /* EGL_ANGLE_device_d3d */
  509. #ifndef EGL_ANGLE_query_surface_pointer
  510. #define EGL_ANGLE_query_surface_pointer 1
  511. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  512. #ifdef EGL_EGLEXT_PROTOTYPES
  513. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  514. #endif
  515. #endif /* EGL_ANGLE_query_surface_pointer */
  516. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  517. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  518. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  519. #ifndef EGL_ANGLE_sync_control_rate
  520. #define EGL_ANGLE_sync_control_rate 1
  521. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMSCRATEANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
  522. #ifdef EGL_EGLEXT_PROTOTYPES
  523. EGLAPI EGLBoolean EGLAPIENTRY eglGetMscRateANGLE (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
  524. #endif
  525. #endif /* EGL_ANGLE_sync_control_rate */
  526. #ifndef EGL_ANGLE_window_fixed_size
  527. #define EGL_ANGLE_window_fixed_size 1
  528. #define EGL_FIXED_SIZE_ANGLE 0x3201
  529. #endif /* EGL_ANGLE_window_fixed_size */
  530. #ifndef EGL_ARM_image_format
  531. #define EGL_ARM_image_format 1
  532. #define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287
  533. #define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288
  534. #endif /* EGL_ARM_image_format */
  535. #ifndef EGL_ARM_implicit_external_sync
  536. #define EGL_ARM_implicit_external_sync 1
  537. #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
  538. #endif /* EGL_ARM_implicit_external_sync */
  539. #ifndef EGL_ARM_pixmap_multisample_discard
  540. #define EGL_ARM_pixmap_multisample_discard 1
  541. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  542. #endif /* EGL_ARM_pixmap_multisample_discard */
  543. #ifndef EGL_EXT_bind_to_front
  544. #define EGL_EXT_bind_to_front 1
  545. #define EGL_FRONT_BUFFER_EXT 0x3464
  546. #endif /* EGL_EXT_bind_to_front */
  547. #ifndef EGL_EXT_buffer_age
  548. #define EGL_EXT_buffer_age 1
  549. #define EGL_BUFFER_AGE_EXT 0x313D
  550. #endif /* EGL_EXT_buffer_age */
  551. #ifndef EGL_EXT_client_extensions
  552. #define EGL_EXT_client_extensions 1
  553. #endif /* EGL_EXT_client_extensions */
  554. #ifndef EGL_EXT_client_sync
  555. #define EGL_EXT_client_sync 1
  556. #define EGL_SYNC_CLIENT_EXT 0x3364
  557. #define EGL_SYNC_CLIENT_SIGNAL_EXT 0x3365
  558. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCLIENTSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  559. #ifdef EGL_EGLEXT_PROTOTYPES
  560. EGLAPI EGLBoolean EGLAPIENTRY eglClientSignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  561. #endif
  562. #endif /* EGL_EXT_client_sync */
  563. #ifndef EGL_EXT_compositor
  564. #define EGL_EXT_compositor 1
  565. #define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
  566. #define EGL_EXTERNAL_REF_ID_EXT 0x3461
  567. #define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
  568. #define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
  569. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint *external_ref_ids, EGLint num_entries);
  570. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
  571. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
  572. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
  573. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id);
  574. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height);
  575. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy);
  576. #ifdef EGL_EGLEXT_PROTOTYPES
  577. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *external_ref_ids, EGLint num_entries);
  578. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
  579. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
  580. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
  581. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win_id);
  582. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, EGLint width, EGLint height);
  583. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id, EGLint policy);
  584. #endif
  585. #endif /* EGL_EXT_compositor */
  586. #ifndef EGL_EXT_config_select_group
  587. #define EGL_EXT_config_select_group 1
  588. #define EGL_CONFIG_SELECT_GROUP_EXT 0x34C0
  589. #endif /* EGL_EXT_config_select_group */
  590. #ifndef EGL_EXT_create_context_robustness
  591. #define EGL_EXT_create_context_robustness 1
  592. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  593. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  594. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  595. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  596. #endif /* EGL_EXT_create_context_robustness */
  597. #ifndef EGL_EXT_device_base
  598. #define EGL_EXT_device_base 1
  599. typedef void *EGLDeviceEXT;
  600. #define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0)
  601. #define EGL_BAD_DEVICE_EXT 0x322B
  602. #define EGL_DEVICE_EXT 0x322C
  603. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  604. typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  605. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  606. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  607. #ifdef EGL_EGLEXT_PROTOTYPES
  608. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  609. EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
  610. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  611. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  612. #endif
  613. #endif /* EGL_EXT_device_base */
  614. #ifndef EGL_EXT_device_drm
  615. #define EGL_EXT_device_drm 1
  616. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  617. #define EGL_DRM_MASTER_FD_EXT 0x333C
  618. #endif /* EGL_EXT_device_drm */
  619. #ifndef EGL_EXT_device_drm_render_node
  620. #define EGL_EXT_device_drm_render_node 1
  621. #define EGL_DRM_RENDER_NODE_FILE_EXT 0x3377
  622. #endif /* EGL_EXT_device_drm_render_node */
  623. #ifndef EGL_EXT_device_enumeration
  624. #define EGL_EXT_device_enumeration 1
  625. #endif /* EGL_EXT_device_enumeration */
  626. #ifndef EGL_EXT_device_openwf
  627. #define EGL_EXT_device_openwf 1
  628. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  629. #define EGL_OPENWF_DEVICE_EXT 0x333D
  630. #endif /* EGL_EXT_device_openwf */
  631. #ifndef EGL_EXT_device_persistent_id
  632. #define EGL_EXT_device_persistent_id 1
  633. #define EGL_DEVICE_UUID_EXT 0x335C
  634. #define EGL_DRIVER_UUID_EXT 0x335D
  635. #define EGL_DRIVER_NAME_EXT 0x335E
  636. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEBINARYEXTPROC) (EGLDeviceEXT device, EGLint name, EGLint max_size, void *value, EGLint *size);
  637. #ifdef EGL_EGLEXT_PROTOTYPES
  638. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceBinaryEXT (EGLDeviceEXT device, EGLint name, EGLint max_size, void *value, EGLint *size);
  639. #endif
  640. #endif /* EGL_EXT_device_persistent_id */
  641. #ifndef EGL_EXT_device_query
  642. #define EGL_EXT_device_query 1
  643. #endif /* EGL_EXT_device_query */
  644. #ifndef EGL_EXT_device_query_name
  645. #define EGL_EXT_device_query_name 1
  646. #define EGL_RENDERER_EXT 0x335F
  647. #endif /* EGL_EXT_device_query_name */
  648. #ifndef EGL_EXT_display_alloc
  649. #define EGL_EXT_display_alloc 1
  650. #define EGL_ALLOC_NEW_DISPLAY_EXT 0x3379
  651. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYDISPLAYEXTPROC) (EGLDisplay dpy);
  652. #ifdef EGL_EGLEXT_PROTOTYPES
  653. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyDisplayEXT (EGLDisplay dpy);
  654. #endif
  655. #endif /* EGL_EXT_display_alloc */
  656. #ifndef EGL_EXT_explicit_device
  657. #define EGL_EXT_explicit_device 1
  658. #endif /* EGL_EXT_explicit_device */
  659. #ifndef EGL_EXT_gl_colorspace_bt2020_hlg
  660. #define EGL_EXT_gl_colorspace_bt2020_hlg 1
  661. #define EGL_GL_COLORSPACE_BT2020_HLG_EXT 0x3540
  662. #endif /* EGL_EXT_gl_colorspace_bt2020_hlg */
  663. #ifndef EGL_EXT_gl_colorspace_bt2020_linear
  664. #define EGL_EXT_gl_colorspace_bt2020_linear 1
  665. #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
  666. #endif /* EGL_EXT_gl_colorspace_bt2020_linear */
  667. #ifndef EGL_EXT_gl_colorspace_bt2020_pq
  668. #define EGL_EXT_gl_colorspace_bt2020_pq 1
  669. #define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
  670. #endif /* EGL_EXT_gl_colorspace_bt2020_pq */
  671. #ifndef EGL_EXT_gl_colorspace_display_p3
  672. #define EGL_EXT_gl_colorspace_display_p3 1
  673. #define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363
  674. #endif /* EGL_EXT_gl_colorspace_display_p3 */
  675. #ifndef EGL_EXT_gl_colorspace_display_p3_linear
  676. #define EGL_EXT_gl_colorspace_display_p3_linear 1
  677. #define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362
  678. #endif /* EGL_EXT_gl_colorspace_display_p3_linear */
  679. #ifndef EGL_EXT_gl_colorspace_display_p3_passthrough
  680. #define EGL_EXT_gl_colorspace_display_p3_passthrough 1
  681. #define EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT 0x3490
  682. #endif /* EGL_EXT_gl_colorspace_display_p3_passthrough */
  683. #ifndef EGL_EXT_gl_colorspace_scrgb
  684. #define EGL_EXT_gl_colorspace_scrgb 1
  685. #define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351
  686. #endif /* EGL_EXT_gl_colorspace_scrgb */
  687. #ifndef EGL_EXT_gl_colorspace_scrgb_linear
  688. #define EGL_EXT_gl_colorspace_scrgb_linear 1
  689. #define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
  690. #endif /* EGL_EXT_gl_colorspace_scrgb_linear */
  691. #ifndef EGL_EXT_image_dma_buf_import
  692. #define EGL_EXT_image_dma_buf_import 1
  693. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  694. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  695. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  696. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  697. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  698. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  699. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  700. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  701. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  702. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  703. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  704. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  705. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  706. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  707. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  708. #define EGL_ITU_REC601_EXT 0x327F
  709. #define EGL_ITU_REC709_EXT 0x3280
  710. #define EGL_ITU_REC2020_EXT 0x3281
  711. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  712. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  713. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  714. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  715. #endif /* EGL_EXT_image_dma_buf_import */
  716. #ifndef EGL_EXT_image_dma_buf_import_modifiers
  717. #define EGL_EXT_image_dma_buf_import_modifiers 1
  718. #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
  719. #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
  720. #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
  721. #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
  722. #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
  723. #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
  724. #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
  725. #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
  726. #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
  727. #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
  728. #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
  729. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
  730. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
  731. #ifdef EGL_EGLEXT_PROTOTYPES
  732. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
  733. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
  734. #endif
  735. #endif /* EGL_EXT_image_dma_buf_import_modifiers */
  736. #ifndef EGL_EXT_image_gl_colorspace
  737. #define EGL_EXT_image_gl_colorspace 1
  738. #define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D
  739. #endif /* EGL_EXT_image_gl_colorspace */
  740. #ifndef EGL_EXT_image_implicit_sync_control
  741. #define EGL_EXT_image_implicit_sync_control 1
  742. #define EGL_IMPORT_SYNC_TYPE_EXT 0x3470
  743. #define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471
  744. #define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472
  745. #endif /* EGL_EXT_image_implicit_sync_control */
  746. #ifndef EGL_EXT_multiview_window
  747. #define EGL_EXT_multiview_window 1
  748. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  749. #endif /* EGL_EXT_multiview_window */
  750. #ifndef EGL_EXT_output_base
  751. #define EGL_EXT_output_base 1
  752. typedef void *EGLOutputLayerEXT;
  753. typedef void *EGLOutputPortEXT;
  754. #define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0)
  755. #define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0)
  756. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  757. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  758. #define EGL_SWAP_INTERVAL_EXT 0x322F
  759. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  760. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  761. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  762. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  763. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  764. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  765. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  766. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  767. #ifdef EGL_EGLEXT_PROTOTYPES
  768. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  769. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  770. EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  771. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  772. EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  773. EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  774. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  775. EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  776. #endif
  777. #endif /* EGL_EXT_output_base */
  778. #ifndef EGL_EXT_output_drm
  779. #define EGL_EXT_output_drm 1
  780. #define EGL_DRM_CRTC_EXT 0x3234
  781. #define EGL_DRM_PLANE_EXT 0x3235
  782. #define EGL_DRM_CONNECTOR_EXT 0x3236
  783. #endif /* EGL_EXT_output_drm */
  784. #ifndef EGL_EXT_output_openwf
  785. #define EGL_EXT_output_openwf 1
  786. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  787. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  788. #endif /* EGL_EXT_output_openwf */
  789. #ifndef EGL_EXT_pixel_format_float
  790. #define EGL_EXT_pixel_format_float 1
  791. #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
  792. #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
  793. #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
  794. #endif /* EGL_EXT_pixel_format_float */
  795. #ifndef EGL_EXT_platform_base
  796. #define EGL_EXT_platform_base 1
  797. typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
  798. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  799. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  800. #ifdef EGL_EGLEXT_PROTOTYPES
  801. EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
  802. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  803. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  804. #endif
  805. #endif /* EGL_EXT_platform_base */
  806. #ifndef EGL_EXT_platform_device
  807. #define EGL_EXT_platform_device 1
  808. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  809. #endif /* EGL_EXT_platform_device */
  810. #ifndef EGL_EXT_platform_wayland
  811. #define EGL_EXT_platform_wayland 1
  812. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  813. #endif /* EGL_EXT_platform_wayland */
  814. #ifndef EGL_EXT_platform_x11
  815. #define EGL_EXT_platform_x11 1
  816. #define EGL_PLATFORM_X11_EXT 0x31D5
  817. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  818. #endif /* EGL_EXT_platform_x11 */
  819. #ifndef EGL_EXT_platform_xcb
  820. #define EGL_EXT_platform_xcb 1
  821. #define EGL_PLATFORM_XCB_EXT 0x31DC
  822. #define EGL_PLATFORM_XCB_SCREEN_EXT 0x31DE
  823. #endif /* EGL_EXT_platform_xcb */
  824. #ifndef EGL_EXT_present_opaque
  825. #define EGL_EXT_present_opaque 1
  826. #define EGL_PRESENT_OPAQUE_EXT 0x31DF
  827. #endif /* EGL_EXT_present_opaque */
  828. #ifndef EGL_EXT_protected_content
  829. #define EGL_EXT_protected_content 1
  830. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  831. #endif /* EGL_EXT_protected_content */
  832. #ifndef EGL_EXT_protected_surface
  833. #define EGL_EXT_protected_surface 1
  834. #endif /* EGL_EXT_protected_surface */
  835. #ifndef EGL_EXT_query_reset_notification_strategy
  836. #define EGL_EXT_query_reset_notification_strategy 1
  837. #endif /* EGL_EXT_query_reset_notification_strategy */
  838. #ifndef EGL_EXT_stream_consumer_egloutput
  839. #define EGL_EXT_stream_consumer_egloutput 1
  840. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  841. #ifdef EGL_EGLEXT_PROTOTYPES
  842. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  843. #endif
  844. #endif /* EGL_EXT_stream_consumer_egloutput */
  845. #ifndef EGL_EXT_surface_CTA861_3_metadata
  846. #define EGL_EXT_surface_CTA861_3_metadata 1
  847. #define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
  848. #define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
  849. #endif /* EGL_EXT_surface_CTA861_3_metadata */
  850. #ifndef EGL_EXT_surface_SMPTE2086_metadata
  851. #define EGL_EXT_surface_SMPTE2086_metadata 1
  852. #define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
  853. #define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
  854. #define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
  855. #define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
  856. #define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
  857. #define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
  858. #define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
  859. #define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
  860. #define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
  861. #define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
  862. #define EGL_METADATA_SCALING_EXT 50000
  863. #endif /* EGL_EXT_surface_SMPTE2086_metadata */
  864. #ifndef EGL_EXT_surface_compression
  865. #define EGL_EXT_surface_compression 1
  866. #define EGL_SURFACE_COMPRESSION_EXT 0x34B0
  867. #define EGL_SURFACE_COMPRESSION_PLANE1_EXT 0x328E
  868. #define EGL_SURFACE_COMPRESSION_PLANE2_EXT 0x328F
  869. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT 0x34B1
  870. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT 0x34B2
  871. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXT 0x34B4
  872. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXT 0x34B5
  873. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXT 0x34B6
  874. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXT 0x34B7
  875. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXT 0x34B8
  876. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXT 0x34B9
  877. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXT 0x34BA
  878. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXT 0x34BB
  879. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXT 0x34BC
  880. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXT 0x34BD
  881. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXT 0x34BE
  882. #define EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXT 0x34BF
  883. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSUPPORTEDCOMPRESSIONRATESEXTPROC) (EGLDisplay dpy, EGLConfig config, const EGLAttrib *attrib_list, EGLint *rates, EGLint rate_size, EGLint *num_rates);
  884. #ifdef EGL_EGLEXT_PROTOTYPES
  885. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySupportedCompressionRatesEXT (EGLDisplay dpy, EGLConfig config, const EGLAttrib *attrib_list, EGLint *rates, EGLint rate_size, EGLint *num_rates);
  886. #endif
  887. #endif /* EGL_EXT_surface_compression */
  888. #ifndef EGL_EXT_swap_buffers_with_damage
  889. #define EGL_EXT_swap_buffers_with_damage 1
  890. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
  891. #ifdef EGL_EGLEXT_PROTOTYPES
  892. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
  893. #endif
  894. #endif /* EGL_EXT_swap_buffers_with_damage */
  895. #ifndef EGL_EXT_sync_reuse
  896. #define EGL_EXT_sync_reuse 1
  897. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  898. #ifdef EGL_EGLEXT_PROTOTYPES
  899. EGLAPI EGLBoolean EGLAPIENTRY eglUnsignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  900. #endif
  901. #endif /* EGL_EXT_sync_reuse */
  902. #ifndef EGL_EXT_yuv_surface
  903. #define EGL_EXT_yuv_surface 1
  904. #define EGL_YUV_ORDER_EXT 0x3301
  905. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  906. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  907. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  908. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  909. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  910. #define EGL_YUV_BUFFER_EXT 0x3300
  911. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  912. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  913. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  914. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  915. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  916. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  917. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  918. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  919. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  920. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  921. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  922. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  923. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  924. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  925. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  926. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  927. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  928. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  929. #endif /* EGL_EXT_yuv_surface */
  930. #ifndef EGL_HI_clientpixmap
  931. #define EGL_HI_clientpixmap 1
  932. struct EGLClientPixmapHI {
  933. void *pData;
  934. EGLint iWidth;
  935. EGLint iHeight;
  936. EGLint iStride;
  937. };
  938. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  939. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  940. #ifdef EGL_EGLEXT_PROTOTYPES
  941. EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  942. #endif
  943. #endif /* EGL_HI_clientpixmap */
  944. #ifndef EGL_HI_colorformats
  945. #define EGL_HI_colorformats 1
  946. #define EGL_COLOR_FORMAT_HI 0x8F70
  947. #define EGL_COLOR_RGB_HI 0x8F71
  948. #define EGL_COLOR_RGBA_HI 0x8F72
  949. #define EGL_COLOR_ARGB_HI 0x8F73
  950. #endif /* EGL_HI_colorformats */
  951. #ifndef EGL_IMG_context_priority
  952. #define EGL_IMG_context_priority 1
  953. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  954. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  955. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  956. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  957. #endif /* EGL_IMG_context_priority */
  958. #ifndef EGL_IMG_image_plane_attribs
  959. #define EGL_IMG_image_plane_attribs 1
  960. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  961. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  962. #endif /* EGL_IMG_image_plane_attribs */
  963. #ifndef EGL_MESA_drm_image
  964. #define EGL_MESA_drm_image 1
  965. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  966. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  967. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  968. #define EGL_DRM_BUFFER_MESA 0x31D3
  969. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  970. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  971. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  972. #define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x00000004
  973. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  974. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  975. #ifdef EGL_EGLEXT_PROTOTYPES
  976. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
  977. EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  978. #endif
  979. #endif /* EGL_MESA_drm_image */
  980. #ifndef EGL_MESA_image_dma_buf_export
  981. #define EGL_MESA_image_dma_buf_export 1
  982. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  983. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  984. #ifdef EGL_EGLEXT_PROTOTYPES
  985. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  986. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  987. #endif
  988. #endif /* EGL_MESA_image_dma_buf_export */
  989. #ifndef EGL_MESA_platform_gbm
  990. #define EGL_MESA_platform_gbm 1
  991. #define EGL_PLATFORM_GBM_MESA 0x31D7
  992. #endif /* EGL_MESA_platform_gbm */
  993. #ifndef EGL_MESA_platform_surfaceless
  994. #define EGL_MESA_platform_surfaceless 1
  995. #define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
  996. #endif /* EGL_MESA_platform_surfaceless */
  997. #ifndef EGL_MESA_query_driver
  998. #define EGL_MESA_query_driver 1
  999. typedef char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERCONFIGPROC) (EGLDisplay dpy);
  1000. typedef const char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERNAMEPROC) (EGLDisplay dpy);
  1001. #ifdef EGL_EGLEXT_PROTOTYPES
  1002. EGLAPI char *EGLAPIENTRY eglGetDisplayDriverConfig (EGLDisplay dpy);
  1003. EGLAPI const char *EGLAPIENTRY eglGetDisplayDriverName (EGLDisplay dpy);
  1004. #endif
  1005. #endif /* EGL_MESA_query_driver */
  1006. #ifndef EGL_NOK_swap_region
  1007. #define EGL_NOK_swap_region 1
  1008. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1009. #ifdef EGL_EGLEXT_PROTOTYPES
  1010. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1011. #endif
  1012. #endif /* EGL_NOK_swap_region */
  1013. #ifndef EGL_NOK_swap_region2
  1014. #define EGL_NOK_swap_region2 1
  1015. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1016. #ifdef EGL_EGLEXT_PROTOTYPES
  1017. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1018. #endif
  1019. #endif /* EGL_NOK_swap_region2 */
  1020. #ifndef EGL_NOK_texture_from_pixmap
  1021. #define EGL_NOK_texture_from_pixmap 1
  1022. #define EGL_Y_INVERTED_NOK 0x307F
  1023. #endif /* EGL_NOK_texture_from_pixmap */
  1024. #ifndef EGL_NV_3dvision_surface
  1025. #define EGL_NV_3dvision_surface 1
  1026. #define EGL_AUTO_STEREO_NV 0x3136
  1027. #endif /* EGL_NV_3dvision_surface */
  1028. #ifndef EGL_NV_context_priority_realtime
  1029. #define EGL_NV_context_priority_realtime 1
  1030. #define EGL_CONTEXT_PRIORITY_REALTIME_NV 0x3357
  1031. #endif /* EGL_NV_context_priority_realtime */
  1032. #ifndef EGL_NV_coverage_sample
  1033. #define EGL_NV_coverage_sample 1
  1034. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  1035. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  1036. #endif /* EGL_NV_coverage_sample */
  1037. #ifndef EGL_NV_coverage_sample_resolve
  1038. #define EGL_NV_coverage_sample_resolve 1
  1039. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  1040. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  1041. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  1042. #endif /* EGL_NV_coverage_sample_resolve */
  1043. #ifndef EGL_NV_cuda_event
  1044. #define EGL_NV_cuda_event 1
  1045. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  1046. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  1047. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  1048. #endif /* EGL_NV_cuda_event */
  1049. #ifndef EGL_NV_depth_nonlinear
  1050. #define EGL_NV_depth_nonlinear 1
  1051. #define EGL_DEPTH_ENCODING_NV 0x30E2
  1052. #define EGL_DEPTH_ENCODING_NONE_NV 0
  1053. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  1054. #endif /* EGL_NV_depth_nonlinear */
  1055. #ifndef EGL_NV_device_cuda
  1056. #define EGL_NV_device_cuda 1
  1057. #define EGL_CUDA_DEVICE_NV 0x323A
  1058. #endif /* EGL_NV_device_cuda */
  1059. #ifndef EGL_NV_native_query
  1060. #define EGL_NV_native_query 1
  1061. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  1062. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  1063. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  1064. #ifdef EGL_EGLEXT_PROTOTYPES
  1065. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  1066. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  1067. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  1068. #endif
  1069. #endif /* EGL_NV_native_query */
  1070. #ifndef EGL_NV_post_convert_rounding
  1071. #define EGL_NV_post_convert_rounding 1
  1072. #endif /* EGL_NV_post_convert_rounding */
  1073. #ifndef EGL_NV_post_sub_buffer
  1074. #define EGL_NV_post_sub_buffer 1
  1075. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  1076. typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1077. #ifdef EGL_EGLEXT_PROTOTYPES
  1078. EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1079. #endif
  1080. #endif /* EGL_NV_post_sub_buffer */
  1081. #ifndef EGL_NV_quadruple_buffer
  1082. #define EGL_NV_quadruple_buffer 1
  1083. #define EGL_QUADRUPLE_BUFFER_NV 0x3231
  1084. #endif /* EGL_NV_quadruple_buffer */
  1085. #ifndef EGL_NV_robustness_video_memory_purge
  1086. #define EGL_NV_robustness_video_memory_purge 1
  1087. #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
  1088. #endif /* EGL_NV_robustness_video_memory_purge */
  1089. #ifndef EGL_NV_stream_consumer_eglimage
  1090. #define EGL_NV_stream_consumer_eglimage 1
  1091. #define EGL_STREAM_CONSUMER_IMAGE_NV 0x3373
  1092. #define EGL_STREAM_IMAGE_ADD_NV 0x3374
  1093. #define EGL_STREAM_IMAGE_REMOVE_NV 0x3375
  1094. #define EGL_STREAM_IMAGE_AVAILABLE_NV 0x3376
  1095. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, const EGLuint64KHR *modifiers, const EGLAttrib *attrib_list);
  1096. typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
  1097. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMACQUIREIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
  1098. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMRELEASEIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
  1099. #ifdef EGL_EGLEXT_PROTOTYPES
  1100. EGLAPI EGLBoolean EGLAPIENTRY eglStreamImageConsumerConnectNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, const EGLuint64KHR *modifiers, const EGLAttrib *attrib_list);
  1101. EGLAPI EGLint EGLAPIENTRY eglQueryStreamConsumerEventNV (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
  1102. EGLAPI EGLBoolean EGLAPIENTRY eglStreamAcquireImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
  1103. EGLAPI EGLBoolean EGLAPIENTRY eglStreamReleaseImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
  1104. #endif
  1105. #endif /* EGL_NV_stream_consumer_eglimage */
  1106. #ifndef EGL_NV_stream_consumer_eglimage_use_scanout_attrib
  1107. #define EGL_NV_stream_consumer_eglimage_use_scanout_attrib 1
  1108. #define EGL_STREAM_CONSUMER_IMAGE_USE_SCANOUT_NV 0x3378
  1109. #endif /* EGL_NV_stream_consumer_eglimage_use_scanout_attrib */
  1110. #ifndef EGL_NV_stream_consumer_gltexture_yuv
  1111. #define EGL_NV_stream_consumer_gltexture_yuv 1
  1112. #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
  1113. #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
  1114. #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
  1115. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  1116. #ifdef EGL_EGLEXT_PROTOTYPES
  1117. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  1118. #endif
  1119. #endif /* EGL_NV_stream_consumer_gltexture_yuv */
  1120. #ifndef EGL_NV_stream_cross_display
  1121. #define EGL_NV_stream_cross_display 1
  1122. #define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
  1123. #endif /* EGL_NV_stream_cross_display */
  1124. #ifndef EGL_NV_stream_cross_object
  1125. #define EGL_NV_stream_cross_object 1
  1126. #define EGL_STREAM_CROSS_OBJECT_NV 0x334D
  1127. #endif /* EGL_NV_stream_cross_object */
  1128. #ifndef EGL_NV_stream_cross_partition
  1129. #define EGL_NV_stream_cross_partition 1
  1130. #define EGL_STREAM_CROSS_PARTITION_NV 0x323F
  1131. #endif /* EGL_NV_stream_cross_partition */
  1132. #ifndef EGL_NV_stream_cross_process
  1133. #define EGL_NV_stream_cross_process 1
  1134. #define EGL_STREAM_CROSS_PROCESS_NV 0x3245
  1135. #endif /* EGL_NV_stream_cross_process */
  1136. #ifndef EGL_NV_stream_cross_system
  1137. #define EGL_NV_stream_cross_system 1
  1138. #define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
  1139. #endif /* EGL_NV_stream_cross_system */
  1140. #ifndef EGL_NV_stream_dma
  1141. #define EGL_NV_stream_dma 1
  1142. #define EGL_STREAM_DMA_NV 0x3371
  1143. #define EGL_STREAM_DMA_SERVER_NV 0x3372
  1144. #endif /* EGL_NV_stream_dma */
  1145. #ifndef EGL_NV_stream_fifo_next
  1146. #define EGL_NV_stream_fifo_next 1
  1147. #define EGL_PENDING_FRAME_NV 0x3329
  1148. #define EGL_STREAM_TIME_PENDING_NV 0x332A
  1149. #endif /* EGL_NV_stream_fifo_next */
  1150. #ifndef EGL_NV_stream_fifo_synchronous
  1151. #define EGL_NV_stream_fifo_synchronous 1
  1152. #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
  1153. #endif /* EGL_NV_stream_fifo_synchronous */
  1154. #ifndef EGL_NV_stream_flush
  1155. #define EGL_NV_stream_flush 1
  1156. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMFLUSHNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1157. #ifdef EGL_EGLEXT_PROTOTYPES
  1158. EGLAPI EGLBoolean EGLAPIENTRY eglStreamFlushNV (EGLDisplay dpy, EGLStreamKHR stream);
  1159. #endif
  1160. #endif /* EGL_NV_stream_flush */
  1161. #ifndef EGL_NV_stream_frame_limits
  1162. #define EGL_NV_stream_frame_limits 1
  1163. #define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
  1164. #define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
  1165. #endif /* EGL_NV_stream_frame_limits */
  1166. #ifndef EGL_NV_stream_metadata
  1167. #define EGL_NV_stream_metadata 1
  1168. #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  1169. #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  1170. #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  1171. #define EGL_PRODUCER_METADATA_NV 0x3253
  1172. #define EGL_CONSUMER_METADATA_NV 0x3254
  1173. #define EGL_PENDING_METADATA_NV 0x3328
  1174. #define EGL_METADATA0_SIZE_NV 0x3255
  1175. #define EGL_METADATA1_SIZE_NV 0x3256
  1176. #define EGL_METADATA2_SIZE_NV 0x3257
  1177. #define EGL_METADATA3_SIZE_NV 0x3258
  1178. #define EGL_METADATA0_TYPE_NV 0x3259
  1179. #define EGL_METADATA1_TYPE_NV 0x325A
  1180. #define EGL_METADATA2_TYPE_NV 0x325B
  1181. #define EGL_METADATA3_TYPE_NV 0x325C
  1182. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  1183. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  1184. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  1185. #ifdef EGL_EGLEXT_PROTOTYPES
  1186. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  1187. EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  1188. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  1189. #endif
  1190. #endif /* EGL_NV_stream_metadata */
  1191. #ifndef EGL_NV_stream_origin
  1192. #define EGL_NV_stream_origin 1
  1193. #define EGL_STREAM_FRAME_ORIGIN_X_NV 0x3366
  1194. #define EGL_STREAM_FRAME_ORIGIN_Y_NV 0x3367
  1195. #define EGL_STREAM_FRAME_MAJOR_AXIS_NV 0x3368
  1196. #define EGL_CONSUMER_AUTO_ORIENTATION_NV 0x3369
  1197. #define EGL_PRODUCER_AUTO_ORIENTATION_NV 0x336A
  1198. #define EGL_LEFT_NV 0x336B
  1199. #define EGL_RIGHT_NV 0x336C
  1200. #define EGL_TOP_NV 0x336D
  1201. #define EGL_BOTTOM_NV 0x336E
  1202. #define EGL_X_AXIS_NV 0x336F
  1203. #define EGL_Y_AXIS_NV 0x3370
  1204. #endif /* EGL_NV_stream_origin */
  1205. #ifndef EGL_NV_stream_remote
  1206. #define EGL_NV_stream_remote 1
  1207. #define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
  1208. #define EGL_STREAM_TYPE_NV 0x3241
  1209. #define EGL_STREAM_PROTOCOL_NV 0x3242
  1210. #define EGL_STREAM_ENDPOINT_NV 0x3243
  1211. #define EGL_STREAM_LOCAL_NV 0x3244
  1212. #define EGL_STREAM_PRODUCER_NV 0x3247
  1213. #define EGL_STREAM_CONSUMER_NV 0x3248
  1214. #define EGL_STREAM_PROTOCOL_FD_NV 0x3246
  1215. #endif /* EGL_NV_stream_remote */
  1216. #ifndef EGL_NV_stream_reset
  1217. #define EGL_NV_stream_reset 1
  1218. #define EGL_SUPPORT_RESET_NV 0x3334
  1219. #define EGL_SUPPORT_REUSE_NV 0x3335
  1220. typedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1221. #ifdef EGL_EGLEXT_PROTOTYPES
  1222. EGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR stream);
  1223. #endif
  1224. #endif /* EGL_NV_stream_reset */
  1225. #ifndef EGL_NV_stream_socket
  1226. #define EGL_NV_stream_socket 1
  1227. #define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
  1228. #define EGL_SOCKET_HANDLE_NV 0x324C
  1229. #define EGL_SOCKET_TYPE_NV 0x324D
  1230. #endif /* EGL_NV_stream_socket */
  1231. #ifndef EGL_NV_stream_socket_inet
  1232. #define EGL_NV_stream_socket_inet 1
  1233. #define EGL_SOCKET_TYPE_INET_NV 0x324F
  1234. #endif /* EGL_NV_stream_socket_inet */
  1235. #ifndef EGL_NV_stream_socket_unix
  1236. #define EGL_NV_stream_socket_unix 1
  1237. #define EGL_SOCKET_TYPE_UNIX_NV 0x324E
  1238. #endif /* EGL_NV_stream_socket_unix */
  1239. #ifndef EGL_NV_stream_sync
  1240. #define EGL_NV_stream_sync 1
  1241. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  1242. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  1243. #ifdef EGL_EGLEXT_PROTOTYPES
  1244. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  1245. #endif
  1246. #endif /* EGL_NV_stream_sync */
  1247. #ifndef EGL_NV_sync
  1248. #define EGL_NV_sync 1
  1249. typedef void *EGLSyncNV;
  1250. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  1251. #ifdef KHRONOS_SUPPORT_INT64
  1252. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  1253. #define EGL_SYNC_STATUS_NV 0x30E7
  1254. #define EGL_SIGNALED_NV 0x30E8
  1255. #define EGL_UNSIGNALED_NV 0x30E9
  1256. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  1257. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
  1258. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  1259. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  1260. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  1261. #define EGL_SYNC_TYPE_NV 0x30ED
  1262. #define EGL_SYNC_CONDITION_NV 0x30EE
  1263. #define EGL_SYNC_FENCE_NV 0x30EF
  1264. #define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0)
  1265. typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  1266. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  1267. typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
  1268. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1269. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  1270. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
  1271. #ifdef EGL_EGLEXT_PROTOTYPES
  1272. EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  1273. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
  1274. EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
  1275. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1276. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
  1277. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
  1278. #endif
  1279. #endif /* KHRONOS_SUPPORT_INT64 */
  1280. #endif /* EGL_NV_sync */
  1281. #ifndef EGL_NV_system_time
  1282. #define EGL_NV_system_time 1
  1283. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  1284. #ifdef KHRONOS_SUPPORT_INT64
  1285. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  1286. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
  1287. #ifdef EGL_EGLEXT_PROTOTYPES
  1288. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
  1289. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
  1290. #endif
  1291. #endif /* KHRONOS_SUPPORT_INT64 */
  1292. #endif /* EGL_NV_system_time */
  1293. #ifndef EGL_NV_triple_buffer
  1294. #define EGL_NV_triple_buffer 1
  1295. #define EGL_TRIPLE_BUFFER_NV 0x3230
  1296. #endif /* EGL_NV_triple_buffer */
  1297. #ifndef EGL_QNX_image_native_buffer
  1298. #define EGL_QNX_image_native_buffer 1
  1299. #define EGL_NATIVE_BUFFER_QNX 0x3551
  1300. #endif /* EGL_QNX_image_native_buffer */
  1301. #ifndef EGL_QNX_platform_screen
  1302. #define EGL_QNX_platform_screen 1
  1303. #define EGL_PLATFORM_SCREEN_QNX 0x3550
  1304. #endif /* EGL_QNX_platform_screen */
  1305. #ifndef EGL_TIZEN_image_native_buffer
  1306. #define EGL_TIZEN_image_native_buffer 1
  1307. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  1308. #endif /* EGL_TIZEN_image_native_buffer */
  1309. #ifndef EGL_TIZEN_image_native_surface
  1310. #define EGL_TIZEN_image_native_surface 1
  1311. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  1312. #endif /* EGL_TIZEN_image_native_surface */
  1313. #ifndef EGL_WL_bind_wayland_display
  1314. #define EGL_WL_bind_wayland_display 1
  1315. #define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
  1316. #define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
  1317. #define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
  1318. struct wl_display;
  1319. struct wl_resource;
  1320. #define EGL_WAYLAND_BUFFER_WL 0x31D5
  1321. #define EGL_WAYLAND_PLANE_WL 0x31D6
  1322. #define EGL_TEXTURE_Y_U_V_WL 0x31D7
  1323. #define EGL_TEXTURE_Y_UV_WL 0x31D8
  1324. #define EGL_TEXTURE_Y_XUXV_WL 0x31D9
  1325. #define EGL_TEXTURE_EXTERNAL_WL 0x31DA
  1326. #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
  1327. typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
  1328. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
  1329. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
  1330. #ifdef EGL_EGLEXT_PROTOTYPES
  1331. EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
  1332. EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
  1333. EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
  1334. #endif
  1335. #endif /* EGL_WL_bind_wayland_display */
  1336. #ifndef EGL_WL_create_wayland_buffer_from_image
  1337. #define EGL_WL_create_wayland_buffer_from_image 1
  1338. #define PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC
  1339. struct wl_buffer;
  1340. typedef struct wl_buffer *(EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC) (EGLDisplay dpy, EGLImageKHR image);
  1341. #ifdef EGL_EGLEXT_PROTOTYPES
  1342. EGLAPI struct wl_buffer *EGLAPIENTRY eglCreateWaylandBufferFromImageWL (EGLDisplay dpy, EGLImageKHR image);
  1343. #endif
  1344. #endif /* EGL_WL_create_wayland_buffer_from_image */
  1345. #ifdef __cplusplus
  1346. }
  1347. #endif
  1348. #endif