TechnologiesAR & Spatial

ComputeGraph

iOSmacOStvOSwatchOSvisionOS

ComputeGraph is a GPU-accelerated compute graph framework for building 3D spatial simulations with Metal across iOS, macOS, tvOS, and visionOS. You assemble a simulation from a ComputeNodeGraph of connected nodes, wiring them together through PortReference values and driving the result with a ComputeGraphSimulation. The framework includes viewpoint control through Viewpoint and types such as CoordinateSpace, and gives you GPU memory management through AddressSpace, while element behavior and graph computation are described with types like ElementSpawnParameters, Topology, UnaryOperation, BinaryOperation, and StandardLibraryFunction.

Essentials 3

Drive a GPU-accelerated spatial simulation by assembling and running a graph of compute nodes.

  • Cl
    ComputeGraphSimulationiOS 27.0+
    A simulation of particles, which use a single pipeline.
  • St
    ComputeNodeGraphiOS 27.0+
    A structure that represents a graph of connected compute nodes describing a spatial simulation.
  • St
    PortReferenceiOS 27.0+
    A reference to another group's values.

Viewpoint and Input 2

Control the simulation's camera viewpoint and respond to pointer input.

  • St
    Viewpoint
    Camera viewpoint parameters in 3D space.
  • St
    MouseParams
    Parameters describing mouse interaction in 3D space.

Elements and Topology 4

Describe how simulation elements are spawned, grouped, and connected into geometry.

  • St
    ElementSpawnParametersiOS 27.0+
    Parameters used to configure the initial state of a particle when it's spawned in the simulation.
  • En
    ElementGroupingiOS 27.0+
    An enumeration of how elements are grouped.
  • En
    TopologyiOS 27.0+
    An enumeration of the geometric topologies used to connect simulation elements.
  • En
    StripOrientationiOS 27.0+
    An enumeration that specifies how a strip should be oriented.

Graph Operations 4

Compute values within the graph using built-in unary, binary, and standard-library functions.

  • En
    UnaryOperationiOS 27.0+
    An enumeration of single-operand operations.
  • En
    BinaryOperationiOS 27.0+
    An enumeration of binary operations.
  • En
    StandardLibraryFunctioniOS 27.0+
    An enumeration of standard library functions usable within the compute graph.
  • En
    SortingiOS 27.0+
    An enumeration of sorting modes.

Memory and Coordinate Spaces 2

Specify GPU address spaces and coordinate spaces used throughout the graph.

  • En
    AddressSpaceiOS 27.0+
    A GPU memory address space.
  • En
    CoordinateSpaceiOS 27.0+
    Simulation coordinate space, controlling how positions and orientations are stored.
← AR & Spatial