<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNProgramDelegate/program(_:bindValueForSymbol:atLocation:programID:renderer:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SCNProgramDelegate(im)program:bindValueForSymbol:atLocation:programID:renderer:"
  },
  "title" : "program(_:bindValueForSymbol:atLocation:programID:renderer:)"
}
-->

# program(_:bindValueForSymbol:atLocation:programID:renderer:)

Invoked on the delegate to let it bind program values and/or associated graphics resources (such as textures) for symbols.

```
optional func program(_ program: SCNProgram, bindValueForSymbol symbol: String, atLocation location: UInt32, programID: UInt32, renderer: SCNRenderer) -> Bool
```

## Parameters

`program`

The `SCNProgram` object to bind values for.

`symbol`

The name of the symbol to bind a value for.

`location`

The location of the symbol within the program object to be modified.

`programID`

The underlying OpenGL program object in which the binding is made.

`renderer`

The renderer that is currently rendering the scene.

## Discussion

If you use the [`handleBinding(ofSymbol:handler:)`](/documentation/SceneKit/SCNShadable/handleBinding(ofSymbol:handler:)) method to associate a handler block with a SceneKit object for a symbol, SceneKit will not call the delegate’s [`program(_:bindValueForSymbol:atLocation:programID:renderer:)`](/documentation/SceneKit/SCNProgramDelegate/program(_:bindValueForSymbol:atLocation:programID:renderer:)) method for that symbol when rendering that object.

---

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)