MPSKernel.CopyWithZone(NSZone, IMTLDevice) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
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.