-
-
Save vs-mobiletools-engineering-service2/ee3aaa0683bc2a221c6ab59c0527d473 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs | |
index d3b9288..f50e243 100644 | |
--- a/old/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs | |
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.AssemblyInfo.cs | |
@@ -13,7 +13,7 @@ using System.Reflection; | |
[assembly: System.Reflection.AssemblyCompanyAttribute("bgen")] | |
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] | |
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] | |
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f6501e922fbb525dd1f56ed78540adc8672ac9c8")] | |
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6aed26646343d3c525a8c7fff6496bd401fdf39e")] | |
[assembly: System.Reflection.AssemblyProductAttribute("bgen")] | |
[assembly: System.Reflection.AssemblyTitleAttribute("bgen")] | |
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] | |
diff --git a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json | |
index 75bf450..5442040 100644 | |
--- a/old/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json | |
+++ b/new/dotnet/IDE/obj/common/bgen/bgen.sourcelink.json | |
@@ -1 +1 @@ | |
-{"documents":{"/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/f6501e922fbb525dd1f56ed78540adc8672ac9c8/*","/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/bd3d13362bfda48a34fa0cc419744c4a1f4dc45a/*"}} | |
\ No newline at end of file | |
+{"documents":{"/Users/builder/azdo/_work/5/s/xamarin-macios/*":"https://raw.githubusercontent.com/xamarin/xamarin-macios/6aed26646343d3c525a8c7fff6496bd401fdf39e/*","/Users/builder/azdo/_work/5/s/xamarin-macios/external/api-tools/*":"https://raw.githubusercontent.com/xamarin/api-tools/1fbbe003a141231439c08b23989d3dc910bd6182/*","/Users/builder/azdo/_work/5/s/xamarin-macios/external/macios-binaries/*":"https://raw.githubusercontent.com/xamarin/macios-binaries/7813391e75d7373ee073ef2d5716e3c607c8636a/*","/Users/builder/azdo/_work/5/s/xamarin-macios/external/MonoTouch.Dialog/*":"https://raw.githubusercontent.com/xamarin/MonoTouch.Dialog/77b3337dbbc9e3e2f1b06dab3d37d2822488b0b3/*","/Users/builder/azdo/_work/5/s/xamarin-macios/external/opentk/*":"https://raw.githubusercontent.com/mono/opentk/396bc90c7ac2e7ce442840a5e8bd91e5e79b381e/*","/Users/builder/azdo/_work/5/s/xamarin-macios/external/Touch.Unit/*":"https://raw.githubusercontent.com/xamarin/Touch.Unit/92a072683b69b2f61f235a7a249c2c7f261236d4/*","/Users/builder/azdo/_work/5/s/xamarin-macios/external/Xamarin.MacDev/*":"https://raw.githubusercontent.com/xamarin/Xamarin.MacDev/bd3d13362bfda48a34fa0cc419744c4a1f4dc45a/*"}} | |
\ No newline at end of file | |
diff --git a/old/dotnet/ios/SourceLink.json b/new/dotnet/ios/SourceLink.json | |
index 0b8e25c..e2325e7 100644 | |
--- a/old/dotnet/ios/SourceLink.json | |
+++ b/new/dotnet/ios/SourceLink.json | |
@@ -1,5 +1,5 @@ | |
{ | |
"documents": { | |
- "/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f6501e922fbb525dd1f56ed78540adc8672ac9c8/src*" | |
+ "/Users/builder/azdo/_work/5/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/6aed26646343d3c525a8c7fff6496bd401fdf39e/src*" | |
} | |
} | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLArgumentEncoder.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
index 00f6bb4..7a10505 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
@@ -793,9 +793,7 @@ namespace Metal { | |
public IMTLArgumentEncoder? CreateArgumentEncoder (nuint index) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), true)!; | |
return ret!; | |
} | |
[Export ("setComputePipelineState:atIndex:")] | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLBuffer.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLBuffer.g.cs | |
index 4714795..5cc3a36 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLBuffer.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLBuffer.g.cs | |
@@ -206,9 +206,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), true)!; | |
return ret!; | |
} | |
[Export ("addDebugMarker:range:")] | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLCaptureManager.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLCaptureManager.g.cs | |
index b20ab50..a3adb80 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLCaptureManager.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLCaptureManager.g.cs | |
@@ -139,12 +139,10 @@ namespace Metal { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("newCaptureScopeWithCommandQueue:")] | |
@@ -155,12 +153,10 @@ namespace Metal { | |
var commandQueue__handle__ = commandQueue!.GetNonNullHandle (nameof (commandQueue)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("startCaptureWithDevice:")] | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLComputePipelineState.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLComputePipelineState.g.cs | |
index eb8a0e7..8ad60c7 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLComputePipelineState.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLComputePipelineState.g.cs | |
@@ -396,9 +396,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -417,9 +415,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -436,9 +432,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -494,9 +488,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -512,9 +504,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -528,9 +518,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLDevice.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLDevice.g.cs | |
index d497b78..d21962e 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLDevice.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLDevice.g.cs | |
@@ -2576,9 +2576,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -2618,9 +2616,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -2637,9 +2633,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -2703,9 +2697,7 @@ namespace Metal { | |
#else | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -2724,9 +2716,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2934,9 +2924,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueue")] | |
@@ -2945,9 +2933,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue () | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueueWithMaxCommandBufferCount:")] | |
@@ -2956,9 +2942,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue (nuint maxCommandBufferCount) | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithLength:options:")] | |
@@ -2967,9 +2951,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytes:length:options:")] | |
@@ -2978,9 +2960,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nint pointer, nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytesNoCopy:length:options:deallocator:")] | |
@@ -2993,9 +2973,7 @@ namespace Metal { | |
using var block_deallocator = Trampolines.SDMTLDeallocator.CreateBlock (deallocator); | |
BlockLiteral *block_ptr_deallocator = &block_deallocator; | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), true)!; | |
return ret!; | |
} | |
[Export ("newDepthStencilStateWithDescriptor:")] | |
@@ -3005,9 +2983,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLDepthStencilState? ret; | |
- ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -3017,9 +2993,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:iosurface:plane:")] | |
@@ -3030,9 +3004,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
var iosurface__handle__ = iosurface!.GetNonNullHandle (nameof (iosurface)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithDescriptor:")] | |
@@ -3045,9 +3017,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3061,9 +3031,7 @@ namespace Metal { | |
#else | |
var sharedHandle__handle__ = sharedHandle!.GetNonNullHandle (nameof (sharedHandle)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3074,9 +3042,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLSamplerState? ret; | |
- ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newDefaultLibrary")] | |
@@ -3085,9 +3051,7 @@ namespace Metal { | |
public IMTLLibrary CreateDefaultLibrary () | |
{ | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithFile:error:")] | |
@@ -3100,9 +3064,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsfilepath = CFString.CreateNative (filepath); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), true)!; | |
CFString.ReleaseNative (nsfilepath); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3115,9 +3077,7 @@ namespace Metal { | |
var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3132,9 +3092,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nssource = CFString.CreateNative (source); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nssource); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3162,9 +3120,7 @@ namespace Metal { | |
var bundle__handle__ = bundle!.GetNonNullHandle (nameof (bundle)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3176,9 +3132,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3202,9 +3156,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3229,9 +3181,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3255,9 +3205,7 @@ namespace Metal { | |
var computeFunction__handle__ = computeFunction!.GetNonNullHandle (nameof (computeFunction)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3281,9 +3229,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3305,9 +3251,7 @@ namespace Metal { | |
public IMTLFence CreateFence () | |
{ | |
IMTLFence? ret; | |
- ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), true)!; | |
return ret!; | |
} | |
[Export ("supportsFeatureSet:")] | |
@@ -3334,9 +3278,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3371,9 +3313,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (arguments)); | |
var nsa_arguments = NSArray.FromNSObjects (arguments); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), true)!; | |
nsa_arguments.Dispose (); | |
return ret!; | |
} | |
@@ -3387,9 +3327,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIndirectCommandBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3402,9 +3340,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3417,9 +3353,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3433,9 +3367,7 @@ namespace Metal { | |
#else | |
var sharedEventHandle__handle__ = sharedEventHandle!.GetNonNullHandle (nameof (sharedEventHandle)); | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3448,9 +3380,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3520,9 +3450,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3549,9 +3477,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLCounterSampleBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -3589,9 +3515,7 @@ namespace Metal { | |
var library__handle__ = library!.GetNonNullHandle (nameof (library)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -3607,9 +3531,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -3625,9 +3547,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLBinaryArchive? ret; | |
- ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -3662,9 +3582,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3678,9 +3596,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3695,9 +3611,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -3768,9 +3682,7 @@ namespace Metal { | |
#else | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3786,9 +3698,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3850,9 +3760,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLogState? ret; | |
- ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -3867,9 +3775,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -3884,9 +3790,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLResidencySet? ret; | |
- ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLFunction.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLFunction.g.cs | |
index 4b537a4..49a56b1 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLFunction.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLFunction.g.cs | |
@@ -327,9 +327,7 @@ namespace Metal { | |
public IMTLArgumentEncoder CreateArgumentEncoder (nuint bufferIndex) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), true)!; | |
return ret!; | |
} | |
[Export ("newArgumentEncoderWithBufferIndex:reflection:")] | |
@@ -339,9 +337,7 @@ namespace Metal { | |
{ | |
NativeHandle reflectionValue = IntPtr.Zero; | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), true)!; | |
reflection = Runtime.GetNSObject<MTLArgument> (reflectionValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLHeap.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLHeap.g.cs | |
index d264009..8f2d154 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLHeap.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLHeap.g.cs | |
@@ -519,9 +519,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -538,9 +536,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -556,9 +552,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -575,9 +569,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -600,9 +592,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -612,9 +602,7 @@ namespace Metal { | |
{ | |
var desc__handle__ = desc!.GetNonNullHandle (nameof (desc)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
@@ -634,9 +622,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -650,9 +636,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -665,9 +649,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -681,9 +663,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -696,9 +676,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -712,9 +690,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLLibrary.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLLibrary.g.cs | |
index e8c29a8..a970dc0 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLLibrary.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLLibrary.g.cs | |
@@ -400,9 +400,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -439,9 +437,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName)); | |
var nsfunctionName = CFString.CreateNative (functionName); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), true)!; | |
CFString.ReleaseNative (nsfunctionName); | |
return ret!; | |
} | |
@@ -456,9 +452,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsname = CFString.CreateNative (name); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nsname); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -504,9 +498,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -537,9 +529,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLRenderPipelineState.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
index 96ad651..9cc7988 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
@@ -498,9 +498,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -517,9 +515,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -537,9 +533,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
@@ -593,9 +587,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -609,9 +601,7 @@ namespace Metal { | |
#else | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -626,9 +616,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
#endif | |
diff --git a/old/dotnet/ios/generated-sources/Metal/MTLTexture.g.cs b/new/dotnet/ios/generated-sources/Metal/MTLTexture.g.cs | |
index f885cd0..a6e2bcd 100644 | |
--- a/old/dotnet/ios/generated-sources/Metal/MTLTexture.g.cs | |
+++ b/new/dotnet/ios/generated-sources/Metal/MTLTexture.g.cs | |
@@ -795,9 +795,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), true)!; | |
return ret!; | |
} | |
[Export ("newTextureViewWithPixelFormat:textureType:levels:slices:")] | |
@@ -806,9 +804,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), true)!; | |
return ret!; | |
} | |
[Export ("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")] | |
@@ -859,9 +855,7 @@ namespace Metal { | |
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
#else | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), true)!; | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs b/new/dotnet/ios/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs | |
index da3b166..49a2d72 100644 | |
--- a/old/dotnet/ios/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs | |
+++ b/new/dotnet/ios/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs | |
@@ -146,12 +146,10 @@ namespace MetalFX { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLFXSpatialScaler? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSpatialScalerWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSpatialScalerWithDevice:"), device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newSpatialScalerWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newSpatialScalerWithDevice:"), device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs b/new/dotnet/ios/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs | |
index 2959269..ce44ac4 100644 | |
--- a/old/dotnet/ios/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs | |
+++ b/new/dotnet/ios/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs | |
@@ -146,12 +146,10 @@ namespace MetalFX { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLFXTemporalScaler? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTemporalScalerWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTemporalScalerWithDevice:"), device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newTemporalScalerWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newTemporalScalerWithDevice:"), device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
index 5218250..2738a34 100644 | |
--- a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
+++ b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
@@ -264,9 +264,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -525,9 +523,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
index 21ed256..7ba3eda 100644 | |
--- a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
+++ b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
@@ -241,9 +241,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -424,9 +422,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
index 889485c..eb422a8 100644 | |
--- a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
+++ b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
@@ -204,9 +204,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
@@ -362,9 +360,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
#endif | |
} | |
diff --git a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
index 4e3fb9f..413cca5 100644 | |
--- a/old/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
+++ b/new/dotnet/ios/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
@@ -114,9 +114,7 @@ namespace MetalPerformanceShaders { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
global::Metal.IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
} | |
diff --git a/old/dotnet/maccatalyst/SourceLink.json b/new/dotnet/maccatalyst/SourceLink.json | |
index 0b8e25c..e2325e7 100644 | |
--- a/old/dotnet/maccatalyst/SourceLink.json | |
+++ b/new/dotnet/maccatalyst/SourceLink.json | |
@@ -1,5 +1,5 @@ | |
{ | |
"documents": { | |
- "/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f6501e922fbb525dd1f56ed78540adc8672ac9c8/src*" | |
+ "/Users/builder/azdo/_work/5/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/6aed26646343d3c525a8c7fff6496bd401fdf39e/src*" | |
} | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLArgumentEncoder.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
index 5494ca6..7f9bd8b 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
@@ -693,9 +693,7 @@ namespace Metal { | |
public IMTLArgumentEncoder? CreateArgumentEncoder (nuint index) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), true)!; | |
return ret!; | |
} | |
[Export ("setComputePipelineState:atIndex:")] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLBuffer.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLBuffer.g.cs | |
index f20b165..ee05449 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLBuffer.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLBuffer.g.cs | |
@@ -234,9 +234,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), true)!; | |
return ret!; | |
} | |
[Export ("addDebugMarker:range:")] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLCaptureManager.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLCaptureManager.g.cs | |
index d8e4457..fe0f35f 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLCaptureManager.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLCaptureManager.g.cs | |
@@ -139,12 +139,10 @@ namespace Metal { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("newCaptureScopeWithCommandQueue:")] | |
@@ -155,12 +153,10 @@ namespace Metal { | |
var commandQueue__handle__ = commandQueue!.GetNonNullHandle (nameof (commandQueue)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("startCaptureWithDevice:")] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLComputePipelineState.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLComputePipelineState.g.cs | |
index 31e8ad4..781ef0f 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLComputePipelineState.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLComputePipelineState.g.cs | |
@@ -349,9 +349,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -366,9 +364,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -381,9 +377,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -423,9 +417,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -437,9 +429,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newIntersectionFunctionTableWithDescriptor:")] | |
@@ -449,9 +439,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLDevice.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLDevice.g.cs | |
index cf370b7..95ab3d1 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLDevice.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLDevice.g.cs | |
@@ -2349,9 +2349,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[SupportedOSPlatform ("macos11.0")] | |
@@ -2379,9 +2377,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLDevice This, nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -2394,9 +2390,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[SupportedOSPlatform ("macos13.0")] | |
@@ -2432,9 +2426,7 @@ namespace Metal { | |
{ | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -2449,9 +2441,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2626,9 +2616,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueue")] | |
@@ -2637,9 +2625,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue () | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueueWithMaxCommandBufferCount:")] | |
@@ -2648,9 +2634,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue (nuint maxCommandBufferCount) | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithLength:options:")] | |
@@ -2659,9 +2643,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytes:length:options:")] | |
@@ -2670,9 +2652,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nint pointer, nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytesNoCopy:length:options:deallocator:")] | |
@@ -2685,9 +2665,7 @@ namespace Metal { | |
using var block_deallocator = Trampolines.SDMTLDeallocator.CreateBlock (deallocator); | |
BlockLiteral *block_ptr_deallocator = &block_deallocator; | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), true)!; | |
return ret!; | |
} | |
[Export ("newDepthStencilStateWithDescriptor:")] | |
@@ -2697,9 +2675,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLDepthStencilState? ret; | |
- ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -2709,9 +2685,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:iosurface:plane:")] | |
@@ -2722,9 +2696,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
var iosurface__handle__ = iosurface!.GetNonNullHandle (nameof (iosurface)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithDescriptor:")] | |
@@ -2734,9 +2706,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithHandle:")] | |
@@ -2746,9 +2716,7 @@ namespace Metal { | |
{ | |
var sharedHandle__handle__ = sharedHandle!.GetNonNullHandle (nameof (sharedHandle)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newSamplerStateWithDescriptor:")] | |
@@ -2758,9 +2726,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLSamplerState? ret; | |
- ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newDefaultLibrary")] | |
@@ -2769,9 +2735,7 @@ namespace Metal { | |
public IMTLLibrary CreateDefaultLibrary () | |
{ | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithFile:error:")] | |
@@ -2784,9 +2748,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsfilepath = CFString.CreateNative (filepath); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), true)!; | |
CFString.ReleaseNative (nsfilepath); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2799,9 +2761,7 @@ namespace Metal { | |
var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2816,9 +2776,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nssource = CFString.CreateNative (source); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nssource); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2846,9 +2804,7 @@ namespace Metal { | |
var bundle__handle__ = bundle!.GetNonNullHandle (nameof (bundle)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2860,9 +2816,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2886,9 +2840,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2913,9 +2865,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2939,9 +2889,7 @@ namespace Metal { | |
var computeFunction__handle__ = computeFunction!.GetNonNullHandle (nameof (computeFunction)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2965,9 +2913,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2989,9 +2935,7 @@ namespace Metal { | |
public IMTLFence CreateFence () | |
{ | |
IMTLFence? ret; | |
- ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), true)!; | |
return ret!; | |
} | |
[Export ("supportsFeatureSet:")] | |
@@ -3018,9 +2962,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3051,9 +2993,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (arguments)); | |
var nsa_arguments = NSArray.FromNSObjects (arguments); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), true)!; | |
nsa_arguments.Dispose (); | |
return ret!; | |
} | |
@@ -3064,9 +3004,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIndirectCommandBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newEvent")] | |
@@ -3075,9 +3013,7 @@ namespace Metal { | |
public IMTLEvent? CreateEvent () | |
{ | |
IMTLEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), true)!; | |
return ret!; | |
} | |
[Export ("newSharedEvent")] | |
@@ -3086,9 +3022,7 @@ namespace Metal { | |
public IMTLSharedEvent? CreateSharedEvent () | |
{ | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), true)!; | |
return ret!; | |
} | |
[Export ("newSharedEventWithHandle:")] | |
@@ -3098,9 +3032,7 @@ namespace Metal { | |
{ | |
var sharedEventHandle__handle__ = sharedEventHandle!.GetNonNullHandle (nameof (sharedEventHandle)); | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:")] | |
@@ -3112,9 +3044,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3165,9 +3095,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("supportsFamily:")] | |
@@ -3186,9 +3114,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLCounterSampleBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3214,9 +3140,7 @@ namespace Metal { | |
var library__handle__ = library!.GetNonNullHandle (nameof (library)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3228,9 +3152,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3242,9 +3164,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLBinaryArchive? ret; | |
- ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3267,9 +3187,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:")] | |
@@ -3279,9 +3197,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithStitchedDescriptor:error:")] | |
@@ -3292,9 +3208,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3333,9 +3247,7 @@ namespace Metal { | |
{ | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:")] | |
@@ -3347,9 +3259,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3391,9 +3301,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLogState? ret; | |
- ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3404,9 +3312,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newResidencySetWithDescriptor:error:")] | |
@@ -3417,9 +3323,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLResidencySet? ret; | |
- ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLFunction.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLFunction.g.cs | |
index b97a123..0d1cc88 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLFunction.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLFunction.g.cs | |
@@ -327,9 +327,7 @@ namespace Metal { | |
public IMTLArgumentEncoder CreateArgumentEncoder (nuint bufferIndex) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), true)!; | |
return ret!; | |
} | |
[Export ("newArgumentEncoderWithBufferIndex:reflection:")] | |
@@ -339,9 +337,7 @@ namespace Metal { | |
{ | |
NativeHandle reflectionValue = IntPtr.Zero; | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), true)!; | |
reflection = Runtime.GetNSObject<MTLArgument> (reflectionValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLHeap.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLHeap.g.cs | |
index 92cec7d..f71a149 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLHeap.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLHeap.g.cs | |
@@ -468,9 +468,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLHeap This, nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -483,9 +481,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -497,9 +493,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLHeap This, nuint size, nuint offset) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -512,9 +506,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
} | |
@@ -536,9 +528,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -548,9 +538,7 @@ namespace Metal { | |
{ | |
var desc__handle__ = desc!.GetNonNullHandle (nameof (desc)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
@@ -567,9 +555,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options, nuint offset) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:offset:")] | |
@@ -579,9 +565,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithSize:")] | |
@@ -590,9 +574,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:")] | |
@@ -602,9 +584,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithSize:offset:")] | |
@@ -613,9 +593,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size, nuint offset) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:offset:")] | |
@@ -625,9 +603,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLLibrary.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLLibrary.g.cs | |
index 1886af0..68acc8c 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLLibrary.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLLibrary.g.cs | |
@@ -361,9 +361,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -399,9 +397,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName)); | |
var nsfunctionName = CFString.CreateNative (functionName); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), true)!; | |
CFString.ReleaseNative (nsfunctionName); | |
return ret!; | |
} | |
@@ -416,9 +412,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsname = CFString.CreateNative (name); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nsname); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -457,9 +451,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -482,9 +474,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLRenderPipelineState.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
index b6c7b7f..f02d9bb 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
@@ -451,9 +451,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -466,9 +464,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -482,9 +478,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -530,9 +524,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[Export ("newIntersectionFunctionTableWithDescriptor:stage:")] | |
@@ -542,9 +534,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:")] | |
@@ -555,9 +545,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/Metal/MTLTexture.g.cs b/new/dotnet/maccatalyst/generated-sources/Metal/MTLTexture.g.cs | |
index 36efda6..b4595c5 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/Metal/MTLTexture.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/Metal/MTLTexture.g.cs | |
@@ -755,9 +755,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), true)!; | |
return ret!; | |
} | |
[Export ("newTextureViewWithPixelFormat:textureType:levels:slices:")] | |
@@ -766,9 +764,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), true)!; | |
return ret!; | |
} | |
[Export ("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")] | |
@@ -812,9 +808,7 @@ namespace Metal { | |
public IMTLTexture? Create (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange, MTLTextureSwizzleChannels swizzle) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
index 9728082..cc3cd5e 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
@@ -205,9 +205,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("Beta")] | |
@@ -406,9 +404,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
index bc775be..a7368ce 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
@@ -210,9 +210,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("BiasTerms")] | |
@@ -377,9 +375,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
index 03877fe..c3e8c27 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
@@ -161,9 +161,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("Beta")] | |
@@ -283,9 +281,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
index b09ac88..48edee6 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
@@ -114,9 +114,7 @@ namespace MetalPerformanceShaders { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
global::Metal.IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
} | |
diff --git a/old/dotnet/macos/SourceLink.json b/new/dotnet/macos/SourceLink.json | |
index 0b8e25c..e2325e7 100644 | |
--- a/old/dotnet/macos/SourceLink.json | |
+++ b/new/dotnet/macos/SourceLink.json | |
@@ -1,5 +1,5 @@ | |
{ | |
"documents": { | |
- "/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f6501e922fbb525dd1f56ed78540adc8672ac9c8/src*" | |
+ "/Users/builder/azdo/_work/5/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/6aed26646343d3c525a8c7fff6496bd401fdf39e/src*" | |
} | |
} | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLArgumentEncoder.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
index 0f7a367..20bee87 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
@@ -688,9 +688,7 @@ namespace Metal { | |
public IMTLArgumentEncoder? CreateArgumentEncoder (nuint index) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), true)!; | |
return ret!; | |
} | |
[Export ("setComputePipelineState:atIndex:")] | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLBuffer.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLBuffer.g.cs | |
index 8169b89..4005149 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLBuffer.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLBuffer.g.cs | |
@@ -272,9 +272,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), true)!; | |
return ret!; | |
} | |
[Export ("addDebugMarker:range:")] | |
@@ -300,9 +298,7 @@ namespace Metal { | |
{ | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRemoteBufferViewForDevice:"), device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRemoteBufferViewForDevice:"), device__handle__), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLCaptureManager.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLCaptureManager.g.cs | |
index 77b97ea..d29efae 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLCaptureManager.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLCaptureManager.g.cs | |
@@ -170,12 +170,10 @@ namespace Metal { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewCaptureScopeWithDevice_XHandle, device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewCaptureScopeWithDevice_XHandle, device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewCaptureScopeWithDevice_XHandle, device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewCaptureScopeWithDevice_XHandle, device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("newCaptureScopeWithCommandQueue:")] | |
@@ -186,12 +184,10 @@ namespace Metal { | |
var commandQueue__handle__ = commandQueue!.GetNonNullHandle (nameof (commandQueue)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewCaptureScopeWithCommandQueue_XHandle, commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewCaptureScopeWithCommandQueue_XHandle, commandQueue__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewCaptureScopeWithCommandQueue_XHandle, commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewCaptureScopeWithCommandQueue_XHandle, commandQueue__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("startCaptureWithDevice:")] | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLComputePipelineState.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLComputePipelineState.g.cs | |
index 076081e..471e805 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLComputePipelineState.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLComputePipelineState.g.cs | |
@@ -342,9 +342,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -359,9 +357,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -374,9 +370,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -414,9 +408,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -428,9 +420,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newIntersectionFunctionTableWithDescriptor:")] | |
@@ -440,9 +430,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLDevice.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLDevice.g.cs | |
index 729bf07..3bb8c11 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLDevice.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLDevice.g.cs | |
@@ -2513,9 +2513,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[SupportedOSPlatform ("macos11.0")] | |
@@ -2543,9 +2541,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLDevice This, nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -2558,9 +2554,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[SupportedOSPlatform ("macos13.0")] | |
@@ -2592,9 +2586,7 @@ namespace Metal { | |
{ | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -2609,9 +2601,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2799,9 +2789,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueue")] | |
@@ -2810,9 +2798,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue () | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueueWithMaxCommandBufferCount:")] | |
@@ -2821,9 +2807,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue (nuint maxCommandBufferCount) | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithLength:options:")] | |
@@ -2832,9 +2816,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytes:length:options:")] | |
@@ -2843,9 +2825,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nint pointer, nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytesNoCopy:length:options:deallocator:")] | |
@@ -2858,9 +2838,7 @@ namespace Metal { | |
using var block_deallocator = Trampolines.SDMTLDeallocator.CreateBlock (deallocator); | |
BlockLiteral *block_ptr_deallocator = &block_deallocator; | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), true)!; | |
return ret!; | |
} | |
[Export ("newDepthStencilStateWithDescriptor:")] | |
@@ -2870,9 +2848,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLDepthStencilState? ret; | |
- ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -2882,9 +2858,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:iosurface:plane:")] | |
@@ -2895,9 +2869,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
var iosurface__handle__ = iosurface!.GetNonNullHandle (nameof (iosurface)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithDescriptor:")] | |
@@ -2907,9 +2879,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithHandle:")] | |
@@ -2919,9 +2889,7 @@ namespace Metal { | |
{ | |
var sharedHandle__handle__ = sharedHandle!.GetNonNullHandle (nameof (sharedHandle)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newSamplerStateWithDescriptor:")] | |
@@ -2931,9 +2899,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLSamplerState? ret; | |
- ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newDefaultLibrary")] | |
@@ -2942,9 +2908,7 @@ namespace Metal { | |
public IMTLLibrary CreateDefaultLibrary () | |
{ | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithFile:error:")] | |
@@ -2957,9 +2921,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsfilepath = CFString.CreateNative (filepath); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), true)!; | |
CFString.ReleaseNative (nsfilepath); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2972,9 +2934,7 @@ namespace Metal { | |
var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2989,9 +2949,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nssource = CFString.CreateNative (source); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nssource); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3019,9 +2977,7 @@ namespace Metal { | |
var bundle__handle__ = bundle!.GetNonNullHandle (nameof (bundle)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3033,9 +2989,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3059,9 +3013,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3086,9 +3038,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3112,9 +3062,7 @@ namespace Metal { | |
var computeFunction__handle__ = computeFunction!.GetNonNullHandle (nameof (computeFunction)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3138,9 +3086,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3162,9 +3108,7 @@ namespace Metal { | |
public IMTLFence CreateFence () | |
{ | |
IMTLFence? ret; | |
- ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), true)!; | |
return ret!; | |
} | |
[Export ("supportsFeatureSet:")] | |
@@ -3191,9 +3135,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3224,9 +3166,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (arguments)); | |
var nsa_arguments = NSArray.FromNSObjects (arguments); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), true)!; | |
nsa_arguments.Dispose (); | |
return ret!; | |
} | |
@@ -3237,9 +3177,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIndirectCommandBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newEvent")] | |
@@ -3248,9 +3186,7 @@ namespace Metal { | |
public IMTLEvent? CreateEvent () | |
{ | |
IMTLEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), true)!; | |
return ret!; | |
} | |
[Export ("newSharedEvent")] | |
@@ -3259,9 +3195,7 @@ namespace Metal { | |
public IMTLSharedEvent? CreateSharedEvent () | |
{ | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), true)!; | |
return ret!; | |
} | |
[Export ("newSharedEventWithHandle:")] | |
@@ -3271,9 +3205,7 @@ namespace Metal { | |
{ | |
var sharedEventHandle__handle__ = sharedEventHandle!.GetNonNullHandle (nameof (sharedEventHandle)); | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:")] | |
@@ -3285,9 +3217,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3338,9 +3268,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("supportsFamily:")] | |
@@ -3359,9 +3287,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLCounterSampleBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3387,9 +3313,7 @@ namespace Metal { | |
var library__handle__ = library!.GetNonNullHandle (nameof (library)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3401,9 +3325,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3415,9 +3337,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLBinaryArchive? ret; | |
- ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3440,9 +3360,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:")] | |
@@ -3452,9 +3370,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithStitchedDescriptor:error:")] | |
@@ -3465,9 +3381,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3502,9 +3416,7 @@ namespace Metal { | |
{ | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:")] | |
@@ -3516,9 +3428,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3560,9 +3470,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLogState? ret; | |
- ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3573,9 +3481,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newResidencySetWithDescriptor:error:")] | |
@@ -3586,9 +3492,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLResidencySet? ret; | |
- ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLFunction.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLFunction.g.cs | |
index f196355..d5399cf 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLFunction.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLFunction.g.cs | |
@@ -322,9 +322,7 @@ namespace Metal { | |
public IMTLArgumentEncoder CreateArgumentEncoder (nuint bufferIndex) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), true)!; | |
return ret!; | |
} | |
[Export ("newArgumentEncoderWithBufferIndex:reflection:")] | |
@@ -334,9 +332,7 @@ namespace Metal { | |
{ | |
NativeHandle reflectionValue = IntPtr.Zero; | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), true)!; | |
reflection = Runtime.GetNSObject<MTLArgument> (reflectionValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLHeap.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLHeap.g.cs | |
index baf6bc7..d42f7ce 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLHeap.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLHeap.g.cs | |
@@ -463,9 +463,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLHeap This, nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -478,9 +476,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -492,9 +488,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLHeap This, nuint size, nuint offset) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -507,9 +501,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
} | |
@@ -531,9 +523,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -543,9 +533,7 @@ namespace Metal { | |
{ | |
var desc__handle__ = desc!.GetNonNullHandle (nameof (desc)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
@@ -562,9 +550,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options, nuint offset) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:offset:")] | |
@@ -574,9 +560,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithSize:")] | |
@@ -585,9 +569,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:")] | |
@@ -597,9 +579,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithSize:offset:")] | |
@@ -608,9 +588,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size, nuint offset) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:offset:")] | |
@@ -620,9 +598,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLLibrary.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLLibrary.g.cs | |
index a7771c2..5719c7f 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLLibrary.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLLibrary.g.cs | |
@@ -356,9 +356,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -394,9 +392,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName)); | |
var nsfunctionName = CFString.CreateNative (functionName); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), true)!; | |
CFString.ReleaseNative (nsfunctionName); | |
return ret!; | |
} | |
@@ -411,9 +407,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsname = CFString.CreateNative (name); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nsname); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -452,9 +446,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -477,9 +469,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLRenderPipelineState.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
index 955aca8..1810ff3 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
@@ -444,9 +444,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -459,9 +457,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -475,9 +471,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -523,9 +517,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[Export ("newIntersectionFunctionTableWithDescriptor:stage:")] | |
@@ -535,9 +527,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:")] | |
@@ -548,9 +538,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/macos/generated-sources/Metal/MTLTexture.g.cs b/new/dotnet/macos/generated-sources/Metal/MTLTexture.g.cs | |
index 61a969b..fc0e1c5 100644 | |
--- a/old/dotnet/macos/generated-sources/Metal/MTLTexture.g.cs | |
+++ b/new/dotnet/macos/generated-sources/Metal/MTLTexture.g.cs | |
@@ -787,9 +787,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), true)!; | |
return ret!; | |
} | |
[Export ("newTextureViewWithPixelFormat:textureType:levels:slices:")] | |
@@ -798,9 +796,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), true)!; | |
return ret!; | |
} | |
[Export ("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")] | |
@@ -844,9 +840,7 @@ namespace Metal { | |
public IMTLTexture? Create (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange, MTLTextureSwizzleChannels swizzle) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), true)!; | |
return ret!; | |
} | |
[Export ("newRemoteTextureViewForDevice:")] | |
@@ -856,9 +850,7 @@ namespace Metal { | |
{ | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRemoteTextureViewForDevice:"), device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRemoteTextureViewForDevice:"), device__handle__), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
diff --git a/old/dotnet/macos/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs b/new/dotnet/macos/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs | |
index e37acdb..160cd0f 100644 | |
--- a/old/dotnet/macos/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs | |
+++ b/new/dotnet/macos/generated-sources/MetalFX/MTLFXSpatialScalerDescriptor.g.cs | |
@@ -180,12 +180,10 @@ namespace MetalFX { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLFXSpatialScaler? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewSpatialScalerWithDevice_XHandle, device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewSpatialScalerWithDevice_XHandle, device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewSpatialScalerWithDevice_XHandle, device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXSpatialScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewSpatialScalerWithDevice_XHandle, device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("supportsDevice:")] | |
diff --git a/old/dotnet/macos/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs b/new/dotnet/macos/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs | |
index 08758e8..cd488d0 100644 | |
--- a/old/dotnet/macos/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs | |
+++ b/new/dotnet/macos/generated-sources/MetalFX/MTLFXTemporalScalerDescriptor.g.cs | |
@@ -234,12 +234,10 @@ namespace MetalFX { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLFXTemporalScaler? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewTemporalScalerWithDevice_XHandle, device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selNewTemporalScalerWithDevice_XHandle, device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewTemporalScalerWithDevice_XHandle, device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLFXTemporalScaler> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selNewTemporalScalerWithDevice_XHandle, device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("supportedInputContentMaxScaleForDevice:")] | |
diff --git a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
index 2f6ed18..7f96616 100644 | |
--- a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
+++ b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
@@ -200,9 +200,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("Beta")] | |
@@ -401,9 +399,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
index e5cd53c..695a598 100644 | |
--- a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
+++ b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
@@ -205,9 +205,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("BiasTerms")] | |
@@ -372,9 +370,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
index 54706d6..bbc73c8 100644 | |
--- a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
+++ b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
@@ -156,9 +156,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("Beta")] | |
@@ -278,9 +276,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
} | |
diff --git a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
index da3dff3..d6a46c3 100644 | |
--- a/old/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
+++ b/new/dotnet/macos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
@@ -109,9 +109,7 @@ namespace MetalPerformanceShaders { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
global::Metal.IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
} | |
diff --git a/old/dotnet/tvos/SourceLink.json b/new/dotnet/tvos/SourceLink.json | |
index 0b8e25c..e2325e7 100644 | |
--- a/old/dotnet/tvos/SourceLink.json | |
+++ b/new/dotnet/tvos/SourceLink.json | |
@@ -1,5 +1,5 @@ | |
{ | |
"documents": { | |
- "/Users/builder/azdo/_work/5/a/change-detection/tmp/src/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/f6501e922fbb525dd1f56ed78540adc8672ac9c8/src*" | |
+ "/Users/builder/azdo/_work/5/s/xamarin-macios/src*": "https://raw.githubusercontent.com/xamarin/xamarin-macios/6aed26646343d3c525a8c7fff6496bd401fdf39e/src*" | |
} | |
} | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLArgumentEncoder.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
index 0435b77..12011cc 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLArgumentEncoder.g.cs | |
@@ -685,9 +685,7 @@ namespace Metal { | |
public IMTLArgumentEncoder? CreateArgumentEncoder (nuint index) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderForBufferAtIndex:"), index), true)!; | |
return ret!; | |
} | |
[Export ("setComputePipelineState:atIndex:")] | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLBuffer.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLBuffer.g.cs | |
index 6d850e1..e352891 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLBuffer.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLBuffer.g.cs | |
@@ -198,9 +198,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:bytesPerRow:"), descriptor__handle__, offset, bytesPerRow), true)!; | |
return ret!; | |
} | |
[Export ("addDebugMarker:range:")] | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLCaptureManager.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLCaptureManager.g.cs | |
index 847ca9d..55bbc5e 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLCaptureManager.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLCaptureManager.g.cs | |
@@ -131,12 +131,10 @@ namespace Metal { | |
var device__handle__ = device!.GetNonNullHandle (nameof (device)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithDevice:"), device__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("newCaptureScopeWithCommandQueue:")] | |
@@ -147,12 +145,10 @@ namespace Metal { | |
var commandQueue__handle__ = commandQueue!.GetNonNullHandle (nameof (commandQueue)); | |
IMTLCaptureScope? ret; | |
if (IsDirectBinding) { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), true)!; | |
} else { | |
- ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), false)!; | |
+ ret = Runtime.GetINativeObject<IMTLCaptureScope> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("newCaptureScopeWithCommandQueue:"), commandQueue__handle__), true)!; | |
} | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
return ret!; | |
} | |
[Export ("startCaptureWithDevice:")] | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLComputePipelineState.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLComputePipelineState.g.cs | |
index 5da5743..03b362d 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLComputePipelineState.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLComputePipelineState.g.cs | |
@@ -339,9 +339,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -356,9 +354,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -371,9 +367,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -411,9 +405,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsa_functions = NSArray.FromNSObjects (functions); | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), nsa_functions.Handle, &errorValue), true)!; | |
nsa_functions.Dispose (); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -425,9 +417,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newIntersectionFunctionTableWithDescriptor:")] | |
@@ -437,9 +427,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLDevice.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLDevice.g.cs | |
index ac361f4..92b2935 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLDevice.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLDevice.g.cs | |
@@ -2244,9 +2244,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[SupportedOSPlatform ("macos11.0")] | |
@@ -2278,9 +2276,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLDevice This, nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -2293,9 +2289,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[SupportedOSPlatform ("macos13.0")] | |
@@ -2327,9 +2321,7 @@ namespace Metal { | |
{ | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -2344,9 +2336,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2521,9 +2511,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueue")] | |
@@ -2532,9 +2520,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue () | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newCommandQueue")), true)!; | |
return ret!; | |
} | |
[Export ("newCommandQueueWithMaxCommandBufferCount:")] | |
@@ -2543,9 +2529,7 @@ namespace Metal { | |
public IMTLCommandQueue? CreateCommandQueue (nuint maxCommandBufferCount) | |
{ | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithLength:options:")] | |
@@ -2554,9 +2538,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytes:length:options:")] | |
@@ -2565,9 +2547,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nint pointer, nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithBytes:length:options:"), pointer, length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newBufferWithBytesNoCopy:length:options:deallocator:")] | |
@@ -2580,9 +2560,7 @@ namespace Metal { | |
using var block_deallocator = Trampolines.SDMTLDeallocator.CreateBlock (deallocator); | |
BlockLiteral *block_ptr_deallocator = &block_deallocator; | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_UIntPtr_UIntPtr_NativeHandle (this.Handle, Selector.GetHandle ("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, (UIntPtr) (ulong) options, (IntPtr) block_ptr_deallocator), true)!; | |
return ret!; | |
} | |
[Export ("newDepthStencilStateWithDescriptor:")] | |
@@ -2592,9 +2570,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLDepthStencilState? ret; | |
- ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDepthStencilState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newDepthStencilStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -2604,9 +2580,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:iosurface:plane:")] | |
@@ -2617,9 +2591,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
var iosurface__handle__ = iosurface!.GetNonNullHandle (nameof (iosurface)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:iosurface:plane:"), descriptor__handle__, iosurface__handle__, plane), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithDescriptor:")] | |
@@ -2629,9 +2601,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newSharedTextureWithHandle:")] | |
@@ -2641,9 +2611,7 @@ namespace Metal { | |
{ | |
var sharedHandle__handle__ = sharedHandle!.GetNonNullHandle (nameof (sharedHandle)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedTextureWithHandle:"), sharedHandle__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newSamplerStateWithDescriptor:")] | |
@@ -2653,9 +2621,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLSamplerState? ret; | |
- ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSamplerState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSamplerStateWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newDefaultLibrary")] | |
@@ -2664,9 +2630,7 @@ namespace Metal { | |
public IMTLLibrary CreateDefaultLibrary () | |
{ | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newDefaultLibrary")), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithFile:error:")] | |
@@ -2679,9 +2643,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsfilepath = CFString.CreateNative (filepath); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithFile:error:"), nsfilepath, &errorValue), true)!; | |
CFString.ReleaseNative (nsfilepath); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2694,9 +2656,7 @@ namespace Metal { | |
var data__handle__ = data!.GetNonNullHandle (nameof (data)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithData:error:"), data__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2711,9 +2671,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nssource = CFString.CreateNative (source); | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithSource:options:error:"), nssource, options__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nssource); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2741,9 +2699,7 @@ namespace Metal { | |
var bundle__handle__ = bundle!.GetNonNullHandle (nameof (bundle)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDefaultLibraryWithBundle:error:"), bundle__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2755,9 +2711,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2781,9 +2735,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2808,9 +2760,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:options:reflection:error:"), computeFunction__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2834,9 +2784,7 @@ namespace Metal { | |
var computeFunction__handle__ = computeFunction!.GetNonNullHandle (nameof (computeFunction)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithFunction:error:"), computeFunction__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2860,9 +2808,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLComputePipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLComputePipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newComputePipelineStateWithDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLComputePipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -2884,9 +2830,7 @@ namespace Metal { | |
public IMTLFence CreateFence () | |
{ | |
IMTLFence? ret; | |
- ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFence> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newFence")), true)!; | |
return ret!; | |
} | |
[Export ("supportsFeatureSet:")] | |
@@ -2913,9 +2857,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -2946,9 +2888,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (arguments)); | |
var nsa_arguments = NSArray.FromNSObjects (arguments); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithArguments:"), nsa_arguments.Handle), true)!; | |
nsa_arguments.Dispose (); | |
return ret!; | |
} | |
@@ -2959,9 +2899,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIndirectCommandBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIndirectCommandBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), descriptor__handle__, maxCount, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newEvent")] | |
@@ -2970,9 +2908,7 @@ namespace Metal { | |
public IMTLEvent? CreateEvent () | |
{ | |
IMTLEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newEvent")), true)!; | |
return ret!; | |
} | |
[Export ("newSharedEvent")] | |
@@ -2981,9 +2917,7 @@ namespace Metal { | |
public IMTLSharedEvent? CreateSharedEvent () | |
{ | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("newSharedEvent")), true)!; | |
return ret!; | |
} | |
[Export ("newSharedEventWithHandle:")] | |
@@ -2993,9 +2927,7 @@ namespace Metal { | |
{ | |
var sharedEventHandle__handle__ = sharedEventHandle!.GetNonNullHandle (nameof (sharedEventHandle)); | |
IMTLSharedEvent? ret; | |
- ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLSharedEvent> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newSharedEventWithHandle:"), sharedEventHandle__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:")] | |
@@ -3007,9 +2939,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3064,9 +2994,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLRasterizationRateMap? ret; | |
- ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRasterizationRateMap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newRasterizationRateMapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("supportsFamily:")] | |
@@ -3085,9 +3013,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLCounterSampleBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCounterSampleBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newCounterSampleBufferWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3113,9 +3039,7 @@ namespace Metal { | |
var library__handle__ = library!.GetNonNullHandle (nameof (library)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibrary:error:"), library__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3127,9 +3051,7 @@ namespace Metal { | |
var url__handle__ = url!.GetNonNullHandle (nameof (url)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLDynamicLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLDynamicLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newDynamicLibraryWithURL:error:"), url__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3141,9 +3063,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLBinaryArchive? ret; | |
- ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBinaryArchive> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newBinaryArchiveWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3170,9 +3090,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:")] | |
@@ -3182,9 +3100,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newLibraryWithStitchedDescriptor:error:")] | |
@@ -3195,9 +3111,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLibrary? ret; | |
- ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLibrary> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLibraryWithStitchedDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3232,9 +3146,7 @@ namespace Metal { | |
{ | |
var bufferBinding__handle__ = bufferBinding!.GetNonNullHandle (nameof (bufferBinding)); | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferBinding:"), bufferBinding__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:")] | |
@@ -3246,9 +3158,7 @@ namespace Metal { | |
NativeHandle reflectionValue = IntPtr.Zero; | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr_ref_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithMeshDescriptor:options:reflection:error:"), descriptor__handle__, (UIntPtr) (ulong) options, &reflectionValue, &errorValue), true)!; | |
reflection = Runtime.GetNSObject<MTLRenderPipelineReflection> (reflectionValue)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -3294,9 +3204,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLLogState? ret; | |
- ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLLogState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newLogStateWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -3307,9 +3215,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLCommandQueue? ret; | |
- ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLCommandQueue> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newCommandQueueWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newResidencySetWithDescriptor:error:")] | |
@@ -3320,9 +3226,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLResidencySet? ret; | |
- ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLResidencySet> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newResidencySetWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLFunction.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLFunction.g.cs | |
index 72fd81a..9d33ac9 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLFunction.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLFunction.g.cs | |
@@ -319,9 +319,7 @@ namespace Metal { | |
public IMTLArgumentEncoder CreateArgumentEncoder (nuint bufferIndex) | |
{ | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:"), bufferIndex), true)!; | |
return ret!; | |
} | |
[Export ("newArgumentEncoderWithBufferIndex:reflection:")] | |
@@ -331,9 +329,7 @@ namespace Metal { | |
{ | |
NativeHandle reflectionValue = IntPtr.Zero; | |
IMTLArgumentEncoder? ret; | |
- ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLArgumentEncoder> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_ref_NativeHandle (this.Handle, Selector.GetHandle ("newArgumentEncoderWithBufferIndex:reflection:"), bufferIndex, &reflectionValue), true)!; | |
reflection = Runtime.GetNSObject<MTLArgument> (reflectionValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLHeap.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLHeap.g.cs | |
index 698ba14..a7646fc 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLHeap.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLHeap.g.cs | |
@@ -460,9 +460,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLHeap This, nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -475,9 +473,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -489,9 +485,7 @@ namespace Metal { | |
public static IMTLAccelerationStructure? CreateAccelerationStructure (this IMTLHeap This, nuint size, nuint offset) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -504,9 +498,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
} | |
@@ -528,9 +520,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:"), length, (UIntPtr) (ulong) options), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:")] | |
@@ -540,9 +530,7 @@ namespace Metal { | |
{ | |
var desc__handle__ = desc!.GetNonNullHandle (nameof (desc)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:"), desc__handle__), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
@@ -559,9 +547,7 @@ namespace Metal { | |
public IMTLBuffer? CreateBuffer (nuint length, MTLResourceOptions options, nuint offset) | |
{ | |
IMTLBuffer? ret; | |
- ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLBuffer> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newBufferWithLength:options:offset:"), length, (UIntPtr) (ulong) options, offset), true)!; | |
return ret!; | |
} | |
[Export ("newTextureWithDescriptor:offset:")] | |
@@ -571,9 +557,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newTextureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithSize:")] | |
@@ -582,9 +566,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:"), size), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:")] | |
@@ -594,9 +576,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithSize:offset:")] | |
@@ -605,9 +585,7 @@ namespace Metal { | |
public IMTLAccelerationStructure? CreateAccelerationStructure (nuint size, nuint offset) | |
{ | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithSize:offset:"), size, offset), true)!; | |
return ret!; | |
} | |
[Export ("newAccelerationStructureWithDescriptor:offset:")] | |
@@ -617,9 +595,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLAccelerationStructure? ret; | |
- ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLAccelerationStructure> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newAccelerationStructureWithDescriptor:offset:"), descriptor__handle__, offset), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLLibrary.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLLibrary.g.cs | |
index 656e26f..70faa53 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLLibrary.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLLibrary.g.cs | |
@@ -353,9 +353,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -391,9 +389,7 @@ namespace Metal { | |
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (functionName)); | |
var nsfunctionName = CFString.CreateNative (functionName); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:"), nsfunctionName), true)!; | |
CFString.ReleaseNative (nsfunctionName); | |
return ret!; | |
} | |
@@ -408,9 +404,7 @@ namespace Metal { | |
NativeHandle errorValue = IntPtr.Zero; | |
var nsname = CFString.CreateNative (name); | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithName:constantValues:error:"), nsname, constantValues__handle__, &errorValue), true)!; | |
CFString.ReleaseNative (nsname); | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
@@ -449,9 +443,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -474,9 +466,7 @@ namespace Metal { | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLFunction? ret; | |
- ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLFunction> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newIntersectionFunctionWithDescriptor:error:"), descriptor__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLRenderPipelineState.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
index c2a2880..2a5c10f 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLRenderPipelineState.g.cs | |
@@ -441,9 +441,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -456,9 +454,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (This.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[return: ReleaseAttribute ()] | |
@@ -472,9 +468,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (This.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
@@ -520,9 +514,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLVisibleFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLVisibleFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newVisibleFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[Export ("newIntersectionFunctionTableWithDescriptor:stage:")] | |
@@ -532,9 +524,7 @@ namespace Metal { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
IMTLIntersectionFunctionTable? ret; | |
- ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLIntersectionFunctionTable> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_UIntPtr (this.Handle, Selector.GetHandle ("newIntersectionFunctionTableWithDescriptor:stage:"), descriptor__handle__, (UIntPtr) (ulong) stage), true)!; | |
return ret!; | |
} | |
[Export ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:")] | |
@@ -545,9 +535,7 @@ namespace Metal { | |
var additionalBinaryFunctions__handle__ = additionalBinaryFunctions!.GetNonNullHandle (nameof (additionalBinaryFunctions)); | |
NativeHandle errorValue = IntPtr.Zero; | |
IMTLRenderPipelineState? ret; | |
- ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLRenderPipelineState> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_ref_NativeHandle (this.Handle, Selector.GetHandle ("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), additionalBinaryFunctions__handle__, &errorValue), true)!; | |
error = Runtime.GetNSObject<NSError> (errorValue)!; | |
return ret!; | |
} | |
diff --git a/old/dotnet/tvos/generated-sources/Metal/MTLTexture.g.cs b/new/dotnet/tvos/generated-sources/Metal/MTLTexture.g.cs | |
index 9b7c03a..cecdc44 100644 | |
--- a/old/dotnet/tvos/generated-sources/Metal/MTLTexture.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/Metal/MTLTexture.g.cs | |
@@ -741,9 +741,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:"), (UIntPtr) (ulong) pixelFormat), true)!; | |
return ret!; | |
} | |
[Export ("newTextureViewWithPixelFormat:textureType:levels:slices:")] | |
@@ -752,9 +750,7 @@ namespace Metal { | |
public IMTLTexture? CreateTextureView (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange), true)!; | |
return ret!; | |
} | |
[Export ("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")] | |
@@ -798,9 +794,7 @@ namespace Metal { | |
public IMTLTexture? Create (MTLPixelFormat pixelFormat, MTLTextureType textureType, NSRange levelRange, NSRange sliceRange, MTLTextureSwizzleChannels swizzle) | |
{ | |
IMTLTexture? ret; | |
- ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMTLTexture> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_UIntPtr_UIntPtr_NSRange_NSRange_MTLTextureSwizzleChannels (this.Handle, Selector.GetHandle ("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), (UIntPtr) (ulong) pixelFormat, (UIntPtr) (ulong) textureType, levelRange, sliceRange, swizzle), true)!; | |
return ret!; | |
} | |
[Export ("setPurgeableState:")] | |
diff --git a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
index 1db63b7..a93d420 100644 | |
--- a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnBatchNormalizationDataSource.g.cs | |
@@ -197,9 +197,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("Beta")] | |
@@ -398,9 +396,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnBatchNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnBatchNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
index f72a24f..6d479f3 100644 | |
--- a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnConvolutionDataSource.g.cs | |
@@ -202,9 +202,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("BiasTerms")] | |
@@ -369,9 +367,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnConvolutionDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnConvolutionDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
diff --git a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
index a9a5d44..6a00226 100644 | |
--- a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSCnnInstanceNormalizationDataSource.g.cs | |
@@ -153,9 +153,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
[DynamicDependencyAttribute ("Beta")] | |
@@ -275,9 +273,7 @@ namespace MetalPerformanceShaders { | |
var zone__handle__ = zone.GetHandle (); | |
var device__handle__ = device.GetHandle (); | |
IMPSCnnInstanceNormalizationDataSource? ret; | |
- ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<IMPSCnnInstanceNormalizationDataSource> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle (This.Handle, Selector.GetHandle ("copyWithZone:device:"), zone__handle__, device__handle__), true)!; | |
return ret!; | |
} | |
} | |
diff --git a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
index 233c476..a4f44db 100644 | |
--- a/old/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
+++ b/new/dotnet/tvos/generated-sources/MetalPerformanceShaders/MPSHeapProvider.g.cs | |
@@ -106,9 +106,7 @@ namespace MetalPerformanceShaders { | |
{ | |
var descriptor__handle__ = descriptor!.GetNonNullHandle (nameof (descriptor)); | |
global::Metal.IMTLHeap? ret; | |
- ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), false)!; | |
- if (ret is not null) | |
- global::ObjCRuntime.Messaging.void_objc_msgSend (ret.Handle, Selector.GetHandle ("release")); | |
+ ret = Runtime.GetINativeObject<global::Metal.IMTLHeap> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("newHeapWithDescriptor:"), descriptor__handle__), true)!; | |
return ret!; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment