---
title: ComputeNodeGraph.Library
framework: Compute Graph
role: symbol
role_heading: Class
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/computenodegraph/library
---

# ComputeNodeGraph.Library

A class defining a library of node definitions that can be added to a ComputeNodeGraph

## Declaration

```swift
final class Library
```

## Overview

Overview A Library contains definitions and also stores MTLFunction implementations for built-in nodes and you can construct new libraries containing nodes you provide. These nodes are functions implemented using the Metal Shading Language and annotated with the [[stitchable]] attribute.

## Topics

### Initializers

- [init()](computegraph/computenodegraph/library/init().md)
- [init(bundle:)](computegraph/computenodegraph/library/init(bundle:).md)
- [init(from:bundleIdentifier:)](computegraph/computenodegraph/library/init(from:bundleidentifier:).md)

### Instance Properties

- [definitions](computegraph/computenodegraph/library/definitions.md)

### Instance Methods

- [definition(named:in:)](computegraph/computenodegraph/library/definition(named:in:).md)
- [definition(stage:)](computegraph/computenodegraph/library/definition(stage:).md)
- [definitionsMatching(input:)](computegraph/computenodegraph/library/definitionsmatching(input:).md)
- [definitionsMatching(inputs:)](computegraph/computenodegraph/library/definitionsmatching(inputs:).md)
- [definitionsMatching(output:)](computegraph/computenodegraph/library/definitionsmatching(output:).md)
- [merge(contentsOf:)](computegraph/computenodegraph/library/merge(contentsof:).md)

### Type Properties

- [shared](computegraph/computenodegraph/library/shared.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
