<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ShaderGraph/functionConstantInputs",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:11ShaderGraphAAC22functionConstantInputsSaySSGvp"
  },
  "title" : "functionConstantInputs"
}
-->

# functionConstantInputs

The names of graph inputs whose values are baked in at program compilation time.

```
final var functionConstantInputs: [String]
```

## Discussion

Function constant inputs are compiled directly into the shader and cannot be
changed after [`ShaderGraphMaterial.Program`](/documentation/RealityKit/ShaderGraphMaterial/Program-swift.struct) is created. Supply their values
via [`constantValues`](/documentation/RealityKit/ShaderGraphMaterial/Program-swift.struct/Descriptor-swift.struct/constantValues).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)