MPSNDArrayUnaryKernel.EncodeWithMtl4CommandEncoder 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.
Encodes the kernel with a Metal 4 compute command encoder.
[Foundation.Export("encodeWithMTL4CommandEncoder:sourceArray:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.UnsupportedSimulator("ios")]
public virtual void EncodeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, MetalPerformanceShaders.MPSNDArray destinationArray);
[Foundation.Export("encodeWithMTL4CommandEncoder:sourceArray:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void EncodeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, MetalPerformanceShaders.MPSNDArray destinationArray);
[Foundation.Export("encodeWithMTL4CommandEncoder:sourceArray:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.UnsupportedSimulator("tvos")]
public virtual void EncodeWithMtl4CommandEncoder(Metal.IMTL4ComputeCommandEncoder encoder, MetalPerformanceShaders.MPSNDArray sourceArray, MetalPerformanceShaders.MPSNDArray destinationArray);
[<Foundation.Export("encodeWithMTL4CommandEncoder:sourceArray:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.UnsupportedSimulator("ios")>]
override this.EncodeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * MetalPerformanceShaders.MPSNDArray -> unit
[<Foundation.Export("encodeWithMTL4CommandEncoder:sourceArray:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
override this.EncodeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * MetalPerformanceShaders.MPSNDArray -> unit
[<Foundation.Export("encodeWithMTL4CommandEncoder:sourceArray:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.UnsupportedSimulator("tvos")>]
override this.EncodeWithMtl4CommandEncoder : Metal.IMTL4ComputeCommandEncoder * MetalPerformanceShaders.MPSNDArray * MetalPerformanceShaders.MPSNDArray -> unit
Parameters
- encoder
- IMTL4ComputeCommandEncoder
The Metal 4 compute command encoder.
- sourceArray
- MPSNDArray
The source array.
- destinationArray
- MPSNDArray
The array that receives the result.
- Attributes
Remarks
The encoder associates the command with Dispatch. Synchronize dependent workloads against that stage to prevent race conditions.