From c2bd45f6768caf6763d6cc401a285a4676988f6c Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Thu, 5 Oct 2017 15:17:59 +0100 Subject: [PATCH] Generate legacy overloads for GetTranslatedShaderSource --- src/Generator.Bind/Generator.Bind.csproj | 4 +++- src/Generator.Bind/Specifications/GL2/overrides.xml | 6 +++--- src/OpenTK/Graphics/ES20/ES20.cs | 4 ---- src/OpenTK/Graphics/ES30/ES30.cs | 4 ---- src/OpenTK/Graphics/ES31/ES31.cs | 4 ---- 5 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/Generator.Bind/Generator.Bind.csproj b/src/Generator.Bind/Generator.Bind.csproj index 96fd937c..8c937e98 100644 --- a/src/Generator.Bind/Generator.Bind.csproj +++ b/src/Generator.Bind/Generator.Bind.csproj @@ -214,7 +214,9 @@ - + + Designer + diff --git a/src/Generator.Bind/Specifications/GL2/overrides.xml b/src/Generator.Bind/Specifications/GL2/overrides.xml index a8629e6f..9222946e 100644 --- a/src/Generator.Bind/Specifications/GL2/overrides.xml +++ b/src/Generator.Bind/Specifications/GL2/overrides.xml @@ -5555,6 +5555,9 @@ + + + @@ -5574,9 +5577,6 @@ - - 0 - 0 0 diff --git a/src/OpenTK/Graphics/ES20/ES20.cs b/src/OpenTK/Graphics/ES20/ES20.cs index b23fa81e..669968b5 100644 --- a/src/OpenTK/Graphics/ES20/ES20.cs +++ b/src/OpenTK/Graphics/ES20/ES20.cs @@ -2230,7 +2230,6 @@ namespace OpenTK.Graphics.ES20 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static void GetTranslatedShaderSource(Int32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2240,7 +2239,6 @@ namespace OpenTK.Graphics.ES20 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static unsafe void GetTranslatedShaderSource(Int32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2260,7 +2258,6 @@ namespace OpenTK.Graphics.ES20 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static void GetTranslatedShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2270,7 +2267,6 @@ namespace OpenTK.Graphics.ES20 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static unsafe void GetTranslatedShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } diff --git a/src/OpenTK/Graphics/ES30/ES30.cs b/src/OpenTK/Graphics/ES30/ES30.cs index 483f513c..e069a325 100644 --- a/src/OpenTK/Graphics/ES30/ES30.cs +++ b/src/OpenTK/Graphics/ES30/ES30.cs @@ -2438,7 +2438,6 @@ namespace OpenTK.Graphics.ES30 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static void GetTranslatedShaderSource(Int32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2448,7 +2447,6 @@ namespace OpenTK.Graphics.ES30 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static unsafe void GetTranslatedShaderSource(Int32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2468,7 +2466,6 @@ namespace OpenTK.Graphics.ES30 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static void GetTranslatedShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2478,7 +2475,6 @@ namespace OpenTK.Graphics.ES30 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static unsafe void GetTranslatedShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } diff --git a/src/OpenTK/Graphics/ES31/ES31.cs b/src/OpenTK/Graphics/ES31/ES31.cs index f515ffd8..caaf94fe 100644 --- a/src/OpenTK/Graphics/ES31/ES31.cs +++ b/src/OpenTK/Graphics/ES31/ES31.cs @@ -2568,7 +2568,6 @@ namespace OpenTK.Graphics.ES31 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static void GetTranslatedShaderSource(Int32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2578,7 +2577,6 @@ namespace OpenTK.Graphics.ES31 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static unsafe void GetTranslatedShaderSource(Int32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2598,7 +2596,6 @@ namespace OpenTK.Graphics.ES31 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static void GetTranslatedShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); } @@ -2608,7 +2605,6 @@ namespace OpenTK.Graphics.ES31 /// /// [length: 1] /// - [Obsolete("Use out overload instead")] [AutoGenerated(Category = "ANGLE_translated_shader_source", Version = "", EntryPoint = "glGetTranslatedShaderSourceANGLE")] [CLSCompliant(false)] public static unsafe void GetTranslatedShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute] out String source) { throw new BindingsNotRewrittenException(); }