<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLStitchedLibraryDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(cs)MTLStitchedLibraryDescriptor"
  },
  "title" : "MTLStitchedLibraryDescriptor"
}
-->

# MTLStitchedLibraryDescriptor

A description of a new library of procedurally generated functions.

```
class MTLStitchedLibraryDescriptor
```

## Overview

An [`MTLStitchedLibraryDescriptor`](/documentation/Metal/MTLStitchedLibraryDescriptor) describes a library of new stitched functions. A *stitched function* is a visible function you create by composing other Metal shader functions together in a function graph.

Configure a stitched library descriptor by assigning an array of one or more [`MTLFunctionStitchingGraph`](/documentation/Metal/MTLFunctionStitchingGraph) instances, each describing a stitched function, to the [`functionGraphs`](/documentation/Metal/MTLStitchedLibraryDescriptor/functionGraphs) property. Then assign an [`MTLFunction`](/documentation/Metal/MTLFunction) array that includes all the functions the graphs depend on to the [`functions`](/documentation/Metal/MTLStitchedLibraryDescriptor/functions) property.

Create a stitched library from the descriptor by passing it to the [`makeLibrary(stitchedDescriptor:)`](/documentation/Metal/MTLDevice/makeLibrary(stitchedDescriptor:)) method of an [`MTLDevice`](/documentation/Metal/MTLDevice). You can change the descriptor to create other libraries without affecting any existing ones.

## Topics

### Configuring a stitched library

[`functions`](/documentation/Metal/MTLStitchedLibraryDescriptor/functions)

The list of functions for creating the stitched library.

[`functionGraphs`](/documentation/Metal/MTLStitchedLibraryDescriptor/functionGraphs)

The function graphs that define the new stitched library’s functions.



---

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)