One Logo Pool Ball
Graphics and Games · IOS API REFERENCE

MetalPerformanceShadersGraph

Build, compile, and execute compute graphs utilizing all the different compute devices on the platform, including GPU, CPU, and Neural Engine.

61 types

796 callable entries

23 skipped

97% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

MPSGraph

class · iOS 14.0+

MPSGraphCompilationCompletionHandler

typealias

MPSGraphCompilationDescriptor

class · iOS 15.0+

MPSGraphCompletionHandler

typealias

MPSGraphControlFlowDependencyBlock

typealias

MPSGraphConvolution2DOpDescriptor

class · iOS 14.0+

MPSGraphConvolution3DOpDescriptor

class · iOS 16.3+

MPSGraphCreateSparseOpDescriptor

class · iOS 15.0+

MPSGraphDeploymentPlatform

enum

MPSGraphDepthwiseConvolution2DOpDescriptor

class · iOS 14.0+

MPSGraphDepthwiseConvolution3DOpDescriptor

class · iOS 15.0+

MPSGraphDevice

class · iOS 14.0+

MPSGraphDeviceType

enum

MPSGraphExecutable

class · iOS 15.0+

MPSGraphExecutableCompletionHandler

typealias · iOS 15.0+

MPSGraphExecutableExecutionDescriptor

class · iOS 15.0+

MPSGraphExecutableScheduledHandler

typealias · iOS 15.0+

MPSGraphExecutableSerializationDescriptor

class · iOS 17.0+

MPSGraphExecutionDescriptor

class · iOS 14.0+

MPSGraphExecutionStage

enum

MPSGraphFFTDescriptor

class · iOS 17.0+

MPSGraphFFTScalingMode

enum

MPSGraphForLoopBodyBlock

typealias

MPSGraphGRUDescriptor

class · iOS 16.0+

MPSGraphIfThenElseBlock

typealias

MPSGraphImToColOpDescriptor

class · iOS 17.0+

MPSGraphLossReductionType

enum

MPSGraphLSTMDescriptor

class · iOS 15.4+

MPSGraphNonMaximumSuppressionCoordinateMode

enum

MPSGraphObject

class · iOS 17.0+

MPSGraphOperation

class · iOS 14.0+

MPSGraphOptimization

enum

MPSGraphOptimizationProfile

enum

MPSGraphOptions

enum

MPSGraphPaddingMode

enum

MPSGraphPaddingStyle

enum

MPSGraphPooling2DOpDescriptor

class · iOS 14.0+

MPSGraphPooling4DOpDescriptor

class · iOS 15.0+

MPSGraphPoolingReturnIndicesMode

enum · iOS 15.3+

MPSGraphRandomDistribution

enum

MPSGraphRandomNormalSamplingMethod

enum

MPSGraphRandomOpDescriptor

class

MPSGraphReducedPrecisionFastMath

struct · iOS 26.0+

MPSGraphReductionMode

enum

MPSGraphResizeMode

enum

MPSGraphResizeNearestRoundingMode

enum

MPSGraphRNNActivation

enum

MPSGraphScatterMode

enum

MPSGraphScheduledHandler

typealias

MPSGraphSDPADescriptor

class · iOS 27.0+

MPSGraphShapedType

class · iOS 14.0+

MPSGraphSingleGateRNNDescriptor

class · iOS 15.4+

MPSGraphSparseStorageType

enum

MPSGraphStencilOpDescriptor

class · iOS 15.0+

MPSGraphTensor

class · iOS 14.0+

MPSGraphTensorData

class · iOS 14.0+

MPSGraphTensorNamedDataLayout

enum

MPSGraphType

class · iOS 15.0+

MPSGraphVariableOp

class · iOS 14.0+

MPSGraphWhileAfterBlock

typealias

MPSGraphWhileBeforeBlock

typealias

Skipped declarations

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

MPSGraph.controlDependency(with:dependentBlock:name:)

callback cannot propagate synchronous failure

MPSGraph.if(_:then:else:name:)

callback cannot propagate synchronous failure

MPSGraph.while(initialInputs:before:after:name:)

callback cannot propagate synchronous failure

MPSGraph.for(lowerBound:upperBound:step:initialBodyArguments:body:name:)

callback cannot propagate synchronous failure

MPSGraph.for(numberOfIterations:initialBodyArguments:body:name:)

callback cannot propagate synchronous failure

MPSGraphTensorData.init(_:)

The iOS SDK compiler rejected this binding: cannot find type 'MTLTensor' in scope

MPSGraphStencilOpDescriptor.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

MPSGraphDepthwiseConvolution2DOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphDepthwiseConvolution3DOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphOperation.init()

inherited init: clang: 'init' is unavailable

MPSGraphConvolution2DOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphConvolution3DOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphDevice.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphTensor.init()

inherited init: clang: 'init' is unavailable

MPSGraphExecutable.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

MPSGraphVariableOp.init()

inherited init: clang: 'init' is unavailable

MPSGraphPooling2DOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphPooling4DOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphShapedType.init()

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

MPSGraphTensorData.init()

inherited init: cannot prove legal (class declares 19 custom initializers)

MPSGraphRandomOpDescriptor.init()

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

MPSGraphImToColOpDescriptor.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

MPSGraphSDPADescriptor.init()

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