One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSFunction

class · iOS 27.0+ · SDK 27.1

class MPSFunction

Members (8)

static · iOS 27.0+

supportsSecureCoding

TypeScript
static supportsSecureCoding(): boolean
Swift declaration
class func supportsSecureCoding() -> Bool
method · iOS 27.0+

copy

TypeScript
copy(device?: (SDKHandle) | null): MPSFunction
Swift declaration
func copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> Self
method · iOS 27.0+

functionPrototype

TypeScript
functionPrototype(): string
Swift declaration
func functionPrototype() -> String
init · iOS 27.0+

init

TypeScript
static init(aDecoder: _Foundation_NSCoder): (MPSFunction) | null
Swift declaration
init?(coder aDecoder: NSCoder)
get · iOS 27.0+

device

TypeScript
get device(): SDKHandle
Swift declaration
var device: any MTLDevice { get }
get · iOS 27.0+

error

TypeScript
get error(): (NativeError) | null
Swift declaration
var error: (any Error)? { get }
get · iOS 27.0+

function

TypeScript
get function(): (SDKHandle) | null
Swift declaration
var function: (any MTLFunction)? { get }
get · iOS 27.0+

name

TypeScript
get name(): string
Swift declaration
var name: String { get }

Skipped declarations

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

MPSFunction.init()

inherited init: clang: 'init' is unavailable

All MetalPerformanceShaders types →