One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSNNReshape

class · iOS 11.3+ · SDK 27.1

class MPSNNReshape

Members (6)

method · iOS 14.0+

encodeBatch

TypeScript
encodeBatchCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, isTemporary: boolean, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): { $ret: Array<MPSImage>; $out: { "outStates": (_Foundation_NSArray) | null } }
Swift declaration
func encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], destinationStates outStates: AutoreleasingUnsafeMutablePointer<NSArray?>, destinationStateIsTemporary isTemporary: Bool, reshapedWidth: Int, reshapedHeight: Int, reshapedFeatureChannels: Int) -> [MPSImage]

Omit the output parameters from the call. The result contains $ret and $out, with outStates inside $out.

method · iOS 14.0+

encodeBatch

TypeScript
encodeBatchCommandBufferSourceImagesReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): Array<MPSImage>
Swift declaration
func encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], reshapedWidth: Int, reshapedHeight: Int, reshapedFeatureChannels: Int) -> [MPSImage]
method · iOS 14.0+

encode

TypeScript
encodeCommandBufferSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImage: MPSImage, isTemporary: boolean, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): { $ret: MPSImage; $out: { "outState": (MPSState) | null } }
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationState outState: AutoreleasingUnsafeMutablePointer<MPSState?>, destinationStateIsTemporary isTemporary: Bool, reshapedWidth: Int, reshapedHeight: Int, reshapedFeatureChannels: Int) -> MPSImage

Omit the output parameters from the call. The result contains $ret and $out, with outState inside $out.

method · iOS 14.0+

encode

TypeScript
encodeCommandBufferSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImage: MPSImage, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): MPSImage
Swift declaration
func encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, reshapedWidth: Int, reshapedHeight: Int, reshapedFeatureChannels: Int) -> MPSImage
init · iOS 11.3+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSNNReshape) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.3+

init

TypeScript
static initDevice(device: SDKHandle): MPSNNReshape
Swift declaration
init(device: any MTLDevice)

Skipped declarations

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

MPSNNReshape.init()

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

All MetalPerformanceShaders types →