Generate legacy overloads for GetProgramResourceName
authorFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 14:27:42 +0000 (15:27 +0100)
committerFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 14:27:42 +0000 (15:27 +0100)
src/Generator.Bind/Specifications/GL2/overrides.xml
src/OpenTK/Graphics/OpenGL/GL.cs
src/OpenTK/Graphics/OpenGL4/GL4.cs

index 3cbe008331d43b8560b88a514bdd8777d999bbba..16c1c1eba1478dceff628abe6f8bedb0610148dc 100644 (file)
       <param name="programInterface">
         <type>ProgramInterface</type>
       </param>
+      <param name="length" legacyArrayParameter="true" />
     </function>
 
     <function name="GetProgramResourceiv" extension="Core">
         <count>0</count>
       </param>
     </function>
-    <function name="GetProgramResourceName" extension="Core" obsolete="Use out overload instead">
-      <param name="length">
-        <count>0</count>
-      </param>
-    </function>
   </overload>
 
   <!-- For backwards compatibility -->
         <count>0</count>
       </param>
     </function>
-    <function name="GetProgramResourceName" extension="Core" obsolete="Use out overload instead">
-      <param name="length">
-        <count>0</count>
-      </param>
-    </function>
     <function name="GetString" extension="Core" obsolete="Use StringNameIndexed overload instead">
       <param name="name" index="0">
         <type>StringName</type>
index 6d05a44e14d6e873ad477255677d6e71b9167def..cb37c1144be30b98dccee129f47c35f1f2cbe240 100644 (file)
@@ -48462,7 +48462,6 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static void GetProgramResourceName(Int32 program, OpenTK.Graphics.OpenGL.ProgramInterface programInterface, Int32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
@@ -48488,7 +48487,6 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static unsafe void GetProgramResourceName(Int32 program, OpenTK.Graphics.OpenGL.ProgramInterface programInterface, Int32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
@@ -48540,7 +48538,6 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static void GetProgramResourceName(UInt32 program, OpenTK.Graphics.OpenGL.ProgramInterface programInterface, UInt32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
@@ -48566,7 +48563,6 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static unsafe void GetProgramResourceName(UInt32 program, OpenTK.Graphics.OpenGL.ProgramInterface programInterface, UInt32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
index f168cb73a896c266156c80f3998a8e7d85c060f6..e777729a690e5d37942c6d12a5045cd9924fc9d1 100644 (file)
@@ -26769,7 +26769,6 @@ namespace OpenTK.Graphics.OpenGL4
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static void GetProgramResourceName(Int32 program, OpenTK.Graphics.OpenGL4.ProgramInterface programInterface, Int32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
@@ -26795,7 +26794,6 @@ namespace OpenTK.Graphics.OpenGL4
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static unsafe void GetProgramResourceName(Int32 program, OpenTK.Graphics.OpenGL4.ProgramInterface programInterface, Int32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
@@ -26847,7 +26845,6 @@ namespace OpenTK.Graphics.OpenGL4
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static void GetProgramResourceName(UInt32 program, OpenTK.Graphics.OpenGL4.ProgramInterface programInterface, UInt32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] out Int32 length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }
@@ -26873,7 +26870,6 @@ namespace OpenTK.Graphics.OpenGL4
         /// <param name="name">[length: bufSize]
         /// The address of a character array into which will be written the name of the resource.
         /// </param>
-        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "ARB_program_interface_query|VERSION_4_3", Version = "4.3", EntryPoint = "glGetProgramResourceName")]
         [CLSCompliant(false)]
         public static unsafe void GetProgramResourceName(UInt32 program, OpenTK.Graphics.OpenGL4.ProgramInterface programInterface, UInt32 index, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32* length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String name) { throw new BindingsNotRewrittenException(); }