One Logo Pool Ball
ComputeGraph · IOS API REFERENCE

ComputeNodeGraph.Stage

struct · iOS 27.0+ · SDK 27.1

struct Stage

An execution context within a compute node graph that groups related nodes into a processing phase. Stages define the order and purpose of computation passes. In particle systems, stages correspond to phases like emission, initialization, simulation, and output.

Members (10)

method · iOS 27.0+

canAddNode

TypeScript
canAddNode(definition: ComputeNodeGraph_NodeDefinition): boolean
Swift declaration
func canAddNode(with definition: ComputeNodeGraph.NodeDefinition) -> Bool

Whether a node with the given definition can be used in this stage. Use as a preflight check — for example, to enable a "drop here" target in a node-graph editor, or to filter a library down to definitions valid for a particular stage.

get · iOS 27.0+

initialize

TypeScript
static get initialize(): ComputeNodeGraph_Stage
Swift declaration
static let initialize: ComputeNodeGraph.Stage

Sets initial values for newly spawned particles.

get · iOS 27.0+

eventSource

TypeScript
static get eventSource(): ComputeNodeGraph_Stage
Swift declaration
static let eventSource: ComputeNodeGraph.Stage

A stage that receives events from a simulation (e.g. update or terminate), and initializes new particles for another simulation.

get · iOS 27.0+

name

TypeScript
get name(): string
Swift declaration
let name: String

The identifier for this stage

get · iOS 27.0+

output

TypeScript
static get output(): ComputeNodeGraph_Stage
Swift declaration
static let output: ComputeNodeGraph.Stage

Produces final per-particle results for rendering.

get · iOS 27.0+

compute

TypeScript
static get compute(): ComputeNodeGraph_Stage
Swift declaration
static let compute: ComputeNodeGraph.Stage

A general-purpose computation stage.

get · iOS 27.0+

texture

TypeScript
static get texture(): ComputeNodeGraph_Stage
Swift declaration
static let texture: ComputeNodeGraph.Stage

Generates texture data.

get · iOS 27.0+

emission

TypeScript
static get emission(): ComputeNodeGraph_Stage
Swift declaration
static let emission: ComputeNodeGraph.Stage

Spawns new particles into the system.

get · iOS 27.0+

simulate

TypeScript
static get simulate(): ComputeNodeGraph_Stage
Swift declaration
static let simulate: ComputeNodeGraph.Stage

Updates particle state each frame (position, velocity, lifetime, etc.).

init · iOS 27.0+

init

TypeScript
static init(name: string): ComputeNodeGraph_Stage
Swift declaration
init(_ name: String)

Skipped declarations

No declarations were skipped in this snapshot.

All ComputeGraph types →