---
title: ComputeGraphSimulation
framework: Compute Graph
role: symbol
role_heading: Class
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/computegraphsimulation
---

# ComputeGraphSimulation

A simulation of particles, which use a single pipeline.

## Declaration

```swift
final class ComputeGraphSimulation
```

## Overview

Overview This class is independent of the output, which makes for simpler testing.

## Topics

### Structures

- [ComputeGraphSimulation.AdvanceParams](computegraph/computegraphsimulation/advanceparams.md)
- [ComputeGraphSimulation.SimulationRate](computegraph/computegraphsimulation/simulationrate-swift.struct.md)

### Initializers

- [init(pipelines:)](computegraph/computegraphsimulation/init(pipelines:).md)
- [init(pipelines:commandQueue:)](computegraph/computegraphsimulation/init(pipelines:commandqueue:).md)

### Instance Properties

- [commandQueue](computegraph/computegraphsimulation/commandqueue.md)
- [graphUniforms](computegraph/computegraphsimulation/graphuniforms.md)
- [pipelines](computegraph/computegraphsimulation/pipelines.md)
- [simulationRate](computegraph/computegraphsimulation/simulationrate-swift.property.md)

### Instance Methods

- [addUserResource(_:)](computegraph/computegraphsimulation/adduserresource(_:).md)
- [advance(_:)](computegraph/computegraphsimulation/advance(_:).md)
- [buffer(at:)](computegraph/computegraphsimulation/buffer(at:).md)
- [fastForward()](computegraph/computegraphsimulation/fastforward().md)
- [fastForward(stepCount:stepDeltaTime:)](computegraph/computegraphsimulation/fastforward(stepcount:stepdeltatime:).md)
- [isOutputEnabled(_:)](computegraph/computegraphsimulation/isoutputenabled(_:).md)
- [modifyUniforms(_:)](computegraph/computegraphsimulation/modifyuniforms(_:).md)
- [reset(encoder:)](computegraph/computegraphsimulation/reset(encoder:).md)
- [resetRandomSeeds(using:)](computegraph/computegraphsimulation/resetrandomseeds(using:).md)
- [setBuffer(_:bufferOffset:at:)](computegraph/computegraphsimulation/setbuffer(_:bufferoffset:at:)-772ch.md)
- [setBuffer(_:bufferOffset:at:)](computegraph/computegraphsimulation/setbuffer(_:bufferoffset:at:)-bmmd.md)
- [setBuffer(_:bufferOffset:elementCount:at:)](computegraph/computegraphsimulation/setbuffer(_:bufferoffset:elementcount:at:).md)
- [setBuffers(_:bufferOffsets:)](computegraph/computegraphsimulation/setbuffers(_:bufferoffsets:).md)
- [setOutputEnabled(_:enabled:)](computegraph/computegraphsimulation/setoutputenabled(_:enabled:).md)
- [setTexture(_:at:)](computegraph/computegraphsimulation/settexture(_:at:).md)
- [setTextures(_:)](computegraph/computegraphsimulation/settextures(_:).md)
- [setUniform(_:named:)](computegraph/computegraphsimulation/setuniform(_:named:).md)
- [setUniformData(_:at:)](computegraph/computegraphsimulation/setuniformdata(_:at:).md)
- [setUniformValue(_:at:)](computegraph/computegraphsimulation/setuniformvalue(_:at:).md)
- [setUserResources(_:)](computegraph/computegraphsimulation/setuserresources(_:).md)
- [spawn(elements:in:using:)](computegraph/computegraphsimulation/spawn(elements:in:using:).md)
- [texture(at:)](computegraph/computegraphsimulation/texture(at:).md)
