appendBatchBarrier
TypeScriptappendBatchBarrier(): booleanSwift declarationfunc appendBatchBarrier() -> Boolclass · iOS 10.0+ · SDK 27.1
class MPSCNNKernelappendBatchBarrier(): booleanSwift declarationfunc appendBatchBarrier() -> BoolbatchEncodingStorageSize(sourceImage: Array<MPSImage>, sourceStates?: (Array<Array<MPSState>>) | null, destinationImage?: (Array<MPSImage>) | null): numberSwift declarationfunc batchEncodingStorageSize(sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]?) -> IntdestinationImageDescriptor(sourceImages: Array<MPSImage>, sourceStates?: (Array<MPSState>) | null): MPSImageDescriptorSwift declarationfunc destinationImageDescriptor(sourceImages: [MPSImage], sourceStates: [MPSState]?) -> MPSImageDescriptorencodeBatchCommandBufferSourceImages(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>): Array<MPSImage>Swift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage]) -> [MPSImage]encodeBatchCommandBufferSourceImagesDestinationImages(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, destinationImages: Array<MPSImage>): voidSwift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], destinationImages: [MPSImage])encodeBatchCommandBufferSourceImagesDestinationStatesDestinationImages(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, destinationStates: (Array<MPSState>) | null, destinationImages: Array<MPSImage>): voidSwift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], destinationStates: [MPSState]?, destinationImages: [MPSImage])encodeBatchCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer: SDKHandle, sourceImages: Array<MPSImage>, isTemporary: boolean): { $ret: Array<MPSImage>; $out: { "outStates": (_Foundation_NSArray) | null } }Swift declarationfunc encodeBatch(commandBuffer: any MTLCommandBuffer, sourceImages: [MPSImage], destinationStates outStates: AutoreleasingUnsafeMutablePointer<NSArray?>, destinationStateIsTemporary isTemporary: Bool) -> [MPSImage]Omit the output parameters from the call. The result contains $ret and $out, with outStates inside $out.
encodeCommandBufferSourceImage(commandBuffer: SDKHandle, sourceImage: MPSImage): MPSImageSwift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage) -> MPSImageencodeCommandBufferSourceImageDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, destinationImage: MPSImage): voidSwift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationImage: MPSImage)encodeCommandBufferSourceImageDestinationStateDestinationImage(commandBuffer: SDKHandle, sourceImage: MPSImage, destinationState: MPSState, destinationImage: MPSImage): voidSwift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationState: MPSState, destinationImage: MPSImage)encodeCommandBufferSourceImageDestinationStateDestinationStateIsTemporary(commandBuffer: SDKHandle, sourceImage: MPSImage, isTemporary: boolean): { $ret: MPSImage; $out: { "outState": (MPSState) | null } }Swift declarationfunc encode(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, destinationState outState: AutoreleasingUnsafeMutablePointer<MPSState?>, destinationStateIsTemporary isTemporary: Bool) -> MPSImageOmit the output parameters from the call. The result contains $ret and $out, with outState inside $out.
encodingStorageSize(sourceImage: MPSImage, sourceStates?: (Array<MPSState>) | null, destinationImage?: (MPSImage) | null): numberSwift declarationfunc encodingStorageSize(sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage?) -> Intstatic initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNKernel) | nullSwift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)static initDevice(device: SDKHandle): MPSCNNKernelSwift declarationinit(device: any MTLDevice)isResultStateReusedAcrossBatch(): booleanSwift declarationfunc isResultStateReusedAcrossBatch() -> BoolresultStateBatch(sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSState>) | nullSwift declarationfunc resultStateBatch(sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSState]?resultState(sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSState) | nullSwift declarationfunc resultState(sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSState?temporaryResultStateBatch(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSState>) | nullSwift declarationfunc temporaryResultStateBatch(commandBuffer: any MTLCommandBuffer, sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSState]?temporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSState) | nullSwift declarationfunc temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSState?get clipRect(): _Metal_MTLRegionSwift declarationvar clipRect: MTLRegion { get set }set clipRect(value: _Metal_MTLRegion)Swift declarationvar clipRect: MTLRegion { get set }get destinationFeatureChannelOffset(): numberSwift declarationvar destinationFeatureChannelOffset: Int { get set }set destinationFeatureChannelOffset(value: number)Swift declarationvar destinationFeatureChannelOffset: Int { get set }get destinationImageAllocator(): SDKHandleSwift declarationvar destinationImageAllocator: any MPSImageAllocator { get set }set destinationImageAllocator(value: SDKHandle)Swift declarationvar destinationImageAllocator: any MPSImageAllocator { get set }get dilationRateX(): numberSwift declarationvar dilationRateX: Int { get }get dilationRateY(): numberSwift declarationvar dilationRateY: Int { get }get edgeMode(): MPSImageEdgeModeSwift declarationvar edgeMode: MPSImageEdgeMode { get set }set edgeMode(value: MPSImageEdgeMode)Swift declarationvar edgeMode: MPSImageEdgeMode { get set }get isBackwards(): booleanSwift declarationvar isBackwards: Bool { get }get isStateModified(): booleanSwift declarationvar isStateModified: Bool { get }get kernelHeight(): numberSwift declarationvar kernelHeight: Int { get }get kernelWidth(): numberSwift declarationvar kernelWidth: Int { get }get offset(): MPSOffsetSwift declarationvar offset: MPSOffset { get set }set offset(value: MPSOffset)Swift declarationvar offset: MPSOffset { get set }get padding(): SDKHandleSwift declarationvar padding: any MPSNNPadding { get set }set padding(value: SDKHandle)Swift declarationvar padding: any MPSNNPadding { get set }get sourceFeatureChannelMaxCount(): numberSwift declarationvar sourceFeatureChannelMaxCount: Int { get set }set sourceFeatureChannelMaxCount(value: number)Swift declarationvar sourceFeatureChannelMaxCount: Int { get set }get sourceFeatureChannelOffset(): numberSwift declarationvar sourceFeatureChannelOffset: Int { get set }set sourceFeatureChannelOffset(value: number)Swift declarationvar sourceFeatureChannelOffset: Int { get set }get strideInPixelsX(): numberSwift declarationvar strideInPixelsX: Int { get }get strideInPixelsY(): numberSwift declarationvar strideInPixelsY: Int { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSCNNKernel.init()
inherited init: cannot prove legal (class declares 1 custom initializer)