---
title: constantValues
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/shadergraphmaterial/program-swift.struct/descriptor-swift.struct/constantvalues
---

# constantValues

Values for the function constant inputs declared in shaderNodeGraph.

## Declaration

```swift
var constantValues: MTLFunctionConstantValues
```

## Discussion

Discussion Function constants are compiled directly into the shader and cannot be changed after the program is created.

## See Also

### Specifying the shader graph

- [shaderGraph](realitykit/shadergraphmaterial/program-swift.struct/descriptor-swift.struct/shadergraph.md)
- [inputValues](realitykit/shadergraphmaterial/program-swift.struct/descriptor-swift.struct/inputvalues.md)
