0068-GL_ARB_geometry_shader4-entry-points.patch 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. From 64890c411e05d8a87e9e692b1d8cf470e7d4488c Mon Sep 17 00:00:00 2001
  2. From: Brendan King <Brendan.King@imgtec.com>
  3. Date: Thu, 11 Nov 2021 12:09:38 +0000
  4. Subject: [PATCH] GL_ARB_geometry_shader4 entry points.
  5. ---
  6. src/mapi/glapi/gen/ARB_geometry_shader4.xml | 97 +++++++++++++++++++++
  7. src/mapi/glapi/gen/gl_API.xml | 2 +-
  8. src/mapi/glapi/gen/static_data.py | 4 +
  9. 3 files changed, 102 insertions(+), 1 deletion(-)
  10. create mode 100644 src/mapi/glapi/gen/ARB_geometry_shader4.xml
  11. diff --git a/src/mapi/glapi/gen/ARB_geometry_shader4.xml b/src/mapi/glapi/gen/ARB_geometry_shader4.xml
  12. new file mode 100644
  13. index 0000000..d92dc57
  14. --- /dev/null
  15. +++ b/src/mapi/glapi/gen/ARB_geometry_shader4.xml
  16. @@ -0,0 +1,97 @@
  17. +<?xml version="1.0"?>
  18. +<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
  19. +
  20. +<!-- Note: no GLX protocol info yet. -->
  21. +
  22. +
  23. +<OpenGLAPI>
  24. +<category name="GL_ARB_geometry_shader4" number="47">
  25. + <enum name="GEOMETRY_SHADER_ARB" value="0x8DD9"/>
  26. + <enum name="GEOMETRY_VERTICES_OUT_ARB" value="0x8DDA"/>
  27. + <enum name="GEOMETRY_INPUT_TYPE_ARB" value="0x8DDB"/>
  28. + <enum name="GEOMETRY_OUTPUT_TYPE_ARB" value="0x8DDC"/>
  29. +
  30. + <enum name="MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB"
  31. + count="1" value="0x8C29">
  32. + <size name="Get" mode="get"/>
  33. + </enum>
  34. + <enum name="MAX_GEOMETRY_VARYING_COMPONENTS_ARB"
  35. + count="1" value="0x8DDD">
  36. + <size name="Get" mode="get"/>
  37. + </enum>
  38. + <enum name="MAX_VERTEX_VARYING_COMPONENTS_ARB"
  39. + count="1" value="0x8DDE">
  40. + <size name="Get" mode="get"/>
  41. + </enum>
  42. + <enum name="MAX_VARYING_COMPONENTS"
  43. + count="1" value="0x8B4B">
  44. + <size name="Get" mode="get"/>
  45. + </enum>
  46. + <enum name="MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB"
  47. + count="1" value="0x8DDF">
  48. + <size name="Get" mode="get"/>
  49. + </enum>
  50. + <enum name="MAX_GEOMETRY_OUTPUT_VERTICES_ARB"
  51. + count="1" value="0x8DE0">
  52. + <size name="Get" mode="get"/>
  53. + </enum>
  54. + <enum name="MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB"
  55. + count="1" value="0x8DE1">
  56. + <size name="Get" mode="get"/>
  57. + </enum>
  58. +
  59. + <enum name="LINES_ADJACENCY_ARB" value="0xA"/>
  60. + <enum name="LINE_STRIP_ADJACENCY_ARB" value="0xB"/>
  61. + <enum name="TRIANGLES_ADJACENCY_ARB" value="0xC"/>
  62. + <enum name="TRIANGLE_STRIP_ADJACENCY_ARB" value="0xD"/>
  63. +
  64. + <enum name="FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB" value="0x8DA8"/>
  65. + <enum name="FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB" value="0x8DA9"/>
  66. +
  67. +
  68. + <enum name="FRAMEBUFFER_ATTACHMENT_LAYERED_ARB"
  69. + count="1" value="0x8DA7">
  70. + <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
  71. + </enum>
  72. + <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER"
  73. + count="1" value="0x8CD4">
  74. + <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
  75. + </enum>
  76. +
  77. + <enum name="PROGRAM_POINT_SIZE_ARB" value="0x8642"/>
  78. + <enum name="PROGRAM_POINT_SIZE_ARB"
  79. + count="1" value="0x8642">
  80. + <size name="Get" mode="get"/>
  81. + </enum>
  82. +
  83. + <function name="ProgramParameteriARB" exec="dynamic">
  84. + <param name="program" type="GLuint"/>
  85. + <param name="pname" type="GLenum"/>
  86. + <param name="value" type="GLint"/>
  87. + </function>
  88. +
  89. + <function name="FramebufferTextureARB" exec="dynamic">
  90. + <param name="target" type="GLenum"/>
  91. + <param name="attachment" type="GLenum"/>
  92. + <param name="texture" type="GLuint"/>
  93. + <param name="level" type="GLint"/>
  94. + </function>
  95. +
  96. + <function name="FramebufferTextureLayerARB" exec="dynamic">
  97. + <param name="target" type="GLenum"/>
  98. + <param name="attachment" type="GLenum"/>
  99. + <param name="texture" type="GLuint"/>
  100. + <param name="level" type="GLint"/>
  101. + <param name="layer" type="GLint"/>
  102. + </function>
  103. +
  104. + <function name="FramebufferTextureFaceARB" exec="dynamic">
  105. + <param name="target" type="GLenum"/>
  106. + <param name="attachment" type="GLenum"/>
  107. + <param name="texture" type="GLuint"/>
  108. + <param name="level" type="GLint"/>
  109. + <param name="face" type="GLenum"/>
  110. + </function>
  111. +</category>
  112. +
  113. +</OpenGLAPI>
  114. diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
  115. index 4e35de0..d5a5e7f 100644
  116. --- a/src/mapi/glapi/gen/gl_API.xml
  117. +++ b/src/mapi/glapi/gen/gl_API.xml
  118. @@ -8064,7 +8064,7 @@
  119. <!-- 46. GL_ARB_framebuffer_sRGB -->
  120. -<!-- 47. GL_ARB_geometry_shader4. There are no intentions to implement this extension -->
  121. +<xi:include href="ARB_geometry_shader4.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
  122. <!-- 48. GL_ARB_half_float_vertex -->
  123. diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
  124. index 974f366..833ad73 100644
  125. --- a/src/mapi/glapi/gen/static_data.py
  126. +++ b/src/mapi/glapi/gen/static_data.py
  127. @@ -1721,6 +1721,10 @@ offsets = {
  128. "FramebufferRenderbufferEXT" : 1685,
  129. "GetFramebufferAttachmentParameterivEXT" : 1686,
  130. "GenerateMipmapEXT" : 1687,
  131. + "ProgramParameteriARB" : 1688,
  132. + "FramebufferTextureARB" : 1689,
  133. + "FramebufferTextureLayerARB" : 1690,
  134. + "FramebufferTextureFaceARB" : 1691,
  135. }
  136. functions = [