From db913ca3f469fd8a0773821c79b74c19190ee746 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Tue, 18 Mar 2014 12:08:02 +0100 Subject: [PATCH] [GL] Added missing [Rgba]16Snorm texture formats See https://www.opengl.org/sdk/docs/man4/html/glTexImage2D.xhtml or the 4.4 spec, section 8.5, table "Sized internal color formats". --- Source/Bind/Specifications/GL2/overrides.xml | 4 ++++ Source/OpenTK/Graphics/OpenGL/GLEnums.cs | 16 ++++++++++++++++ Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs | 16 ++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index 3940db21..e0b3570c 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -4009,6 +4009,10 @@ + + + + diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index 559c93ab..9aede586 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -46667,6 +46667,22 @@ namespace OpenTK.Graphics.OpenGL /// Rgba8Snorm = ((int)0x8F97) , /// + /// Original was GL_R16_SNORM = 0x8F98 + /// + R16Snorm = ((int)0x8F98) , + /// + /// Original was GL_RG16_SNORM = 0x8F99 + /// + Rg16Snorm = ((int)0x8F99) , + /// + /// Original was GL_RGB16_SNORM = 0x8F9A + /// + Rgb16Snorm = ((int)0x8F9A) , + /// + /// Original was GL_RGBA16_SNORM = 0x8F9B + /// + Rgba16Snorm = ((int)0x8F9B) , + /// /// Original was GL_RGB10_A2UI = 0x906F /// Rgb10A2ui = ((int)0x906F) , diff --git a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs index 762c747d..3c8a1d37 100644 --- a/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs +++ b/Source/OpenTK/Graphics/OpenGL4/GL4Enums.cs @@ -23633,6 +23633,22 @@ namespace OpenTK.Graphics.OpenGL4 /// Rgba8Snorm = ((int)0x8F97) , /// + /// Original was GL_R16_SNORM = 0x8F98 + /// + R16Snorm = ((int)0x8F98) , + /// + /// Original was GL_RG16_SNORM = 0x8F99 + /// + Rg16Snorm = ((int)0x8F99) , + /// + /// Original was GL_RGB16_SNORM = 0x8F9A + /// + Rgb16Snorm = ((int)0x8F9A) , + /// + /// Original was GL_RGBA16_SNORM = 0x8F9B + /// + Rgba16Snorm = ((int)0x8F9B) , + /// /// Original was GL_RGB10_A2UI = 0x906F /// Rgb10A2ui = ((int)0x906F) ,