Skip to content

Commit 11e6e8d

Browse files
committed
Updated OpenGL registry to 9b214157e. Bumped version to 3.3.4.0.
1 parent 274bd74 commit 11e6e8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+9454
-8024
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
**/dist
66
**/highlight.js
77
**/stack.yaml
8+
**/stack.yaml.lock
89
**/style.css
910
cabal.sandbox.config
1011
/RegistryProcessor/Graphics/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
3.3.4.0
2+
-------
3+
* Updated OpenGL registry to 9b214157e.
4+
15
3.3.3.0
26
-------
37
* Updated OpenGL registry to 696ac2296.

OpenGLRaw.cabal

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: OpenGLRaw
2-
version: 3.3.3.0
2+
version: 3.3.4.0
33
synopsis: A raw binding for the OpenGL graphics system
44
description:
55
OpenGLRaw is a raw Haskell binding for the OpenGL 4.6 graphics system and
@@ -437,9 +437,11 @@ library
437437
Graphics.GL.KHR.NoError
438438
Graphics.GL.KHR.ParallelShaderCompile
439439
Graphics.GL.KHR.Robustness
440+
Graphics.GL.KHR.ShaderSubgroup
440441
Graphics.GL.KHR.TextureCompressionASTCHDR
441442
Graphics.GL.KHR.TextureCompressionASTCLDR
442443
Graphics.GL.MESA
444+
Graphics.GL.MESA.FramebufferFlipY
443445
Graphics.GL.MESA.PackInvert
444446
Graphics.GL.MESA.ProgramBinaryFormats
445447
Graphics.GL.MESA.ResizeBuffers
@@ -514,6 +516,7 @@ library
514516
Graphics.GL.NV.ScissorExclusive
515517
Graphics.GL.NV.ShaderBufferLoad
516518
Graphics.GL.NV.ShaderBufferStore
519+
Graphics.GL.NV.ShaderSubgroupPartitioned
517520
Graphics.GL.NV.ShaderThreadGroup
518521
Graphics.GL.NV.ShadingRateImage
519522
Graphics.GL.NV.TessellationProgram5
@@ -545,7 +548,9 @@ library
545548
Graphics.GL.NVX
546549
Graphics.GL.NVX.ConditionalRender
547550
Graphics.GL.NVX.GPUMemoryInfo
551+
Graphics.GL.NVX.GPUMulticast2
548552
Graphics.GL.NVX.LinkedGPUMulticast
553+
Graphics.GL.NVX.ProgressFence
549554
Graphics.GL.OES
550555
Graphics.GL.OES.ByteCoordinates
551556
Graphics.GL.OES.CompressedPalettedTexture

RegistryProcessor/OpenGL-Registry

Submodule OpenGL-Registry updated 68 files

RegistryProcessor/src/Main.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,15 @@ groupHeader gn es =
198198
]
199199
-- NV_path_rendering screws up typing: It uses GL_NONE as a bitfield, and this
200200
-- leads to a collision in the PathFontStyle group. :-/
201+
-- Furthermore, glClampColor uses GL_TRUE and GL_FALSE as a GLenum.
201202
where
202203
enumTypeWithFix e
203204
| gn == GroupName "PathFontStyle" && enumName e == EnumName "GL_NONE" =
204205
TypeName "GLbitfield"
206+
| gn == GroupName "ClampColorModeARB" && enumName e == EnumName "GL_TRUE" =
207+
TypeName "GLenum"
208+
| gn == GroupName "ClampColorModeARB" && enumName e == EnumName "GL_FALSE" =
209+
TypeName "GLenum"
205210
| otherwise = enumType e
206211

207212
-- Calulate a map from compact signature to short names.

src/Graphics/GL/ExtensionPredicates.hs

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3605,6 +3605,17 @@ gl_KHR_robustness :: Bool
36053605
gl_KHR_robustness = member "GL_KHR_robustness" extensions
36063606
{-# NOINLINE gl_KHR_robustness #-}
36073607

3608+
-- | Is the <https://www.opengl.org/registry/specs/KHR/shader_subgroup.txt KHR_shader_subgroup> extension supported?
3609+
glGetKHRShaderSubgroup :: MonadIO m => m Bool
3610+
glGetKHRShaderSubgroup = getExtensions >>= (return . member "GL_KHR_shader_subgroup")
3611+
3612+
-- | Is the <https://www.opengl.org/registry/specs/KHR/shader_subgroup.txt KHR_shader_subgroup> extension supported?
3613+
-- Note that in the presence of multiple contexts with different capabilities,
3614+
-- this might be wrong. Use 'glGetKHRShaderSubgroup' in those cases instead.
3615+
gl_KHR_shader_subgroup :: Bool
3616+
gl_KHR_shader_subgroup = member "GL_KHR_shader_subgroup" extensions
3617+
{-# NOINLINE gl_KHR_shader_subgroup #-}
3618+
36083619
-- | Is the <https://www.opengl.org/registry/specs/KHR/texture_compression_astc_hdr.txt KHR_texture_compression_astc_hdr> extension supported?
36093620
glGetKHRTextureCompressionASTCHDR :: MonadIO m => m Bool
36103621
glGetKHRTextureCompressionASTCHDR = getExtensions >>= (return . member "GL_KHR_texture_compression_astc_hdr")
@@ -3627,6 +3638,17 @@ gl_KHR_texture_compression_astc_ldr :: Bool
36273638
gl_KHR_texture_compression_astc_ldr = member "GL_KHR_texture_compression_astc_ldr" extensions
36283639
{-# NOINLINE gl_KHR_texture_compression_astc_ldr #-}
36293640

3641+
-- | Is the <https://www.opengl.org/registry/specs/MESA/framebuffer_flip_y.txt MESA_framebuffer_flip_y> extension supported?
3642+
glGetMESAFramebufferFlipY :: MonadIO m => m Bool
3643+
glGetMESAFramebufferFlipY = getExtensions >>= (return . member "GL_MESA_framebuffer_flip_y")
3644+
3645+
-- | Is the <https://www.opengl.org/registry/specs/MESA/framebuffer_flip_y.txt MESA_framebuffer_flip_y> extension supported?
3646+
-- Note that in the presence of multiple contexts with different capabilities,
3647+
-- this might be wrong. Use 'glGetMESAFramebufferFlipY' in those cases instead.
3648+
gl_MESA_framebuffer_flip_y :: Bool
3649+
gl_MESA_framebuffer_flip_y = member "GL_MESA_framebuffer_flip_y" extensions
3650+
{-# NOINLINE gl_MESA_framebuffer_flip_y #-}
3651+
36303652
-- | Is the <https://www.opengl.org/registry/specs/MESA/pack_invert.txt MESA_pack_invert> extension supported?
36313653
glGetMESAPackInvert :: MonadIO m => m Bool
36323654
glGetMESAPackInvert = getExtensions >>= (return . member "GL_MESA_pack_invert")
@@ -4408,6 +4430,17 @@ gl_NV_shader_buffer_store :: Bool
44084430
gl_NV_shader_buffer_store = member "GL_NV_shader_buffer_store" extensions
44094431
{-# NOINLINE gl_NV_shader_buffer_store #-}
44104432

4433+
-- | Is the <https://www.opengl.org/registry/specs/NV/shader_subgroup_partitioned.txt NV_shader_subgroup_partitioned> extension supported?
4434+
glGetNVShaderSubgroupPartitioned :: MonadIO m => m Bool
4435+
glGetNVShaderSubgroupPartitioned = getExtensions >>= (return . member "GL_NV_shader_subgroup_partitioned")
4436+
4437+
-- | Is the <https://www.opengl.org/registry/specs/NV/shader_subgroup_partitioned.txt NV_shader_subgroup_partitioned> extension supported?
4438+
-- Note that in the presence of multiple contexts with different capabilities,
4439+
-- this might be wrong. Use 'glGetNVShaderSubgroupPartitioned' in those cases instead.
4440+
gl_NV_shader_subgroup_partitioned :: Bool
4441+
gl_NV_shader_subgroup_partitioned = member "GL_NV_shader_subgroup_partitioned" extensions
4442+
{-# NOINLINE gl_NV_shader_subgroup_partitioned #-}
4443+
44114444
-- | Is the <https://www.opengl.org/registry/specs/NV/shader_thread_group.txt NV_shader_thread_group> extension supported?
44124445
glGetNVShaderThreadGroup :: MonadIO m => m Bool
44134446
glGetNVShaderThreadGroup = getExtensions >>= (return . member "GL_NV_shader_thread_group")
@@ -4738,6 +4771,17 @@ gl_NVX_gpu_memory_info :: Bool
47384771
gl_NVX_gpu_memory_info = member "GL_NVX_gpu_memory_info" extensions
47394772
{-# NOINLINE gl_NVX_gpu_memory_info #-}
47404773

4774+
-- | Is the <https://www.opengl.org/registry/specs/NVX/gpu_multicast2.txt NVX_gpu_multicast2> extension supported?
4775+
glGetNVXGPUMulticast2 :: MonadIO m => m Bool
4776+
glGetNVXGPUMulticast2 = getExtensions >>= (return . member "GL_NVX_gpu_multicast2")
4777+
4778+
-- | Is the <https://www.opengl.org/registry/specs/NVX/gpu_multicast2.txt NVX_gpu_multicast2> extension supported?
4779+
-- Note that in the presence of multiple contexts with different capabilities,
4780+
-- this might be wrong. Use 'glGetNVXGPUMulticast2' in those cases instead.
4781+
gl_NVX_gpu_multicast2 :: Bool
4782+
gl_NVX_gpu_multicast2 = member "GL_NVX_gpu_multicast2" extensions
4783+
{-# NOINLINE gl_NVX_gpu_multicast2 #-}
4784+
47414785
-- | Is the <https://www.opengl.org/registry/specs/NVX/linked_gpu_multicast.txt NVX_linked_gpu_multicast> extension supported?
47424786
glGetNVXLinkedGPUMulticast :: MonadIO m => m Bool
47434787
glGetNVXLinkedGPUMulticast = getExtensions >>= (return . member "GL_NVX_linked_gpu_multicast")
@@ -4749,6 +4793,17 @@ gl_NVX_linked_gpu_multicast :: Bool
47494793
gl_NVX_linked_gpu_multicast = member "GL_NVX_linked_gpu_multicast" extensions
47504794
{-# NOINLINE gl_NVX_linked_gpu_multicast #-}
47514795

4796+
-- | Is the <https://www.opengl.org/registry/specs/NVX/progress_fence.txt NVX_progress_fence> extension supported?
4797+
glGetNVXProgressFence :: MonadIO m => m Bool
4798+
glGetNVXProgressFence = getExtensions >>= (return . member "GL_NVX_progress_fence")
4799+
4800+
-- | Is the <https://www.opengl.org/registry/specs/NVX/progress_fence.txt NVX_progress_fence> extension supported?
4801+
-- Note that in the presence of multiple contexts with different capabilities,
4802+
-- this might be wrong. Use 'glGetNVXProgressFence' in those cases instead.
4803+
gl_NVX_progress_fence :: Bool
4804+
gl_NVX_progress_fence = member "GL_NVX_progress_fence" extensions
4805+
{-# NOINLINE gl_NVX_progress_fence #-}
4806+
47524807
-- | Is the <https://www.opengl.org/registry/specs/OES/OES_byte_coordinates.txt OES_byte_coordinates> extension supported?
47534808
glGetOESByteCoordinates :: MonadIO m => m Bool
47544809
glGetOESByteCoordinates = getExtensions >>= (return . member "GL_OES_byte_coordinates")

0 commit comments

Comments
 (0)