Language

MPSFunction.CopyWithZone(NSZone, IMTLDevice) Method

Definition

Creates a copy of the function for the specified Metal device.

[Foundation.Export("copyWithZone:device:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSFunction CopyWithZone(Foundation.NSZone? zone, Metal.IMTLDevice? device);
[<Foundation.Export("copyWithZone:device:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CopyWithZone : Foundation.NSZone * Metal.IMTLDevice -> MetalPerformanceShaders.MPSFunction
override this.CopyWithZone : Foundation.NSZone * Metal.IMTLDevice -> MetalPerformanceShaders.MPSFunction

Parameters

zone
NSZone

The allocation zone, or null to use the default zone.

device
IMTLDevice

The device for the copy, or null to use the current device.

Returns

A copy of the function.

Attributes

Applies to