MPSNDArray.Create 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
Create(UIntPtr, UIntPtr[], UIntPtr[])
public MetalPerformanceShaders.MPSNDArray? Create(UIntPtr numberOfDimensions, UIntPtr[] dimensionSizes, UIntPtr[] dimStrides);
member this.Create : unativeint * unativeint[] * unativeint[] -> MetalPerformanceShaders.MPSNDArray
Parameters
- numberOfDimensions
-
UIntPtr
unativeint
- dimensionSizes
-
UIntPtr[]
unativeint[]
- dimStrides
-
UIntPtr[]
unativeint[]
Returns
Applies to
Create(IMTLDevice, ReadOnlySpan<Single>, Int32[])
public static MetalPerformanceShaders.MPSNDArray Create(Metal.IMTLDevice device, ReadOnlySpan<float> values, params int[] shape);
static member Create : Metal.IMTLDevice * ReadOnlySpan<single> * int[] -> MetalPerformanceShaders.MPSNDArray
Parameters
- device
- IMTLDevice
- values
- ReadOnlySpan<Single>
- shape
- Int32[]
Returns
Applies to
Create(IMTLCommandBuffer, MPSNDArrayDescriptor, MPSAliasingStrategy)
[Foundation.Export("arrayViewWithCommandBuffer:descriptor:aliasing:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Create(Metal.IMTLCommandBuffer cmdBuf, MetalPerformanceShaders.MPSNDArrayDescriptor descriptor, MetalPerformanceShaders.MPSAliasingStrategy aliasing);
[<Foundation.Export("arrayViewWithCommandBuffer:descriptor:aliasing:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Create : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArrayDescriptor * MetalPerformanceShaders.MPSAliasingStrategy -> MetalPerformanceShaders.MPSNDArray
override this.Create : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSNDArrayDescriptor * MetalPerformanceShaders.MPSAliasingStrategy -> MetalPerformanceShaders.MPSNDArray
Parameters
- cmdBuf
- IMTLCommandBuffer
- descriptor
- MPSNDArrayDescriptor
- aliasing
- MPSAliasingStrategy
Returns
- Attributes
Applies to
Create(IntPtr[], IntPtr[])
[Foundation.Export("arrayViewWithShape:strides:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Create(IntPtr[]? shape, IntPtr[] strides);
[<Foundation.Export("arrayViewWithShape:strides:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Create : nativeint[] * nativeint[] -> MetalPerformanceShaders.MPSNDArray
override this.Create : nativeint[] * nativeint[] -> MetalPerformanceShaders.MPSNDArray
Parameters
- shape
-
IntPtr[]
nativeint[]
- strides
-
IntPtr[]
nativeint[]
Returns
- Attributes
Applies to
Create(MPSNDArrayDescriptor)
[Foundation.Export("arrayViewWithDescriptor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSNDArray? Create(MetalPerformanceShaders.MPSNDArrayDescriptor descriptor);
[<Foundation.Export("arrayViewWithDescriptor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Create : MetalPerformanceShaders.MPSNDArrayDescriptor -> MetalPerformanceShaders.MPSNDArray
override this.Create : MetalPerformanceShaders.MPSNDArrayDescriptor -> MetalPerformanceShaders.MPSNDArray
Parameters
- descriptor
- MPSNDArrayDescriptor
Returns
- Attributes