A named structure type, pairing a type name with its in-memory layout.
A structure definition describes a composite value that can flow through a
compute graph. It associates a Swift- or Metal-visible type name with a
``ComputeNodeGraph/StructureLayout`` that lays out the structure's members,
their offsets, and its overall size and stride.
Use a structure definition to refer to user-defined aggregate types from
other graph types, such as ``ComputeNodeGraph/ValueType/structure(definition:)``
or ``ComputeNodeGraph/StateType/structure(typeName:layout:)``.
Members (5)
get · iOS 27.0+
layout
TypeScript
get layout(): ComputeNodeGraph_StructureLayout
Swift declaration
var layout: ComputeNodeGraph.StructureLayout
The in-memory layout of the structure's members.
The layout describes each member's name, byte offset, and type, along
with the structure's size and stride. See ``ComputeNodeGraph/StructureLayout``.
set · iOS 27.0+
layout
TypeScript
set layout(value: ComputeNodeGraph_StructureLayout)
Swift declaration
var layout: ComputeNodeGraph.StructureLayout
The in-memory layout of the structure's members.
The layout describes each member's name, byte offset, and type, along
with the structure's size and stride. See ``ComputeNodeGraph/StructureLayout``.
The name used to refer to the structure type.
This is the identifier that appears in generated Metal source and in
graph serialization, for example `"Particle"` or `"EmitterUniforms"`.
set · iOS 27.0+
typeName
TypeScript
set typeName(value: string)
Swift declaration
var typeName: String
The name used to refer to the structure type.
This is the identifier that appears in generated Metal source and in
graph serialization, for example `"Particle"` or `"EmitterUniforms"`.