One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSNDArrayIdentity

class · iOS 18.0+ · SDK 27.1

class MPSNDArrayIdentity

Members (6)

init · iOS 18.0+

init

TypeScript
static init(device: SDKHandle): MPSNDArrayIdentity
Swift declaration
init(device: any MTLDevice)
method · iOS 18.0+

reshape

TypeScript
reshapeWithSourceArrayDimensionCountDimensionSizesDestinationArray(cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, numberOfDimensions: number, dimensionSizes: SDKHandle, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | null
Swift declaration
func reshape(with cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, dimensionCount numberOfDimensions: Int, dimensionSizes: UnsafeMutablePointer<Int>, destinationArray: MPSNDArray?) -> MPSNDArray?
method · iOS 18.0+

reshape

TypeScript
reshapeWithSourceArrayShapeDestinationArray(cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, shape: Array<_Foundation_NSNumber>, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | null
Swift declaration
func reshape(with cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, shape: [NSNumber], destinationArray: MPSNDArray?) -> MPSNDArray?
method · iOS 18.0+

reshape

TypeScript
reshapeWithCommandBufferSourceArrayDimensionCountDimensionSizesDestinationArray(encoder: (SDKHandle) | null, cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, numberOfDimensions: number, dimensionSizes: SDKHandle, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | null
Swift declaration
func reshape(with encoder: (any MTLComputeCommandEncoder)?, commandBuffer cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, dimensionCount numberOfDimensions: Int, dimensionSizes: UnsafeMutablePointer<Int>, destinationArray: MPSNDArray?) -> MPSNDArray?
method · iOS 18.0+

reshape

TypeScript
reshapeWithCommandBufferSourceArrayShapeDestinationArray(encoder: (SDKHandle) | null, cmdBuf: (SDKHandle) | null, sourceArray: MPSNDArray, shape: Array<_Foundation_NSNumber>, destinationArray?: (MPSNDArray) | null): (MPSNDArray) | null
Swift declaration
func reshape(with encoder: (any MTLComputeCommandEncoder)?, commandBuffer cmdBuf: (any MTLCommandBuffer)?, sourceArray: MPSNDArray, shape: [NSNumber], destinationArray: MPSNDArray?) -> MPSNDArray?
method · iOS 27.0+

reshape

TypeScript
reshapeWithSourceArrayShape(sourceArray: MPSNDArray, shape: Array<_Foundation_NSNumber>): (MPSNDArray) | null
Swift declaration
func reshape(withSourceArray sourceArray: MPSNDArray, shape: [NSNumber]) -> MPSNDArray?

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPSNDArrayIdentity.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All MetalPerformanceShaders types →