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

# name

The name of the surface shader function.

## Declaration

```swift
var name: String
```

## Discussion

Discussion This is the name of the Metal function the custom material uses as its surface shader. The name needs to match the name of a Metal function in your Xcode project and can’t include parameters or parentheses.

## See Also

### Accessing surface shader properties

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