---
title: library
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/custommaterial/surfaceshader/library
---

# library

The Metal library that contains this surface shader function.

## Declaration

```swift
var library: any MTLLibrary { get set }
```

## See Also

### Accessing surface shader properties

- [name](realitykit/custommaterial/surfaceshader/name.md)
