---
title: ComputeNodeGraph.ValueType
framework: Compute Graph
role: symbol
role_heading: Enumeration
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/computenodegraph/valuetype
---

# ComputeNodeGraph.ValueType

Describes the storage and layout of a port’s value, ranging from Metal primitives and structures to opaque references and stateful bindings.

## Declaration

```swift
enum ValueType
```

## Topics

### Enumeration Cases

- [ComputeNodeGraph.ValueType.data(length:)](computegraph/computenodegraph/valuetype/data(length:).md)
- [ComputeNodeGraph.ValueType.dataType(type:)](computegraph/computenodegraph/valuetype/datatype(type:).md)
- [ComputeNodeGraph.ValueType.enumeration(typeName:)](computegraph/computenodegraph/valuetype/enumeration(typename:).md)
- [ComputeNodeGraph.ValueType.none](computegraph/computenodegraph/valuetype/none.md)
- [ComputeNodeGraph.ValueType.opaque(typeName:)](computegraph/computenodegraph/valuetype/opaque(typename:).md)
- [ComputeNodeGraph.ValueType.pointer(type:)](computegraph/computenodegraph/valuetype/pointer(type:).md)
- [ComputeNodeGraph.ValueType.primitive(type:)](computegraph/computenodegraph/valuetype/primitive(type:).md)
- [ComputeNodeGraph.ValueType.state(definition:)](computegraph/computenodegraph/valuetype/state(definition:).md)
- [ComputeNodeGraph.ValueType.string](computegraph/computenodegraph/valuetype/string.md)
- [ComputeNodeGraph.ValueType.structure(definition:)](computegraph/computenodegraph/valuetype/structure(definition:).md)
- [ComputeNodeGraph.ValueType.texture(typeName:)](computegraph/computenodegraph/valuetype/texture(typename:).md)

### Type Methods

- [primitive(_:)](computegraph/computenodegraph/valuetype/primitive(_:).md)
- [structure(typeName:layout:)](computegraph/computenodegraph/valuetype/structure(typename:layout:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
