0011-GL_OVR_multiview-entry-points.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From d7176528f6dbb0c807fe34ebd8a3c5cee5945d3d Mon Sep 17 00:00:00 2001
  2. From: Brendan King <Brendan.King@imgtec.com>
  3. Date: Mon, 11 Jul 2016 12:45:30 +0100
  4. Subject: [PATCH] GL_OVR_multiview entry points
  5. ---
  6. src/mapi/glapi/gen/gl_API.xml | 17 +++++++++++++++++
  7. src/mapi/glapi/gen/static_data.py | 1 +
  8. 2 files changed, 18 insertions(+)
  9. diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
  10. index cf5a0f0..4e35de0 100644
  11. --- a/src/mapi/glapi/gen/gl_API.xml
  12. +++ b/src/mapi/glapi/gen/gl_API.xml
  13. @@ -13125,6 +13125,23 @@
  14. </function>
  15. </category>
  16. +<category name="GL_OVR_multiview" number="478">
  17. + <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR" value="0x9630" />
  18. + <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR" value="0x9632" />
  19. + <enum name="MAX_VIEWS_OVR" value="0x9631">
  20. + <size name="Get" mode="get"/>
  21. + </enum>
  22. + <enum name="FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR" value="0x9633" />
  23. + <function name="FramebufferTextureMultiviewOVR" es2="3.0" exec="dynamic">
  24. + <param name="target" type="GLenum"/>
  25. + <param name="attachment" type="GLenum"/>
  26. + <param name="texture" type="GLuint"/>
  27. + <param name="level" type="GLint"/>
  28. + <param name="baseViewIndex" type="GLint"/>
  29. + <param name="numViews" type="GLsizei"/>
  30. + </function>
  31. +</category>
  32. +
  33. <xi:include href="EXT_window_rectangles.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
  34. <!-- 520. GL_EXT_shader_framebuffer_fetch -->
  35. diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
  36. index c723cb3..73625c7 100644
  37. --- a/src/mapi/glapi/gen/static_data.py
  38. +++ b/src/mapi/glapi/gen/static_data.py
  39. @@ -1702,6 +1702,7 @@ offsets = {
  40. "GetFramebufferPixelLocalStorageSizeEXT" : 1666,
  41. "FramebufferTexture2DDownsampleIMG" : 1667,
  42. "FramebufferTextureLayerDownsampleIMG" : 1668,
  43. + "FramebufferTextureMultiviewOVR" : 1669,
  44. }
  45. functions = [