Skip to content

Commit d886502

Browse files
committed
Updated OpenGL registry to 39e37f838. Bumped version to 3.3.2.0.
1 parent 03cbd41 commit d886502

Some content is hidden

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

50 files changed

+9169
-8076
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ matrix:
4444
# env: TEST=--disable-tests BENCH=--disable-benchmarks
4545
env: HADDOCK=false
4646
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.3], sources: [hvr-ghc]}}
47-
- compiler: "ghc-8.6.1"
47+
- compiler: "ghc-8.6.3"
4848
# env: TEST=--disable-tests BENCH=--disable-benchmarks
4949
env: HADDOCK=false
50-
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.6.1], sources: [hvr-ghc]}}
50+
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.6.3], sources: [hvr-ghc]}}
5151
- compiler: "ghc-head"
5252
env: GHCHEAD=true HADDOCK=false
5353
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-head], sources: [hvr-ghc]}}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
3.3.2.0
2+
-------
3+
* Updated OpenGL registry to 39e37f838.
4+
15
3.3.1.0
26
-------
37
* Updated OpenGL registry to accf5ad3c.

OpenGLRaw.cabal

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: OpenGLRaw
2-
version: 3.3.1.0
2+
version: 3.3.2.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
@@ -33,7 +33,7 @@ tested-with:
3333
GHC == 8.0.2
3434
GHC == 8.2.2
3535
GHC == 8.4.3
36-
GHC == 8.6.1
36+
GHC == 8.6.3
3737
GHC == 8.7.*
3838
cabal-version: >= 1.10
3939
extra-source-files:
@@ -385,6 +385,7 @@ library
385385
Graphics.GL.EXT.TextureSNorm
386386
Graphics.GL.EXT.TextureSRGB
387387
Graphics.GL.EXT.TextureSRGBDecode
388+
Graphics.GL.EXT.TextureSRGBR8
388389
Graphics.GL.EXT.TextureSharedExponent
389390
Graphics.GL.EXT.TextureSwizzle
390391
Graphics.GL.EXT.TimerQuery
@@ -488,6 +489,8 @@ library
488489
Graphics.GL.NV.HalfFloat
489490
Graphics.GL.NV.InternalformatSampleQuery
490491
Graphics.GL.NV.LightMaxExponent
492+
Graphics.GL.NV.MemoryAttachment
493+
Graphics.GL.NV.MeshShader
491494
Graphics.GL.NV.MultisampleCoverage
492495
Graphics.GL.NV.MultisampleFilterHint
493496
Graphics.GL.NV.OcclusionQuery
@@ -504,11 +507,14 @@ library
504507
Graphics.GL.NV.QueryResourceTag
505508
Graphics.GL.NV.RegisterCombiners
506509
Graphics.GL.NV.RegisterCombiners2
510+
Graphics.GL.NV.RepresentativeFragmentTest
507511
Graphics.GL.NV.RobustnessVideoMemoryPurge
508512
Graphics.GL.NV.SampleLocations
513+
Graphics.GL.NV.ScissorExclusive
509514
Graphics.GL.NV.ShaderBufferLoad
510515
Graphics.GL.NV.ShaderBufferStore
511516
Graphics.GL.NV.ShaderThreadGroup
517+
Graphics.GL.NV.ShadingRateImage
512518
Graphics.GL.NV.TessellationProgram5
513519
Graphics.GL.NV.TexgenEmboss
514520
Graphics.GL.NV.TexgenReflection
@@ -524,6 +530,7 @@ library
524530
Graphics.GL.NV.TransformFeedback2
525531
Graphics.GL.NV.UniformBufferUnifiedMemory
526532
Graphics.GL.NV.VDPAUInterop
533+
Graphics.GL.NV.VDPAUInterop2
527534
Graphics.GL.NV.VertexArrayRange
528535
Graphics.GL.NV.VertexArrayRange2
529536
Graphics.GL.NV.VertexAttribInteger64Bit

src/Graphics/GL/ARB/InternalformatQuery2.hs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,27 @@ module Graphics.GL.ARB.InternalformatQuery2 (
122122
pattern GL_VIEW_CLASS_64_BITS,
123123
pattern GL_VIEW_CLASS_8_BITS,
124124
pattern GL_VIEW_CLASS_96_BITS,
125+
pattern GL_VIEW_CLASS_ASTC_10x10_RGBA,
126+
pattern GL_VIEW_CLASS_ASTC_10x5_RGBA,
127+
pattern GL_VIEW_CLASS_ASTC_10x6_RGBA,
128+
pattern GL_VIEW_CLASS_ASTC_10x8_RGBA,
129+
pattern GL_VIEW_CLASS_ASTC_12x10_RGBA,
130+
pattern GL_VIEW_CLASS_ASTC_12x12_RGBA,
131+
pattern GL_VIEW_CLASS_ASTC_4x4_RGBA,
132+
pattern GL_VIEW_CLASS_ASTC_5x4_RGBA,
133+
pattern GL_VIEW_CLASS_ASTC_5x5_RGBA,
134+
pattern GL_VIEW_CLASS_ASTC_6x5_RGBA,
135+
pattern GL_VIEW_CLASS_ASTC_6x6_RGBA,
136+
pattern GL_VIEW_CLASS_ASTC_8x5_RGBA,
137+
pattern GL_VIEW_CLASS_ASTC_8x6_RGBA,
138+
pattern GL_VIEW_CLASS_ASTC_8x8_RGBA,
125139
pattern GL_VIEW_CLASS_BPTC_FLOAT,
126140
pattern GL_VIEW_CLASS_BPTC_UNORM,
141+
pattern GL_VIEW_CLASS_EAC_R11,
142+
pattern GL_VIEW_CLASS_EAC_RG11,
143+
pattern GL_VIEW_CLASS_ETC2_EAC_RGBA,
144+
pattern GL_VIEW_CLASS_ETC2_RGB,
145+
pattern GL_VIEW_CLASS_ETC2_RGBA,
127146
pattern GL_VIEW_CLASS_RGTC1_RED,
128147
pattern GL_VIEW_CLASS_RGTC2_RG,
129148
pattern GL_VIEW_CLASS_S3TC_DXT1_RGB,

src/Graphics/GL/EXT.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ module Graphics.GL.EXT (
104104
module Graphics.GL.EXT.TextureSNorm,
105105
module Graphics.GL.EXT.TextureSRGB,
106106
module Graphics.GL.EXT.TextureSRGBDecode,
107+
module Graphics.GL.EXT.TextureSRGBR8,
107108
module Graphics.GL.EXT.TextureSharedExponent,
108109
module Graphics.GL.EXT.TextureSwizzle,
109110
module Graphics.GL.EXT.TimerQuery,
@@ -209,6 +210,7 @@ import Graphics.GL.EXT.TexturePerturbNormal
209210
import Graphics.GL.EXT.TextureSNorm
210211
import Graphics.GL.EXT.TextureSRGB
211212
import Graphics.GL.EXT.TextureSRGBDecode
213+
import Graphics.GL.EXT.TextureSRGBR8
212214
import Graphics.GL.EXT.TextureSharedExponent
213215
import Graphics.GL.EXT.TextureSwizzle
214216
import Graphics.GL.EXT.TimerQuery

src/Graphics/GL/EXT/TextureSRGBR8.hs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{-# LANGUAGE PatternSynonyms #-}
2+
--------------------------------------------------------------------------------
3+
-- |
4+
-- Module : Graphics.GL.EXT.TextureSRGBR8
5+
-- Copyright : (c) Sven Panne 2018
6+
-- License : BSD3
7+
--
8+
-- Maintainer : Sven Panne <[email protected]>
9+
-- Stability : stable
10+
-- Portability : portable
11+
--
12+
--------------------------------------------------------------------------------
13+
14+
module Graphics.GL.EXT.TextureSRGBR8 (
15+
-- * Extension Support
16+
glGetEXTTextureSRGBR8,
17+
gl_EXT_texture_sRGB_R8,
18+
-- * Enums
19+
pattern GL_SR8_EXT
20+
) where
21+
22+
import Graphics.GL.ExtensionPredicates
23+
import Graphics.GL.Tokens

src/Graphics/GL/ExtensionPredicates.hs

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3132,6 +3132,17 @@ gl_EXT_texture_sRGB :: Bool
31323132
gl_EXT_texture_sRGB = member "GL_EXT_texture_sRGB" extensions
31333133
{-# NOINLINE gl_EXT_texture_sRGB #-}
31343134

3135+
-- | Is the <https://www.opengl.org/registry/specs/EXT/texture_sRGB_R8.txt EXT_texture_sRGB_R8> extension supported?
3136+
glGetEXTTextureSRGBR8 :: MonadIO m => m Bool
3137+
glGetEXTTextureSRGBR8 = getExtensions >>= (return . member "GL_EXT_texture_sRGB_R8")
3138+
3139+
-- | Is the <https://www.opengl.org/registry/specs/EXT/texture_sRGB_R8.txt EXT_texture_sRGB_R8> extension supported?
3140+
-- Note that in the presence of multiple contexts with different capabilities,
3141+
-- this might be wrong. Use 'glGetEXTTextureSRGBR8' in those cases instead.
3142+
gl_EXT_texture_sRGB_R8 :: Bool
3143+
gl_EXT_texture_sRGB_R8 = member "GL_EXT_texture_sRGB_R8" extensions
3144+
{-# NOINLINE gl_EXT_texture_sRGB_R8 #-}
3145+
31353146
-- | Is the <https://www.opengl.org/registry/specs/EXT/texture_sRGB_decode.txt EXT_texture_sRGB_decode> extension supported?
31363147
glGetEXTTextureSRGBDecode :: MonadIO m => m Bool
31373148
glGetEXTTextureSRGBDecode = getExtensions >>= (return . member "GL_EXT_texture_sRGB_decode")
@@ -4144,6 +4155,28 @@ gl_NV_light_max_exponent :: Bool
41444155
gl_NV_light_max_exponent = member "GL_NV_light_max_exponent" extensions
41454156
{-# NOINLINE gl_NV_light_max_exponent #-}
41464157

4158+
-- | Is the <https://www.opengl.org/registry/specs/NV/memory_attachment.txt NV_memory_attachment> extension supported?
4159+
glGetNVMemoryAttachment :: MonadIO m => m Bool
4160+
glGetNVMemoryAttachment = getExtensions >>= (return . member "GL_NV_memory_attachment")
4161+
4162+
-- | Is the <https://www.opengl.org/registry/specs/NV/memory_attachment.txt NV_memory_attachment> extension supported?
4163+
-- Note that in the presence of multiple contexts with different capabilities,
4164+
-- this might be wrong. Use 'glGetNVMemoryAttachment' in those cases instead.
4165+
gl_NV_memory_attachment :: Bool
4166+
gl_NV_memory_attachment = member "GL_NV_memory_attachment" extensions
4167+
{-# NOINLINE gl_NV_memory_attachment #-}
4168+
4169+
-- | Is the <https://www.opengl.org/registry/specs/NV/mesh_shader.txt NV_mesh_shader> extension supported?
4170+
glGetNVMeshShader :: MonadIO m => m Bool
4171+
glGetNVMeshShader = getExtensions >>= (return . member "GL_NV_mesh_shader")
4172+
4173+
-- | Is the <https://www.opengl.org/registry/specs/NV/mesh_shader.txt NV_mesh_shader> extension supported?
4174+
-- Note that in the presence of multiple contexts with different capabilities,
4175+
-- this might be wrong. Use 'glGetNVMeshShader' in those cases instead.
4176+
gl_NV_mesh_shader :: Bool
4177+
gl_NV_mesh_shader = member "GL_NV_mesh_shader" extensions
4178+
{-# NOINLINE gl_NV_mesh_shader #-}
4179+
41474180
-- | Is the <https://www.opengl.org/registry/specs/NV/multisample_coverage.txt NV_multisample_coverage> extension supported?
41484181
glGetNVMultisampleCoverage :: MonadIO m => m Bool
41494182
glGetNVMultisampleCoverage = getExtensions >>= (return . member "GL_NV_multisample_coverage")
@@ -4309,6 +4342,17 @@ gl_NV_register_combiners2 :: Bool
43094342
gl_NV_register_combiners2 = member "GL_NV_register_combiners2" extensions
43104343
{-# NOINLINE gl_NV_register_combiners2 #-}
43114344

4345+
-- | Is the <https://www.opengl.org/registry/specs/NV/representative_fragment_test.txt NV_representative_fragment_test> extension supported?
4346+
glGetNVRepresentativeFragmentTest :: MonadIO m => m Bool
4347+
glGetNVRepresentativeFragmentTest = getExtensions >>= (return . member "GL_NV_representative_fragment_test")
4348+
4349+
-- | Is the <https://www.opengl.org/registry/specs/NV/representative_fragment_test.txt NV_representative_fragment_test> extension supported?
4350+
-- Note that in the presence of multiple contexts with different capabilities,
4351+
-- this might be wrong. Use 'glGetNVRepresentativeFragmentTest' in those cases instead.
4352+
gl_NV_representative_fragment_test :: Bool
4353+
gl_NV_representative_fragment_test = member "GL_NV_representative_fragment_test" extensions
4354+
{-# NOINLINE gl_NV_representative_fragment_test #-}
4355+
43124356
-- | Is the <https://www.opengl.org/registry/specs/NV/robustness_video_memory_purge.txt NV_robustness_video_memory_purge> extension supported?
43134357
glGetNVRobustnessVideoMemoryPurge :: MonadIO m => m Bool
43144358
glGetNVRobustnessVideoMemoryPurge = getExtensions >>= (return . member "GL_NV_robustness_video_memory_purge")
@@ -4331,6 +4375,17 @@ gl_NV_sample_locations :: Bool
43314375
gl_NV_sample_locations = member "GL_NV_sample_locations" extensions
43324376
{-# NOINLINE gl_NV_sample_locations #-}
43334377

4378+
-- | Is the <https://www.opengl.org/registry/specs/NV/scissor_exclusive.txt NV_scissor_exclusive> extension supported?
4379+
glGetNVScissorExclusive :: MonadIO m => m Bool
4380+
glGetNVScissorExclusive = getExtensions >>= (return . member "GL_NV_scissor_exclusive")
4381+
4382+
-- | Is the <https://www.opengl.org/registry/specs/NV/scissor_exclusive.txt NV_scissor_exclusive> extension supported?
4383+
-- Note that in the presence of multiple contexts with different capabilities,
4384+
-- this might be wrong. Use 'glGetNVScissorExclusive' in those cases instead.
4385+
gl_NV_scissor_exclusive :: Bool
4386+
gl_NV_scissor_exclusive = member "GL_NV_scissor_exclusive" extensions
4387+
{-# NOINLINE gl_NV_scissor_exclusive #-}
4388+
43344389
-- | Is the <https://www.opengl.org/registry/specs/NV/shader_buffer_load.txt NV_shader_buffer_load> extension supported?
43354390
glGetNVShaderBufferLoad :: MonadIO m => m Bool
43364391
glGetNVShaderBufferLoad = getExtensions >>= (return . member "GL_NV_shader_buffer_load")
@@ -4364,6 +4419,17 @@ gl_NV_shader_thread_group :: Bool
43644419
gl_NV_shader_thread_group = member "GL_NV_shader_thread_group" extensions
43654420
{-# NOINLINE gl_NV_shader_thread_group #-}
43664421

4422+
-- | Is the <https://www.opengl.org/registry/specs/NV/shading_rate_image.txt NV_shading_rate_image> extension supported?
4423+
glGetNVShadingRateImage :: MonadIO m => m Bool
4424+
glGetNVShadingRateImage = getExtensions >>= (return . member "GL_NV_shading_rate_image")
4425+
4426+
-- | Is the <https://www.opengl.org/registry/specs/NV/shading_rate_image.txt NV_shading_rate_image> extension supported?
4427+
-- Note that in the presence of multiple contexts with different capabilities,
4428+
-- this might be wrong. Use 'glGetNVShadingRateImage' in those cases instead.
4429+
gl_NV_shading_rate_image :: Bool
4430+
gl_NV_shading_rate_image = member "GL_NV_shading_rate_image" extensions
4431+
{-# NOINLINE gl_NV_shading_rate_image #-}
4432+
43674433
-- | Is the <https://www.opengl.org/registry/specs/NV/tessellation_program5.txt NV_tessellation_program5> extension supported?
43684434
glGetNVTessellationProgram5 :: MonadIO m => m Bool
43694435
glGetNVTessellationProgram5 = getExtensions >>= (return . member "GL_NV_tessellation_program5")
@@ -4529,6 +4595,17 @@ gl_NV_vdpau_interop :: Bool
45294595
gl_NV_vdpau_interop = member "GL_NV_vdpau_interop" extensions
45304596
{-# NOINLINE gl_NV_vdpau_interop #-}
45314597

4598+
-- | Is the <https://www.opengl.org/registry/specs/NV/vdpau_interop2.txt NV_vdpau_interop2> extension supported?
4599+
glGetNVVDPAUInterop2 :: MonadIO m => m Bool
4600+
glGetNVVDPAUInterop2 = getExtensions >>= (return . member "GL_NV_vdpau_interop2")
4601+
4602+
-- | Is the <https://www.opengl.org/registry/specs/NV/vdpau_interop2.txt NV_vdpau_interop2> extension supported?
4603+
-- Note that in the presence of multiple contexts with different capabilities,
4604+
-- this might be wrong. Use 'glGetNVVDPAUInterop2' in those cases instead.
4605+
gl_NV_vdpau_interop2 :: Bool
4606+
gl_NV_vdpau_interop2 = member "GL_NV_vdpau_interop2" extensions
4607+
{-# NOINLINE gl_NV_vdpau_interop2 #-}
4608+
45324609
-- | Is the <https://www.opengl.org/registry/specs/NV/vertex_array_range.txt NV_vertex_array_range> extension supported?
45334610
glGetNVVertexArrayRange :: MonadIO m => m Bool
45344611
glGetNVVertexArrayRange = getExtensions >>= (return . member "GL_NV_vertex_array_range")

0 commit comments

Comments
 (0)