MPSNDArrayIdentity.Reshape 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.
Overloads
Reshape(IMTLCommandBuffer, MPSNDArray, Int32[], MPSNDArray)
[Foundation.Export("reshapeWithCommandBuffer:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray? destinationArray);
[<Foundation.Export("reshapeWithCommandBuffer:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Reshape : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
override this.Reshape : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- shape
- Int32[]
- destinationArray
- MPSNDArray
Returns
- Attributes
Applies to
Reshape(IMTLCommandBuffer, MPSNDArray, UIntPtr[], MPSNDArray)
public MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, UIntPtr[] dimensionSizes, MetalPerformanceShaders.MPSNDArray? destinationArray);
member this.Reshape : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * unativeint[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- dimensionSizes
-
UIntPtr[]
unativeint[]
- destinationArray
- MPSNDArray
Returns
Applies to
Reshape(IMTLComputeCommandEncoder, IMTLCommandBuffer, MPSNDArray, Int32[], MPSNDArray)
[Foundation.Export("reshapeWithCommandEncoder:commandBuffer:sourceArray:shape:destinationArray:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLComputeCommandEncoder? encoder, Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, int[] shape, MetalPerformanceShaders.MPSNDArray? destinationArray);
[<Foundation.Export("reshapeWithCommandEncoder:commandBuffer:sourceArray:shape:destinationArray:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Reshape : Metal.IMTLComputeCommandEncoder * Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
override this.Reshape : Metal.IMTLComputeCommandEncoder * Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * int[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- encoder
- IMTLComputeCommandEncoder
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- shape
- Int32[]
- destinationArray
- MPSNDArray
Returns
- Attributes
Applies to
Reshape(IMTLComputeCommandEncoder, IMTLCommandBuffer, MPSNDArray, UIntPtr[], MPSNDArray)
public MetalPerformanceShaders.MPSNDArray? Reshape(Metal.IMTLComputeCommandEncoder? encoder, Metal.IMTLCommandBuffer? commandBuffer, MetalPerformanceShaders.MPSNDArray sourceArray, UIntPtr[] dimensionSizes, MetalPerformanceShaders.MPSNDArray? destinationArray);
member this.Reshape : Metal.IMTLComputeCommandEncoder * Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArray * unativeint[] * MetalPerformanceShaders.MPSNDArray -> MetalPerformanceShaders.MPSNDArray
Parameters
- encoder
- IMTLComputeCommandEncoder
- commandBuffer
- IMTLCommandBuffer
- sourceArray
- MPSNDArray
- dimensionSizes
-
UIntPtr[]
unativeint[]
- destinationArray
- MPSNDArray