Generate legacy overloads for GetObjectLabel
authorFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 11:33:07 +0000 (12:33 +0100)
committerFraser Waters <frassle@gmail.com>
Thu, 5 Oct 2017 12:42:38 +0000 (13:42 +0100)
src/Generator.Bind/Specifications/GL2/overrides.xml
src/OpenTK/Graphics/ES20/ES20.cs
src/OpenTK/Graphics/ES30/ES30.cs
src/OpenTK/Graphics/ES31/ES31.cs
src/OpenTK/Graphics/OpenGL/GL.cs
src/OpenTK/Graphics/OpenGL4/GL4.cs

index 391a95d16dbab17df56bd3e8c0e2885d652617d6..16be7ea6c52d021398a572162bcf273575b405f8 100644 (file)
       <param name="identifier">
         <type>ObjectLabelIdentifier</type>
       </param>
+      <param name="length" legacyArrayParameter="true" />
     </function>
 
     <function name="GetProgramInterfaceiv" extension="Core">
       </param>
     </function>
     <!-- For backwards compatibility -->
-    <function name="GetObjectLabel" extension="Core">
-      <param name="length">
-        <count>0</count>
-      </param>
-    </function>
     <function name="GetObjectPtrLabel" extension="Core" obsolete="Use out overload instead">
       <param name="length">
         <count>0</count>
     </function>
   </overload>
 
+  <!-- For backwards compatibility -->
+  <replace name="gl">
+    <function name="GetObjectLabel" extension="Ext">
+      <param name="length" legacyArrayParameter="true" />
+    </function>
+  </replace>
+
   <overload name="gl">
     <!-- generated from apitest -->
     <function name="TessellationMode" extension="Amd" obsolete="Use AmdVertexShaderTessellator overload instead">
         <type>BeginMode</type>
       </param>
     </function>
-    <function name="GetObjectLabel" extension="Core">
-      <param name="length">
-        <count>0</count>
-      </param>
-    </function>
     <function name="GetObjectPtrLabel" extension="Core" obsolete="Use out overload instead">
       <param name="length">
         <count>0</count>
         <type>ExtDirectStateAccess</type>
       </param>
     </function>
-    <function name="GetObjectLabel" extension="Ext">
-      <param name="length">
-        <count>0</count>
-      </param>
-    </function>
     <function name="GetPointerv" extension="Ext" obsolete="Use out overload instead">
       <param name="params">
         <count>0</count>
     </function>
     <function name="GetObjectLabel">
       <param name="identifier"><type>ObjectLabelIdentifier</type></param>
+      <param name="length" legacyArrayParameter="true" />
     </function>
     <function name="ObjectLabel">
       <param name="identifier"><type>ObjectLabelIdentifier</type></param>
     </function>
    </replace>
 
-     <!-- gles2 overloads for backwards compatibility (2.0 and 3.0) -->
-  <overload name="gles2">
+  <!--  gles2 replacements for backwards compatibility -->
+  <replace name="gles2">
     <function name="GetObjectLabel">
-      <param name="length"><count>0</count></param>
+      <param name="length" legacyArrayParameter="true" />
     </function>
+  </replace>
+
+   <!-- gles2 overloads for backwards compatibility (2.0 and 3.0) -->
+  <overload name="gles2">
     <function name="GetObjectPtrLabel" obsolete="Use out overload instead">
       <param name="length"><count>0</count></param>
     </function>
index 42f19f9e96eb8aff7d414af7d85cf80d9073b050..fdfdc0b1faac18be14fa93051f0184e41d771e19 100644 (file)
@@ -9433,6 +9433,7 @@ namespace OpenTK.Graphics.ES20
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -9499,6 +9500,7 @@ namespace OpenTK.Graphics.ES20
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -23851,6 +23853,7 @@ namespace OpenTK.Graphics.ES20
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES20.All type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -23917,6 +23920,7 @@ namespace OpenTK.Graphics.ES20
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES20.All type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -34773,6 +34777,7 @@ namespace OpenTK.Graphics.ES20
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -34839,6 +34844,7 @@ namespace OpenTK.Graphics.ES20
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES20.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
index 38bffb7b9d6e934b15002c9d9c737bf3b6e06405..35f3d78848000dcec40aecebb8ec43f719ce4214 100644 (file)
@@ -13646,6 +13646,7 @@ namespace OpenTK.Graphics.ES30
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -13712,6 +13713,7 @@ namespace OpenTK.Graphics.ES30
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -32246,6 +32248,7 @@ namespace OpenTK.Graphics.ES30
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES30.All type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -32312,6 +32315,7 @@ namespace OpenTK.Graphics.ES30
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES30.All type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -43172,6 +43176,7 @@ namespace OpenTK.Graphics.ES30
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -43238,6 +43243,7 @@ namespace OpenTK.Graphics.ES30
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES30.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
index 58ecd11d16d739ca2d7c3d713067f13c512b7c50..b8ee751c5f16b5e7c8cf1191e5ed970b5832dd8c 100644 (file)
@@ -12711,6 +12711,7 @@ namespace OpenTK.Graphics.ES31
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -12777,6 +12778,7 @@ namespace OpenTK.Graphics.ES31
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -31482,6 +31484,7 @@ namespace OpenTK.Graphics.ES31
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES31.All type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -31548,6 +31551,7 @@ namespace OpenTK.Graphics.ES31
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES31.All type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -41256,6 +41260,7 @@ namespace OpenTK.Graphics.ES31
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, Int32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -41322,6 +41327,7 @@ namespace OpenTK.Graphics.ES31
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "KHR_debug", Version = "", EntryPoint = "glGetObjectLabelKHR")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.ES31.All identifier, UInt32 name, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
index 493be532e181771d588eac37afce3a6df089d9a7..7a8ae9ca8595ada5ca65dc2b08868f91a78b5932 100644 (file)
@@ -46322,6 +46322,7 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -46388,6 +46389,7 @@ namespace OpenTK.Graphics.OpenGL
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -90069,6 +90071,7 @@ namespace OpenTK.Graphics.OpenGL
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ExtDebugLabel type, Int32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -90135,6 +90138,7 @@ namespace OpenTK.Graphics.OpenGL
             /// <param name="label">[length: bufSize]
             /// The address of a string that will receive the object label.
             /// </param>
+            [Obsolete("Use out overload instead")]
             [AutoGenerated(Category = "EXT_debug_label", Version = "", EntryPoint = "glGetObjectLabelEXT")]
             [CLSCompliant(false)]
             public static void GetObjectLabel(OpenTK.Graphics.OpenGL.ExtDebugLabel type, UInt32 @object, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
index 1dfba67d3f6b475c585b750090daa969bcf5a36a..34a6f66f26f577484c44de9d42f2a8bafc1be6dc 100644 (file)
@@ -25037,6 +25037,7 @@ namespace OpenTK.Graphics.OpenGL4
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.OpenGL4.ObjectLabelIdentifier identifier, Int32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }
@@ -25103,6 +25104,7 @@ namespace OpenTK.Graphics.OpenGL4
         /// <param name="label">[length: bufSize]
         /// The address of a string that will receive the object label.
         /// </param>
+        [Obsolete("Use out overload instead")]
         [AutoGenerated(Category = "KHR_debug|VERSION_4_3", Version = "4.3", EntryPoint = "glGetObjectLabel")]
         [CLSCompliant(false)]
         public static void GetObjectLabel(OpenTK.Graphics.OpenGL4.ObjectLabelIdentifier identifier, UInt32 name, Int32 bufSize, [OutAttribute, CountAttribute(Count = 1)] Int32[] length, [OutAttribute, CountAttribute(Parameter = "bufSize")] out String label) { throw new BindingsNotRewrittenException(); }