<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLFunctionType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLFunctionType"
  },
  "title" : "MTLFunctionType"
}
-->

# MTLFunctionType

The type of a top-level Metal Shading Language (MSL) function.

```
enum MTLFunctionType
```

## Topics

### Function types

[`MTLFunctionType.vertex`](/documentation/Metal/MTLFunctionType/vertex)

A vertex function you can use in a render pipeline state object.

[`MTLFunctionType.fragment`](/documentation/Metal/MTLFunctionType/fragment)

A fragment function you can use in a render pipeline state object.

[`MTLFunctionType.kernel`](/documentation/Metal/MTLFunctionType/kernel)

A kernel you can use in a compute pipeline state object.

[`MTLFunctionType.intersection`](/documentation/Metal/MTLFunctionType/intersection)

A function you can use in an intersection function table.

[`MTLFunctionType.visible`](/documentation/Metal/MTLFunctionType/visible)

A function you can use in a visible function table.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)