defaultAllocator
TypeScriptstatic defaultAllocator(): SDKHandleSwift declarationclass func defaultAllocator() -> any MPSNDArrayAllocatorclass · iOS 13.0+ · SDK 27.1
class MPSNDArraystatic defaultAllocator(): SDKHandleSwift declarationclass func defaultAllocator() -> any MPSNDArrayAllocatorarrayViewWithDescriptorAliasing(cmdBuf: SDKHandle, descriptor: MPSNDArrayDescriptor, aliasing: MPSAliasingStrategy): (MPSNDArray) | nullSwift declarationfunc arrayView(with cmdBuf: any MTLCommandBuffer, descriptor: MPSNDArrayDescriptor, aliasing: MPSAliasingStrategy) -> MPSNDArray?arrayViewWith(descriptor: MPSNDArrayDescriptor): (MPSNDArray) | nullSwift declarationfunc arrayView(with descriptor: MPSNDArrayDescriptor) -> MPSNDArray?arrayViewWithDimensionCountDimensionSizesStrides(numberOfDimensions: number, dimensionSizes: SDKHandle, dimStrides: SDKHandle): (MPSNDArray) | nullSwift declarationfunc arrayView(withDimensionCount numberOfDimensions: Int, dimensionSizes: UnsafePointer<Int>, strides dimStrides: UnsafePointer<Int>) -> MPSNDArray?arrayViewWithShapeStrides(shape: (Array<_Foundation_NSNumber>) | null, strides: Array<_Foundation_NSNumber>): (MPSNDArray) | nullSwift declarationfunc arrayView(withShape shape: [NSNumber]?, strides: [NSNumber]) -> MPSNDArray?descriptor(): MPSNDArrayDescriptorSwift declarationfunc descriptor() -> MPSNDArrayDescriptorexportDataWithToDestinationDataTypeOffsetRowStrides(cmdBuf: SDKHandle, buffer: SDKHandle, destinationDataType: MPSDataType, offset: number, rowStrides?: (SDKHandle) | null): voidSwift declarationfunc exportData(with cmdBuf: any MTLCommandBuffer, to buffer: any MTLBuffer, destinationDataType: MPSDataType, offset: Int, rowStrides: UnsafeMutablePointer<Int>?)exportDataWithToOffset(cmdBuf: SDKHandle, images: Array<MPSImage>, offset: MPSImageCoordinate): voidSwift declarationfunc exportData(with cmdBuf: any MTLCommandBuffer, to images: [MPSImage], offset: MPSImageCoordinate)importDataWithFromSourceDataTypeOffsetRowStrides(cmdBuf: SDKHandle, buffer: SDKHandle, sourceDataType: MPSDataType, offset: number, rowStrides?: (SDKHandle) | null): voidSwift declarationfunc importData(with cmdBuf: any MTLCommandBuffer, from buffer: any MTLBuffer, sourceDataType: MPSDataType, offset: Int, rowStrides: UnsafeMutablePointer<Int>?)importDataWithFromOffset(cmdBuf: SDKHandle, images: Array<MPSImage>, offset: MPSImageCoordinate): voidSwift declarationfunc importData(with cmdBuf: any MTLCommandBuffer, from images: [MPSImage], offset: MPSImageCoordinate)static initBufferOffsetDescriptor(buffer: SDKHandle, offset: number, descriptor: MPSNDArrayDescriptor): MPSNDArraySwift declarationconvenience init(buffer: any MTLBuffer, offset: Int, descriptor: MPSNDArrayDescriptor)static initDeviceDescriptor(device: SDKHandle, descriptor: MPSNDArrayDescriptor): MPSNDArraySwift declarationinit(device: any MTLDevice, descriptor: MPSNDArrayDescriptor)static initDeviceScalar(device: SDKHandle, value: number): MPSNDArraySwift declarationconvenience init(device: any MTLDevice, scalar value: Double)length(dimensionIndex: number): numberSwift declarationfunc length(ofDimension dimensionIndex: Int) -> IntreadBytes(buffer: SDKHandle, strideBytesPerDimension?: (SDKHandle) | null): voidSwift declarationfunc readBytes(_ buffer: UnsafeMutableRawPointer, strideBytes strideBytesPerDimension: UnsafeMutablePointer<Int>?)resourceSize(): numberSwift declarationfunc resourceSize() -> Intsynchronize(commandBuffer: SDKHandle): voidSwift declarationfunc synchronize(on commandBuffer: any MTLCommandBuffer)userBuffer(): (SDKHandle) | nullSwift declarationfunc userBuffer() -> (any MTLBuffer)?writeBytes(buffer: SDKHandle, strideBytesPerDimension?: (SDKHandle) | null): voidSwift declarationfunc writeBytes(_ buffer: UnsafeMutableRawPointer, strideBytes strideBytesPerDimension: UnsafeMutablePointer<Int>?)get dataType(): MPSDataTypeSwift declarationvar dataType: MPSDataType { get }get dataTypeSize(): numberSwift declarationvar dataTypeSize: Int { get }get device(): SDKHandleSwift declarationvar device: any MTLDevice { get }get label(): (string) | nullSwift declarationvar label: String? { get set }set label(value: (string) | null)Swift declarationvar label: String? { get set }get numberOfDimensions(): numberSwift declarationvar numberOfDimensions: Int { get }get parent(): (MPSNDArray) | nullSwift declarationvar parent: MPSNDArray? { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSNDArray.init()
inherited init: cannot prove legal (class declares 3 custom initializers)