diff --git a/Source/Bind/Specifications/GL2/enumext.spec b/Source/Bind/Specifications/GL2/enumext.spec index 533f5fe2..2f8473fb 100644 --- a/Source/Bind/Specifications/GL2/enumext.spec +++ b/Source/Bind/Specifications/GL2/enumext.spec @@ -7106,7 +7106,10 @@ ProgramParameter enum: use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCKS -# Used in TexBuffer +# Used in TexBuffer +TextureBufferTarget enum: + use VERSION_3_1 TEXTURE_BUFFER + SizedInternalFormat enum: use PixelInternalFormat R8 use PixelInternalFormat R16 diff --git a/Source/Bind/Specifications/GL2/gloverrides.xml b/Source/Bind/Specifications/GL2/gloverrides.xml index 0f6a30be..f9b0bc51 100644 --- a/Source/Bind/Specifications/GL2/gloverrides.xml +++ b/Source/Bind/Specifications/GL2/gloverrides.xml @@ -261,7 +261,9 @@ + + TextureBufferTarget SizedInternalFormat diff --git a/Source/OpenTK/Graphics/GL/GL.cs b/Source/OpenTK/Graphics/GL/GL.cs index 44fc5300..69915b0f 100644 --- a/Source/OpenTK/Graphics/GL/GL.cs +++ b/Source/OpenTK/Graphics/GL/GL.cs @@ -76564,13 +76564,13 @@ namespace OpenTK.Graphics [System.CLSCompliant(false)] [AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")] public static - void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer) + void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexBuffer((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer); + Delegates.glTexBuffer((OpenTK.Graphics.TextureBufferTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer); #if DEBUG } #endif @@ -76578,13 +76578,13 @@ namespace OpenTK.Graphics [AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")] public static - void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, Int32 buffer) + void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, Int32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexBuffer((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer); + Delegates.glTexBuffer((OpenTK.Graphics.TextureBufferTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/GL/GLCore.cs b/Source/OpenTK/Graphics/GL/GLCore.cs index 1afbe9a9..059bc403 100644 --- a/Source/OpenTK/Graphics/GL/GLCore.cs +++ b/Source/OpenTK/Graphics/GL/GLCore.cs @@ -1525,7 +1525,7 @@ namespace OpenTK.Graphics internal extern static void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexBuffer", ExactSpelling = true)] - internal extern static void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer); + internal extern static void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexCoord1d", ExactSpelling = true)] internal extern static void TexCoord1d(Double s); diff --git a/Source/OpenTK/Graphics/GL/GLDelegates.cs b/Source/OpenTK/Graphics/GL/GLDelegates.cs index cc867daf..7376bde2 100644 --- a/Source/OpenTK/Graphics/GL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/GL/GLDelegates.cs @@ -4064,7 +4064,7 @@ namespace OpenTK.Graphics internal delegate bool TestObjectAPPLE(OpenTK.Graphics.AppleFence @object, UInt32 name); internal static TestObjectAPPLE glTestObjectAPPLE; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer); + internal delegate void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer); internal static TexBuffer glTexBuffer; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void TexBufferARB(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, UInt32 buffer); diff --git a/Source/OpenTK/Graphics/GL/GLEnums.cs b/Source/OpenTK/Graphics/GL/GLEnums.cs index d39f77fb..93e71416 100644 --- a/Source/OpenTK/Graphics/GL/GLEnums.cs +++ b/Source/OpenTK/Graphics/GL/GLEnums.cs @@ -9665,6 +9665,11 @@ namespace OpenTK.Graphics HalfFloat = ((int)0X140b), } + public enum TextureBufferTarget + { + TextureBuffer = ((int)0X8c2a), + } + public enum TextureCompareMode { CompareRefToTexture = ((int)0X884e),