---
title: "ComputeNodeGraph.StateType.primitive(type:)"
framework: Compute Graph
role: symbol
role_heading: Case
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/statetype/primitive(type:)"
---

# ComputeNodeGraph.StateType.primitive(type:)

Value is a primitive with the given type

## Declaration

```swift
case primitive(type: ComputeNodeGraph.DataType)
```
