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

# ComputeNodeGraph.StructureLayout.Member

```
struct Member
```

## Topics

### Initializers

[`init(name: String, type: MTLDataType, offset: Int)`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/init(name:type:offset:))

### Instance Properties

[`var dataType: MTLDataType?`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/dataType)

Data type. For types such as `.struct` and `.pointer`,
see [`typeName`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/typeName) and `components` for additional information.

[`var lengthInBytes: Int`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/lengthInBytes)

[`var members: [ComputeNodeGraph.StructureLayout.Member]?`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/members)

[`var name: String`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/name)

Name of this member in the containing structure

[`var offset: Int`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/offset)

Offset, in bytes, of this member in its containing structure

[`var type: ComputeNodeGraph.StateType`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/type)

[`var typeName: String?`](/documentation/ComputeGraph/ComputeNodeGraph/StructureLayout/Member/typeName)

## 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)