MetalPerformanceShaders · IOS API REFERENCE
MPSNNReshape
class · iOS 11.3+ · SDK 27.1
class MPSNNReshape
Members (6)
method · iOS 14.0+encodeBatch
TypeScriptencodeBatchCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, isTemporary: boolean, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): { $ret: Array<MPSImage>; $out: { "outStates": (_Foundation_NSArray) | null } }
Swift declarationfunc 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
TypeScriptencodeBatchCommandBufferSourceImagesReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): Array<MPSImage>
Swift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], reshapedWidth: Int, reshapedHeight: Int, reshapedFeatureChannels: Int) -> [MPSImage]
method · iOS 14.0+encode
TypeScriptencodeCommandBufferSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImage: MPSImage, isTemporary: boolean, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): { $ret: MPSImage; $out: { "outState": (MPSState) | null } }
Swift declarationfunc 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
TypeScriptencodeCommandBufferSourceImageReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer: SDKHandle, sourceImage: MPSImage, reshapedWidth: number, reshapedHeight: number, reshapedFeatureChannels: number): MPSImage
Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, reshapedWidth: Int, reshapedHeight: Int, reshapedFeatureChannels: Int) -> MPSImage
init · iOS 11.3+init
TypeScriptstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSNNReshape) | null
Swift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.3+init
TypeScriptstatic initDevice(device: SDKHandle): MPSNNReshape
Swift declarationinit(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 →