eglext.h 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445
  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: e8baa0bf39 $ on $Git commit date: 2021-04-26 17:56:26 -0600 $
  16. */
  17. #include <EGL/eglplatform.h>
  18. #define EGL_EGLEXT_VERSION 20210604
  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_ANGLE_d3d_share_handle_client_buffer
  497. #define EGL_ANGLE_d3d_share_handle_client_buffer 1
  498. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  499. #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
  500. #ifndef EGL_ANGLE_device_d3d
  501. #define EGL_ANGLE_device_d3d 1
  502. #define EGL_D3D9_DEVICE_ANGLE 0x33A0
  503. #define EGL_D3D11_DEVICE_ANGLE 0x33A1
  504. #endif /* EGL_ANGLE_device_d3d */
  505. #ifndef EGL_ANGLE_query_surface_pointer
  506. #define EGL_ANGLE_query_surface_pointer 1
  507. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  508. #ifdef EGL_EGLEXT_PROTOTYPES
  509. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  510. #endif
  511. #endif /* EGL_ANGLE_query_surface_pointer */
  512. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  513. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  514. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  515. #ifndef EGL_ANGLE_sync_control_rate
  516. #define EGL_ANGLE_sync_control_rate 1
  517. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMSCRATEANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
  518. #ifdef EGL_EGLEXT_PROTOTYPES
  519. EGLAPI EGLBoolean EGLAPIENTRY eglGetMscRateANGLE (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
  520. #endif
  521. #endif /* EGL_ANGLE_sync_control_rate */
  522. #ifndef EGL_ANGLE_window_fixed_size
  523. #define EGL_ANGLE_window_fixed_size 1
  524. #define EGL_FIXED_SIZE_ANGLE 0x3201
  525. #endif /* EGL_ANGLE_window_fixed_size */
  526. #ifndef EGL_ARM_image_format
  527. #define EGL_ARM_image_format 1
  528. #define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287
  529. #define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288
  530. #endif /* EGL_ARM_image_format */
  531. #ifndef EGL_ARM_implicit_external_sync
  532. #define EGL_ARM_implicit_external_sync 1
  533. #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
  534. #endif /* EGL_ARM_implicit_external_sync */
  535. #ifndef EGL_ARM_pixmap_multisample_discard
  536. #define EGL_ARM_pixmap_multisample_discard 1
  537. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  538. #endif /* EGL_ARM_pixmap_multisample_discard */
  539. #ifndef EGL_EXT_bind_to_front
  540. #define EGL_EXT_bind_to_front 1
  541. #define EGL_FRONT_BUFFER_EXT 0x3464
  542. #endif /* EGL_EXT_bind_to_front */
  543. #ifndef EGL_EXT_buffer_age
  544. #define EGL_EXT_buffer_age 1
  545. #define EGL_BUFFER_AGE_EXT 0x313D
  546. #endif /* EGL_EXT_buffer_age */
  547. #ifndef EGL_EXT_client_extensions
  548. #define EGL_EXT_client_extensions 1
  549. #endif /* EGL_EXT_client_extensions */
  550. #ifndef EGL_EXT_client_sync
  551. #define EGL_EXT_client_sync 1
  552. #define EGL_SYNC_CLIENT_EXT 0x3364
  553. #define EGL_SYNC_CLIENT_SIGNAL_EXT 0x3365
  554. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCLIENTSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  555. #ifdef EGL_EGLEXT_PROTOTYPES
  556. EGLAPI EGLBoolean EGLAPIENTRY eglClientSignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  557. #endif
  558. #endif /* EGL_EXT_client_sync */
  559. #ifndef EGL_EXT_compositor
  560. #define EGL_EXT_compositor 1
  561. #define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
  562. #define EGL_EXTERNAL_REF_ID_EXT 0x3461
  563. #define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
  564. #define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
  565. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint *external_ref_ids, EGLint num_entries);
  566. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
  567. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
  568. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
  569. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id);
  570. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height);
  571. typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy);
  572. #ifdef EGL_EGLEXT_PROTOTYPES
  573. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *external_ref_ids, EGLint num_entries);
  574. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
  575. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
  576. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
  577. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win_id);
  578. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, EGLint width, EGLint height);
  579. EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id, EGLint policy);
  580. #endif
  581. #endif /* EGL_EXT_compositor */
  582. #ifndef EGL_EXT_create_context_robustness
  583. #define EGL_EXT_create_context_robustness 1
  584. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  585. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  586. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  587. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  588. #endif /* EGL_EXT_create_context_robustness */
  589. #ifndef EGL_EXT_device_base
  590. #define EGL_EXT_device_base 1
  591. typedef void *EGLDeviceEXT;
  592. #define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0)
  593. #define EGL_BAD_DEVICE_EXT 0x322B
  594. #define EGL_DEVICE_EXT 0x322C
  595. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  596. typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  597. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  598. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  599. #ifdef EGL_EGLEXT_PROTOTYPES
  600. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  601. EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
  602. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  603. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  604. #endif
  605. #endif /* EGL_EXT_device_base */
  606. #ifndef EGL_EXT_device_drm
  607. #define EGL_EXT_device_drm 1
  608. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  609. /* XXX [JRJ] Local edit until specs are updated at Khronos */
  610. #define EGL_DRM_MASTER_FD_EXT 0x333C
  611. #endif /* EGL_EXT_device_drm */
  612. #ifndef EGL_EXT_device_drm_render_node
  613. #define EGL_EXT_device_drm_render_node 1
  614. #define EGL_DRM_RENDER_NODE_FILE_EXT 0x3377
  615. #endif /* EGL_EXT_device_drm_render_node */
  616. #ifndef EGL_EXT_device_enumeration
  617. #define EGL_EXT_device_enumeration 1
  618. #endif /* EGL_EXT_device_enumeration */
  619. #ifndef EGL_EXT_device_openwf
  620. #define EGL_EXT_device_openwf 1
  621. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  622. #endif /* EGL_EXT_device_openwf */
  623. #ifndef EGL_EXT_device_persistent_id
  624. #define EGL_EXT_device_persistent_id 1
  625. #define EGL_DEVICE_UUID_EXT 0x335C
  626. #define EGL_DRIVER_UUID_EXT 0x335D
  627. #define EGL_DRIVER_NAME_EXT 0x335E
  628. #endif /* EGL_EXT_device_persistent_id */
  629. #ifndef EGL_EXT_device_query
  630. #define EGL_EXT_device_query 1
  631. #endif /* EGL_EXT_device_query */
  632. #ifndef EGL_EXT_device_query_name
  633. #define EGL_EXT_device_query_name 1
  634. #define EGL_RENDERER_EXT 0x335F
  635. #endif /* EGL_EXT_device_query_name */
  636. #ifndef EGL_EXT_gl_colorspace_bt2020_linear
  637. #define EGL_EXT_gl_colorspace_bt2020_linear 1
  638. #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
  639. #endif /* EGL_EXT_gl_colorspace_bt2020_linear */
  640. #ifndef EGL_EXT_gl_colorspace_bt2020_pq
  641. #define EGL_EXT_gl_colorspace_bt2020_pq 1
  642. #define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
  643. #endif /* EGL_EXT_gl_colorspace_bt2020_pq */
  644. #ifndef EGL_EXT_gl_colorspace_display_p3
  645. #define EGL_EXT_gl_colorspace_display_p3 1
  646. #define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363
  647. #endif /* EGL_EXT_gl_colorspace_display_p3 */
  648. #ifndef EGL_EXT_gl_colorspace_display_p3_linear
  649. #define EGL_EXT_gl_colorspace_display_p3_linear 1
  650. #define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362
  651. #endif /* EGL_EXT_gl_colorspace_display_p3_linear */
  652. #ifndef EGL_EXT_gl_colorspace_display_p3_passthrough
  653. #define EGL_EXT_gl_colorspace_display_p3_passthrough 1
  654. #define EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT 0x3490
  655. #endif /* EGL_EXT_gl_colorspace_display_p3_passthrough */
  656. #ifndef EGL_EXT_gl_colorspace_scrgb
  657. #define EGL_EXT_gl_colorspace_scrgb 1
  658. #define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351
  659. #endif /* EGL_EXT_gl_colorspace_scrgb */
  660. #ifndef EGL_EXT_gl_colorspace_scrgb_linear
  661. #define EGL_EXT_gl_colorspace_scrgb_linear 1
  662. #define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
  663. #endif /* EGL_EXT_gl_colorspace_scrgb_linear */
  664. #ifndef EGL_EXT_image_dma_buf_import
  665. #define EGL_EXT_image_dma_buf_import 1
  666. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  667. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  668. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  669. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  670. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  671. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  672. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  673. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  674. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  675. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  676. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  677. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  678. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  679. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  680. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  681. #define EGL_ITU_REC601_EXT 0x327F
  682. #define EGL_ITU_REC709_EXT 0x3280
  683. #define EGL_ITU_REC2020_EXT 0x3281
  684. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  685. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  686. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  687. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  688. #endif /* EGL_EXT_image_dma_buf_import */
  689. #ifndef EGL_EXT_image_dma_buf_import_modifiers
  690. #define EGL_EXT_image_dma_buf_import_modifiers 1
  691. #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
  692. #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
  693. #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
  694. #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
  695. #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
  696. #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
  697. #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
  698. #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
  699. #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
  700. #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
  701. #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
  702. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
  703. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
  704. #ifdef EGL_EGLEXT_PROTOTYPES
  705. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
  706. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
  707. #endif
  708. #endif /* EGL_EXT_image_dma_buf_import_modifiers */
  709. #ifndef EGL_EXT_image_gl_colorspace
  710. #define EGL_EXT_image_gl_colorspace 1
  711. #define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D
  712. #endif /* EGL_EXT_image_gl_colorspace */
  713. #ifndef EGL_EXT_image_implicit_sync_control
  714. #define EGL_EXT_image_implicit_sync_control 1
  715. #define EGL_IMPORT_SYNC_TYPE_EXT 0x3470
  716. #define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471
  717. #define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472
  718. #endif /* EGL_EXT_image_implicit_sync_control */
  719. #ifndef EGL_EXT_multiview_window
  720. #define EGL_EXT_multiview_window 1
  721. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  722. #endif /* EGL_EXT_multiview_window */
  723. #ifndef EGL_EXT_output_base
  724. #define EGL_EXT_output_base 1
  725. typedef void *EGLOutputLayerEXT;
  726. typedef void *EGLOutputPortEXT;
  727. #define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0)
  728. #define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0)
  729. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  730. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  731. #define EGL_SWAP_INTERVAL_EXT 0x322F
  732. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  733. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  734. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  735. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  736. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  737. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  738. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  739. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  740. #ifdef EGL_EGLEXT_PROTOTYPES
  741. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  742. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  743. EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  744. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  745. EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  746. EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  747. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  748. EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  749. #endif
  750. #endif /* EGL_EXT_output_base */
  751. #ifndef EGL_EXT_output_drm
  752. #define EGL_EXT_output_drm 1
  753. #define EGL_DRM_CRTC_EXT 0x3234
  754. #define EGL_DRM_PLANE_EXT 0x3235
  755. #define EGL_DRM_CONNECTOR_EXT 0x3236
  756. #endif /* EGL_EXT_output_drm */
  757. #ifndef EGL_EXT_output_openwf
  758. #define EGL_EXT_output_openwf 1
  759. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  760. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  761. #endif /* EGL_EXT_output_openwf */
  762. #ifndef EGL_EXT_pixel_format_float
  763. #define EGL_EXT_pixel_format_float 1
  764. #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
  765. #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
  766. #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
  767. #endif /* EGL_EXT_pixel_format_float */
  768. #ifndef EGL_EXT_platform_base
  769. #define EGL_EXT_platform_base 1
  770. typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
  771. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  772. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  773. #ifdef EGL_EGLEXT_PROTOTYPES
  774. EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
  775. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  776. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  777. #endif
  778. #endif /* EGL_EXT_platform_base */
  779. #ifndef EGL_EXT_platform_device
  780. #define EGL_EXT_platform_device 1
  781. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  782. #endif /* EGL_EXT_platform_device */
  783. #ifndef EGL_EXT_platform_wayland
  784. #define EGL_EXT_platform_wayland 1
  785. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  786. #endif /* EGL_EXT_platform_wayland */
  787. #ifndef EGL_EXT_platform_x11
  788. #define EGL_EXT_platform_x11 1
  789. #define EGL_PLATFORM_X11_EXT 0x31D5
  790. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  791. #endif /* EGL_EXT_platform_x11 */
  792. #ifndef EGL_EXT_platform_xcb
  793. #define EGL_EXT_platform_xcb 1
  794. #define EGL_PLATFORM_XCB_EXT 0x31DC
  795. #define EGL_PLATFORM_XCB_SCREEN_EXT 0x31DE
  796. #endif /* EGL_EXT_platform_xcb */
  797. #ifndef EGL_EXT_protected_content
  798. #define EGL_EXT_protected_content 1
  799. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  800. #endif /* EGL_EXT_protected_content */
  801. #ifndef EGL_EXT_protected_surface
  802. #define EGL_EXT_protected_surface 1
  803. #endif /* EGL_EXT_protected_surface */
  804. #ifndef EGL_EXT_stream_consumer_egloutput
  805. #define EGL_EXT_stream_consumer_egloutput 1
  806. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  807. #ifdef EGL_EGLEXT_PROTOTYPES
  808. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  809. #endif
  810. #endif /* EGL_EXT_stream_consumer_egloutput */
  811. #ifndef EGL_EXT_surface_CTA861_3_metadata
  812. #define EGL_EXT_surface_CTA861_3_metadata 1
  813. #define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
  814. #define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
  815. #endif /* EGL_EXT_surface_CTA861_3_metadata */
  816. #ifndef EGL_EXT_surface_SMPTE2086_metadata
  817. #define EGL_EXT_surface_SMPTE2086_metadata 1
  818. #define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
  819. #define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
  820. #define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
  821. #define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
  822. #define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
  823. #define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
  824. #define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
  825. #define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
  826. #define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
  827. #define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
  828. #define EGL_METADATA_SCALING_EXT 50000
  829. #endif /* EGL_EXT_surface_SMPTE2086_metadata */
  830. #ifndef EGL_EXT_swap_buffers_with_damage
  831. #define EGL_EXT_swap_buffers_with_damage 1
  832. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
  833. #ifdef EGL_EGLEXT_PROTOTYPES
  834. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
  835. #endif
  836. #endif /* EGL_EXT_swap_buffers_with_damage */
  837. #ifndef EGL_EXT_sync_reuse
  838. #define EGL_EXT_sync_reuse 1
  839. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  840. #ifdef EGL_EGLEXT_PROTOTYPES
  841. EGLAPI EGLBoolean EGLAPIENTRY eglUnsignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
  842. #endif
  843. #endif /* EGL_EXT_sync_reuse */
  844. #ifndef EGL_EXT_yuv_surface
  845. #define EGL_EXT_yuv_surface 1
  846. #define EGL_YUV_ORDER_EXT 0x3301
  847. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  848. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  849. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  850. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  851. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  852. #define EGL_YUV_BUFFER_EXT 0x3300
  853. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  854. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  855. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  856. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  857. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  858. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  859. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  860. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  861. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  862. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  863. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  864. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  865. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  866. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  867. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  868. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  869. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  870. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  871. #endif /* EGL_EXT_yuv_surface */
  872. #ifndef EGL_HI_clientpixmap
  873. #define EGL_HI_clientpixmap 1
  874. struct EGLClientPixmapHI {
  875. void *pData;
  876. EGLint iWidth;
  877. EGLint iHeight;
  878. EGLint iStride;
  879. };
  880. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  881. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  882. #ifdef EGL_EGLEXT_PROTOTYPES
  883. EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  884. #endif
  885. #endif /* EGL_HI_clientpixmap */
  886. #ifndef EGL_HI_colorformats
  887. #define EGL_HI_colorformats 1
  888. #define EGL_COLOR_FORMAT_HI 0x8F70
  889. #define EGL_COLOR_RGB_HI 0x8F71
  890. #define EGL_COLOR_RGBA_HI 0x8F72
  891. #define EGL_COLOR_ARGB_HI 0x8F73
  892. #endif /* EGL_HI_colorformats */
  893. #ifndef EGL_IMG_context_priority
  894. #define EGL_IMG_context_priority 1
  895. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  896. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  897. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  898. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  899. #endif /* EGL_IMG_context_priority */
  900. #ifndef EGL_IMG_image_plane_attribs
  901. #define EGL_IMG_image_plane_attribs 1
  902. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  903. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  904. #endif /* EGL_IMG_image_plane_attribs */
  905. #ifndef EGL_MESA_drm_image
  906. #define EGL_MESA_drm_image 1
  907. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  908. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  909. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  910. #define EGL_DRM_BUFFER_MESA 0x31D3
  911. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  912. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  913. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  914. #define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x00000004
  915. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  916. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  917. #ifdef EGL_EGLEXT_PROTOTYPES
  918. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
  919. EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  920. #endif
  921. #endif /* EGL_MESA_drm_image */
  922. #ifndef EGL_MESA_image_dma_buf_export
  923. #define EGL_MESA_image_dma_buf_export 1
  924. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  925. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  926. #ifdef EGL_EGLEXT_PROTOTYPES
  927. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  928. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  929. #endif
  930. #endif /* EGL_MESA_image_dma_buf_export */
  931. #ifndef EGL_MESA_platform_gbm
  932. #define EGL_MESA_platform_gbm 1
  933. #define EGL_PLATFORM_GBM_MESA 0x31D7
  934. #endif /* EGL_MESA_platform_gbm */
  935. #ifndef EGL_MESA_platform_surfaceless
  936. #define EGL_MESA_platform_surfaceless 1
  937. #define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
  938. #endif /* EGL_MESA_platform_surfaceless */
  939. #ifndef EGL_MESA_query_driver
  940. #define EGL_MESA_query_driver 1
  941. typedef char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERCONFIGPROC) (EGLDisplay dpy);
  942. typedef const char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERNAMEPROC) (EGLDisplay dpy);
  943. #ifdef EGL_EGLEXT_PROTOTYPES
  944. EGLAPI char *EGLAPIENTRY eglGetDisplayDriverConfig (EGLDisplay dpy);
  945. EGLAPI const char *EGLAPIENTRY eglGetDisplayDriverName (EGLDisplay dpy);
  946. #endif
  947. #endif /* EGL_MESA_query_driver */
  948. #ifndef EGL_NOK_swap_region
  949. #define EGL_NOK_swap_region 1
  950. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  951. #ifdef EGL_EGLEXT_PROTOTYPES
  952. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  953. #endif
  954. #endif /* EGL_NOK_swap_region */
  955. #ifndef EGL_NOK_swap_region2
  956. #define EGL_NOK_swap_region2 1
  957. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  958. #ifdef EGL_EGLEXT_PROTOTYPES
  959. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  960. #endif
  961. #endif /* EGL_NOK_swap_region2 */
  962. #ifndef EGL_NOK_texture_from_pixmap
  963. #define EGL_NOK_texture_from_pixmap 1
  964. #define EGL_Y_INVERTED_NOK 0x307F
  965. #endif /* EGL_NOK_texture_from_pixmap */
  966. #ifndef EGL_NV_3dvision_surface
  967. #define EGL_NV_3dvision_surface 1
  968. #define EGL_AUTO_STEREO_NV 0x3136
  969. #endif /* EGL_NV_3dvision_surface */
  970. #ifndef EGL_NV_context_priority_realtime
  971. #define EGL_NV_context_priority_realtime 1
  972. #define EGL_CONTEXT_PRIORITY_REALTIME_NV 0x3357
  973. #endif /* EGL_NV_context_priority_realtime */
  974. #ifndef EGL_NV_coverage_sample
  975. #define EGL_NV_coverage_sample 1
  976. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  977. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  978. #endif /* EGL_NV_coverage_sample */
  979. #ifndef EGL_NV_coverage_sample_resolve
  980. #define EGL_NV_coverage_sample_resolve 1
  981. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  982. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  983. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  984. #endif /* EGL_NV_coverage_sample_resolve */
  985. #ifndef EGL_NV_cuda_event
  986. #define EGL_NV_cuda_event 1
  987. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  988. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  989. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  990. #endif /* EGL_NV_cuda_event */
  991. #ifndef EGL_NV_depth_nonlinear
  992. #define EGL_NV_depth_nonlinear 1
  993. #define EGL_DEPTH_ENCODING_NV 0x30E2
  994. #define EGL_DEPTH_ENCODING_NONE_NV 0
  995. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  996. #endif /* EGL_NV_depth_nonlinear */
  997. #ifndef EGL_NV_device_cuda
  998. #define EGL_NV_device_cuda 1
  999. #define EGL_CUDA_DEVICE_NV 0x323A
  1000. #endif /* EGL_NV_device_cuda */
  1001. #ifndef EGL_NV_native_query
  1002. #define EGL_NV_native_query 1
  1003. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  1004. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  1005. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  1006. #ifdef EGL_EGLEXT_PROTOTYPES
  1007. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  1008. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  1009. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  1010. #endif
  1011. #endif /* EGL_NV_native_query */
  1012. #ifndef EGL_NV_post_convert_rounding
  1013. #define EGL_NV_post_convert_rounding 1
  1014. #endif /* EGL_NV_post_convert_rounding */
  1015. #ifndef EGL_NV_post_sub_buffer
  1016. #define EGL_NV_post_sub_buffer 1
  1017. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  1018. typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1019. #ifdef EGL_EGLEXT_PROTOTYPES
  1020. EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1021. #endif
  1022. #endif /* EGL_NV_post_sub_buffer */
  1023. #ifndef EGL_NV_quadruple_buffer
  1024. #define EGL_NV_quadruple_buffer 1
  1025. #define EGL_QUADRUPLE_BUFFER_NV 0x3231
  1026. #endif /* EGL_NV_quadruple_buffer */
  1027. #ifndef EGL_NV_robustness_video_memory_purge
  1028. #define EGL_NV_robustness_video_memory_purge 1
  1029. #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
  1030. #endif /* EGL_NV_robustness_video_memory_purge */
  1031. #ifndef EGL_NV_stream_consumer_eglimage
  1032. #define EGL_NV_stream_consumer_eglimage 1
  1033. #define EGL_STREAM_CONSUMER_IMAGE_NV 0x3373
  1034. #define EGL_STREAM_IMAGE_ADD_NV 0x3374
  1035. #define EGL_STREAM_IMAGE_REMOVE_NV 0x3375
  1036. #define EGL_STREAM_IMAGE_AVAILABLE_NV 0x3376
  1037. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, EGLuint64KHR *modifiers, EGLAttrib *attrib_list);
  1038. typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
  1039. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMACQUIREIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
  1040. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMRELEASEIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
  1041. #ifdef EGL_EGLEXT_PROTOTYPES
  1042. EGLAPI EGLBoolean EGLAPIENTRY eglStreamImageConsumerConnectNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, EGLuint64KHR *modifiers, EGLAttrib *attrib_list);
  1043. EGLAPI EGLint EGLAPIENTRY eglQueryStreamConsumerEventNV (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
  1044. EGLAPI EGLBoolean EGLAPIENTRY eglStreamAcquireImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
  1045. EGLAPI EGLBoolean EGLAPIENTRY eglStreamReleaseImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
  1046. #endif
  1047. #endif /* EGL_NV_stream_consumer_eglimage */
  1048. #ifndef EGL_NV_stream_consumer_gltexture_yuv
  1049. #define EGL_NV_stream_consumer_gltexture_yuv 1
  1050. #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
  1051. #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
  1052. #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
  1053. // NVIDIA - Spec was accidentally published with non-const attrib list
  1054. //typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  1055. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  1056. #ifdef EGL_EGLEXT_PROTOTYPES
  1057. //EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  1058. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
  1059. #endif
  1060. #endif /* EGL_NV_stream_consumer_gltexture_yuv */
  1061. #ifndef EGL_NV_stream_cross_display
  1062. #define EGL_NV_stream_cross_display 1
  1063. #define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
  1064. #endif /* EGL_NV_stream_cross_display */
  1065. #ifndef EGL_NV_stream_cross_object
  1066. #define EGL_NV_stream_cross_object 1
  1067. #define EGL_STREAM_CROSS_OBJECT_NV 0x334D
  1068. #endif /* EGL_NV_stream_cross_object */
  1069. #ifndef EGL_NV_stream_cross_partition
  1070. #define EGL_NV_stream_cross_partition 1
  1071. #define EGL_STREAM_CROSS_PARTITION_NV 0x323F
  1072. #endif /* EGL_NV_stream_cross_partition */
  1073. #ifndef EGL_NV_stream_cross_process
  1074. #define EGL_NV_stream_cross_process 1
  1075. #define EGL_STREAM_CROSS_PROCESS_NV 0x3245
  1076. #endif /* EGL_NV_stream_cross_process */
  1077. #ifndef EGL_NV_stream_cross_system
  1078. #define EGL_NV_stream_cross_system 1
  1079. #define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
  1080. #endif /* EGL_NV_stream_cross_system */
  1081. #ifndef EGL_NV_stream_dma
  1082. #define EGL_NV_stream_dma 1
  1083. #define EGL_STREAM_DMA_NV 0x3371
  1084. #define EGL_STREAM_DMA_SERVER_NV 0x3372
  1085. #endif /* EGL_NV_stream_dma */
  1086. #ifndef EGL_NV_stream_fifo_next
  1087. #define EGL_NV_stream_fifo_next 1
  1088. #define EGL_PENDING_FRAME_NV 0x3329
  1089. #define EGL_STREAM_TIME_PENDING_NV 0x332A
  1090. #endif /* EGL_NV_stream_fifo_next */
  1091. #ifndef EGL_NV_stream_fifo_synchronous
  1092. #define EGL_NV_stream_fifo_synchronous 1
  1093. #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
  1094. #endif /* EGL_NV_stream_fifo_synchronous */
  1095. #ifndef EGL_NV_stream_flush
  1096. #define EGL_NV_stream_flush 1
  1097. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMFLUSHNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1098. #ifdef EGL_EGLEXT_PROTOTYPES
  1099. EGLAPI EGLBoolean EGLAPIENTRY eglStreamFlushNV (EGLDisplay dpy, EGLStreamKHR stream);
  1100. #endif
  1101. #endif /* EGL_NV_stream_flush */
  1102. #ifndef EGL_NV_stream_frame_limits
  1103. #define EGL_NV_stream_frame_limits 1
  1104. #define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
  1105. #define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
  1106. #endif /* EGL_NV_stream_frame_limits */
  1107. #ifndef EGL_NV_stream_metadata
  1108. #define EGL_NV_stream_metadata 1
  1109. #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  1110. #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  1111. #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  1112. #define EGL_PRODUCER_METADATA_NV 0x3253
  1113. #define EGL_CONSUMER_METADATA_NV 0x3254
  1114. #define EGL_PENDING_METADATA_NV 0x3328
  1115. #define EGL_METADATA0_SIZE_NV 0x3255
  1116. #define EGL_METADATA1_SIZE_NV 0x3256
  1117. #define EGL_METADATA2_SIZE_NV 0x3257
  1118. #define EGL_METADATA3_SIZE_NV 0x3258
  1119. #define EGL_METADATA0_TYPE_NV 0x3259
  1120. #define EGL_METADATA1_TYPE_NV 0x325A
  1121. #define EGL_METADATA2_TYPE_NV 0x325B
  1122. #define EGL_METADATA3_TYPE_NV 0x325C
  1123. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  1124. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  1125. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  1126. #ifdef EGL_EGLEXT_PROTOTYPES
  1127. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  1128. EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  1129. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  1130. #endif
  1131. #endif /* EGL_NV_stream_metadata */
  1132. #ifndef EGL_NV_stream_origin
  1133. #define EGL_NV_stream_origin 1
  1134. #define EGL_STREAM_FRAME_ORIGIN_X_NV 0x3366
  1135. #define EGL_STREAM_FRAME_ORIGIN_Y_NV 0x3367
  1136. #define EGL_STREAM_FRAME_MAJOR_AXIS_NV 0x3368
  1137. #define EGL_CONSUMER_AUTO_ORIENTATION_NV 0x3369
  1138. #define EGL_PRODUCER_AUTO_ORIENTATION_NV 0x336A
  1139. #define EGL_LEFT_NV 0x336B
  1140. #define EGL_RIGHT_NV 0x336C
  1141. #define EGL_TOP_NV 0x336D
  1142. #define EGL_BOTTOM_NV 0x336E
  1143. #define EGL_X_AXIS_NV 0x336F
  1144. #define EGL_Y_AXIS_NV 0x3370
  1145. #endif /* EGL_NV_stream_origin */
  1146. #ifndef EGL_NV_stream_remote
  1147. #define EGL_NV_stream_remote 1
  1148. #define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
  1149. #define EGL_STREAM_TYPE_NV 0x3241
  1150. #define EGL_STREAM_PROTOCOL_NV 0x3242
  1151. #define EGL_STREAM_ENDPOINT_NV 0x3243
  1152. #define EGL_STREAM_LOCAL_NV 0x3244
  1153. #define EGL_STREAM_PRODUCER_NV 0x3247
  1154. #define EGL_STREAM_CONSUMER_NV 0x3248
  1155. #define EGL_STREAM_PROTOCOL_FD_NV 0x3246
  1156. #endif /* EGL_NV_stream_remote */
  1157. #ifndef EGL_NV_stream_reset
  1158. #define EGL_NV_stream_reset 1
  1159. #define EGL_SUPPORT_RESET_NV 0x3334
  1160. #define EGL_SUPPORT_REUSE_NV 0x3335
  1161. typedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1162. #ifdef EGL_EGLEXT_PROTOTYPES
  1163. EGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR stream);
  1164. #endif
  1165. #endif /* EGL_NV_stream_reset */
  1166. #ifndef EGL_NV_stream_socket
  1167. #define EGL_NV_stream_socket 1
  1168. #define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
  1169. #define EGL_SOCKET_HANDLE_NV 0x324C
  1170. #define EGL_SOCKET_TYPE_NV 0x324D
  1171. #endif /* EGL_NV_stream_socket */
  1172. #ifndef EGL_NV_stream_socket_inet
  1173. #define EGL_NV_stream_socket_inet 1
  1174. #define EGL_SOCKET_TYPE_INET_NV 0x324F
  1175. #endif /* EGL_NV_stream_socket_inet */
  1176. #ifndef EGL_NV_stream_socket_unix
  1177. #define EGL_NV_stream_socket_unix 1
  1178. #define EGL_SOCKET_TYPE_UNIX_NV 0x324E
  1179. #endif /* EGL_NV_stream_socket_unix */
  1180. #ifndef EGL_NV_stream_sync
  1181. #define EGL_NV_stream_sync 1
  1182. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  1183. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  1184. #ifdef EGL_EGLEXT_PROTOTYPES
  1185. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  1186. #endif
  1187. #endif /* EGL_NV_stream_sync */
  1188. #ifndef EGL_NV_sync
  1189. #define EGL_NV_sync 1
  1190. typedef void *EGLSyncNV;
  1191. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  1192. #ifdef KHRONOS_SUPPORT_INT64
  1193. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  1194. #define EGL_SYNC_STATUS_NV 0x30E7
  1195. #define EGL_SIGNALED_NV 0x30E8
  1196. #define EGL_UNSIGNALED_NV 0x30E9
  1197. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  1198. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
  1199. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  1200. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  1201. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  1202. #define EGL_SYNC_TYPE_NV 0x30ED
  1203. #define EGL_SYNC_CONDITION_NV 0x30EE
  1204. #define EGL_SYNC_FENCE_NV 0x30EF
  1205. #define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0)
  1206. typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  1207. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  1208. typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
  1209. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1210. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  1211. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
  1212. #ifdef EGL_EGLEXT_PROTOTYPES
  1213. EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  1214. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
  1215. EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
  1216. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1217. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
  1218. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
  1219. #endif
  1220. #endif /* KHRONOS_SUPPORT_INT64 */
  1221. #endif /* EGL_NV_sync */
  1222. #ifndef EGL_NV_system_time
  1223. #define EGL_NV_system_time 1
  1224. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  1225. #ifdef KHRONOS_SUPPORT_INT64
  1226. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  1227. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
  1228. #ifdef EGL_EGLEXT_PROTOTYPES
  1229. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
  1230. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
  1231. #endif
  1232. #endif /* KHRONOS_SUPPORT_INT64 */
  1233. #endif /* EGL_NV_system_time */
  1234. #ifndef EGL_NV_triple_buffer
  1235. #define EGL_NV_triple_buffer 1
  1236. #define EGL_TRIPLE_BUFFER_NV 0x3230
  1237. #endif /* EGL_NV_triple_buffer */
  1238. #ifndef EGL_TIZEN_image_native_buffer
  1239. #define EGL_TIZEN_image_native_buffer 1
  1240. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  1241. #endif /* EGL_TIZEN_image_native_buffer */
  1242. #ifndef EGL_TIZEN_image_native_surface
  1243. #define EGL_TIZEN_image_native_surface 1
  1244. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  1245. #endif /* EGL_TIZEN_image_native_surface */
  1246. #ifndef EGL_WL_bind_wayland_display
  1247. #define EGL_WL_bind_wayland_display 1
  1248. #define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
  1249. #define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
  1250. #define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
  1251. struct wl_display;
  1252. struct wl_resource;
  1253. #define EGL_WAYLAND_BUFFER_WL 0x31D5
  1254. #define EGL_WAYLAND_PLANE_WL 0x31D6
  1255. #define EGL_TEXTURE_Y_U_V_WL 0x31D7
  1256. #define EGL_TEXTURE_Y_UV_WL 0x31D8
  1257. #define EGL_TEXTURE_Y_XUXV_WL 0x31D9
  1258. #define EGL_TEXTURE_EXTERNAL_WL 0x31DA
  1259. #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
  1260. typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
  1261. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
  1262. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
  1263. #ifdef EGL_EGLEXT_PROTOTYPES
  1264. EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
  1265. EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
  1266. EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
  1267. #endif
  1268. #endif /* EGL_WL_bind_wayland_display */
  1269. #ifndef EGL_WL_create_wayland_buffer_from_image
  1270. #define EGL_WL_create_wayland_buffer_from_image 1
  1271. #define PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC
  1272. struct wl_buffer;
  1273. typedef struct wl_buffer *(EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC) (EGLDisplay dpy, EGLImageKHR image);
  1274. #ifdef EGL_EGLEXT_PROTOTYPES
  1275. EGLAPI struct wl_buffer *EGLAPIENTRY eglCreateWaylandBufferFromImageWL (EGLDisplay dpy, EGLImageKHR image);
  1276. #endif
  1277. #endif /* EGL_WL_create_wayland_buffer_from_image */
  1278. #include <EGL/eglext_nv.h>
  1279. #ifdef __cplusplus
  1280. }
  1281. #endif
  1282. #endif