---
title: MTLFunctionStitchingAttribute
framework: metal
role: symbol
role_heading: Protocol
path: metal/mtlfunctionstitchingattribute
---

# MTLFunctionStitchingAttribute

A protocol to identify types that customize how the Metal compiler stitches a function together.

## Declaration

```swift
protocol MTLFunctionStitchingAttribute : NSObjectProtocol
```

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Conforming Types

- [MTLFunctionStitchingAttributeAlwaysInline](metal/mtlfunctionstitchingattributealwaysinline.md)

## See Also

### Stitched function libraries

- [Customizing shaders using function pointers and stitching](metal/customizing-shaders-using-function-pointers-and-stitching.md)
- [MTLStitchedLibraryDescriptor](metal/mtlstitchedlibrarydescriptor.md)
- [MTLFunctionStitchingGraph](metal/mtlfunctionstitchinggraph.md)
- [MTLFunctionStitchingInputNode](metal/mtlfunctionstitchinginputnode.md)
- [MTLFunctionStitchingFunctionNode](metal/mtlfunctionstitchingfunctionnode.md)
- [MTLFunctionStitchingNode](metal/mtlfunctionstitchingnode.md)
- [MTLFunctionStitchingAttributeAlwaysInline](metal/mtlfunctionstitchingattributealwaysinline.md)
