---
title: MPSFunction
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsfunction
---

# MPSFunction

## Declaration

```swift
class MPSFunction
```

## Topics

### Initializers

- [init(coder:)](metalperformanceshaders/mpsfunction/init(coder:).md)

### Instance Properties

- [device](metalperformanceshaders/mpsfunction/device.md)
- [error](metalperformanceshaders/mpsfunction/error.md)
- [function](metalperformanceshaders/mpsfunction/function.md)
- [name](metalperformanceshaders/mpsfunction/name.md)

### Instance Methods

- [copy(with:device:)](metalperformanceshaders/mpsfunction/copy(with:device:).md)
- [functionPrototype()](metalperformanceshaders/mpsfunction/functionprototype().md)

### Type Methods

- [supportsSecureCoding()](metalperformanceshaders/mpsfunction/supportssecurecoding().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [MPSFColorConversion](metalperformanceshaders/mpsfcolorconversion.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
