編集

次の方法で共有


MPSKernel.CopyWithZone(NSZone, IMTLDevice) Method

Definition

Copies a shader for the specified device and zone.

[Foundation.Export("copyWithZone:device:")]
public virtual MetalPerformanceShaders.MPSKernel CopyWithZone (Foundation.NSZone zone, Metal.IMTLDevice device);
abstract member CopyWithZone : Foundation.NSZone * Metal.IMTLDevice -> MetalPerformanceShaders.MPSKernel
override this.CopyWithZone : Foundation.NSZone * Metal.IMTLDevice -> MetalPerformanceShaders.MPSKernel

Parameters

zone
NSZone

Zone to use to allocate this object, or null to use the default zone.

This parameter can be null.

device
IMTLDevice

The device for which to make a copy.

This parameter can be null.

Returns

Attributes

Remarks

App developers can call this method to create copies of shaders for use on multiple threads.

Application developers should call the Supports(IMTLDevice) method to determine if thedevice is supported.

Applies to