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.
- ClComputeGraphSimulationiOS 27.0+A simulation of particles, which use a single pipeline.
- StComputeNodeGraphiOS 27.0+A structure that represents a graph of connected compute nodes describing a spatial simulation.
- StPortReferenceiOS 27.0+A reference to another group's values.
Viewpoint and Input 2
Control the simulation's camera viewpoint and respond to pointer input.
- StViewpointCamera viewpoint parameters in 3D space.
- StMouseParamsParameters describing mouse interaction in 3D space.
Elements and Topology 4
Describe how simulation elements are spawned, grouped, and connected into geometry.
- StElementSpawnParametersiOS 27.0+Parameters used to configure the initial state of a particle when it's spawned in the simulation.
- EnElementGroupingiOS 27.0+An enumeration of how elements are grouped.
- EnTopologyiOS 27.0+An enumeration of the geometric topologies used to connect simulation elements.
- EnStripOrientationiOS 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.
- EnUnaryOperationiOS 27.0+An enumeration of single-operand operations.
- EnBinaryOperationiOS 27.0+An enumeration of binary operations.
- EnStandardLibraryFunctioniOS 27.0+An enumeration of standard library functions usable within the compute graph.
- EnSortingiOS 27.0+An enumeration of sorting modes.
Memory and Coordinate Spaces 2
Specify GPU address spaces and coordinate spaces used throughout the graph.
- EnAddressSpaceiOS 27.0+A GPU memory address space.
- EnCoordinateSpaceiOS 27.0+Simulation coordinate space, controlling how positions and orientations are stored.