Język

MPSFunction.CopyWithZone(NSZone, IMTLDevice) Metoda

Definicja

Tworzy kopię funkcji dla określonego urządzenia Metal.

[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

Parametry

zone
NSZone

Strefa alokacji lub null do używania strefy domyślnej.

device
IMTLDevice

Urządzenie do kopiowania lub null użycie bieżącego urządzenia.

Zwraca

Kopia funkcji.

Atrybuty

Dotyczy