One Logo Pool Ball
ComputeGraph · IOS API REFERENCE

ComputeNodeGraph.Assembly

struct · iOS 27.0+ · SDK 27.1

struct Assembly

Fully assembled configuration of compute graph nodes. You can create an assembly from a ComputeNodeGraph to obtain the layout of all buffers and uniforms needed by the graph. Unless you need the layout before or without compiling the shaders, you can compile ``Pipelines`` directly from a ``ComputeNodeGraph``.

Members (8)

get · iOS 27.0+

deviceBuffers

TypeScript
get deviceBuffers(): Array<ComputeNodeGraph_Assembly_BufferBinding>
Swift declaration
var deviceBuffers: [ComputeNodeGraph.Assembly.BufferBinding] { get }
get · iOS 27.0+

namedUniforms

TypeScript
get namedUniforms(): Record<string, ComputeNodeGraph_Assembly_UniformBinding>
Swift declaration
var namedUniforms: [String : ComputeNodeGraph.Assembly.UniformBinding] { get }

Uniforms that are named and exposed as parameters of this graph, keyed by name. Unlike ``sharedUniforms``, named uniforms are local to this graph and not shared with other graphs.

get · iOS 27.0+

sharedUniforms

TypeScript
get sharedUniforms(): Record<string, ComputeNodeGraph_Assembly_UniformBinding>
Swift declaration
var sharedUniforms: [String : ComputeNodeGraph.Assembly.UniformBinding] { get }

Uniforms that are shared across multiple graphs, keyed by typeName. Shared uniforms are stored globally and copied into each simulation's uniform buffer before GPU execution. Use them for scene-wide values that many simulations read, such as transform matrices, attractors, or colliders.

get · iOS 27.0+

constantBuffers

TypeScript
get constantBuffers(): Array<ComputeNodeGraph_Assembly_BufferBinding>
Swift declaration
var constantBuffers: [ComputeNodeGraph.Assembly.BufferBinding] { get }
get · iOS 27.0+

uniformBufferSize

TypeScript
get uniformBufferSize(): number
Swift declaration
var uniformBufferSize: Int { get }
get · iOS 27.0+

textures

TypeScript
get textures(): Array<ComputeNodeGraph_Assembly_TextureBinding>
Swift declaration
var textures: [ComputeNodeGraph.Assembly.TextureBinding] { get }
get · iOS 27.0+

uniforms

TypeScript
get uniforms(): NativeMap<ComputeNodeGraph_Port_Address, ComputeNodeGraph_Assembly_Location>
Swift declaration
var uniforms: [ComputeNodeGraph.Port.Address : ComputeNodeGraph.Assembly.Location] { get }
init

init

TypeScript
static init(graph: ComputeNodeGraph): ComputeNodeGraph_Assembly
Swift declaration
init(_ graph: ComputeNodeGraph) throws

Skipped declarations

No declarations were skipped in this snapshot.

All ComputeGraph types →