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

# ComputeNodeGraph.LibraryReference

A Metal library and an optional bundle identifier that locates shader functions.

## Declaration

```swift
struct LibraryReference
```

## Overview

Overview Use addLibrary(_:bundle:) rather than constructing this type directly.

## Topics

### Initializers

- [init(library:bundle:)](computegraph/computenodegraph/libraryreference/init(library:bundle:).md)

### Instance Properties

- [bundle](computegraph/computenodegraph/libraryreference/bundle.md)
- [library](computegraph/computenodegraph/libraryreference/library.md)

## Relationships

### Conforms To

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