<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ComputeNodeGraph/Assembly/UniformBinding",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V8AssemblyV14UniformBindingV"
  },
  "title" : "ComputeNodeGraph.Assembly.UniformBinding"
}
-->

# ComputeNodeGraph.Assembly.UniformBinding

Describes how a uniform value is located within the graph’s uniform buffer.

```
struct UniformBinding
```

## Overview

A uniform binding combines a `Relocation_v1` (the byte offset and size
within the uniform buffer) with a [`ComputeNodeGraph.StateType`](/documentation/ComputeGraph/ComputeNodeGraph/StateType) describing
the data layout at that location.

## Topics

### Initializers

[`init(location: ComputeNodeGraph.Assembly.Location, type: ComputeNodeGraph.StateType)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/UniformBinding/init(location:type:))

### Instance Properties

[`var location: ComputeNodeGraph.Assembly.Location`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/UniformBinding/location)

The location of this uniform within the uniform buffer.

[`var type: ComputeNodeGraph.StateType`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/UniformBinding/type)

The data type stored at this location.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)