<!--
{
  "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/Location",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Compute Graph",
      "ComputeGraph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0a4NodeB0V8AssemblyV8LocationO"
  },
  "title" : "ComputeNodeGraph.Assembly.Location"
}
-->

# ComputeNodeGraph.Assembly.Location

```
enum Location
```

## Topics

### Enumeration Cases

[`case buffer(index: Int, sizeOffset: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/buffer(index:sizeOffset:))

Buffer that’s bound separately from other data. Size of buffer is stored at sizeOffset in uniforms

[`case constant(value: Int64)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/constant(value:))

Value is a fixed 64-bit constant

[`case constantBuffer(index: Int, offset: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/constantBuffer(index:offset:))

Value is in the constantBuffers table at the specified index and offset

[`case context`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/context)

Value is a context type

[`case deviceBuffer(index: Int, offset: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/deviceBuffer(index:offset:))

Value is in the deviceBuffers table at the specified index and offset

[`case port(node: Int, index: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/port(node:index:))

Value is the output of another node

[`case state(index: Int, offset: Int, length: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/state(index:offset:length:))

A context-dependent state value.

[`case texture(index: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/texture(index:))

Value is a texture with the given index

[`case unbound`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/unbound)

Attribute which is a default value and should be considered “not bound”

[`case uniform(offset: Int, length: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/Assembly/Location/uniform(offset:length:))

Value is located in uniforms. Its value is located at `offset` in the uniforms with length `length`.

## Relationships

### Conforms To

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

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

[`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)