<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "s:12ComputeGraph0aB10SimulationC13AdvanceParamsV"
  },
  "title" : "ComputeGraphSimulation.AdvanceParams"
}
-->

# ComputeGraphSimulation.AdvanceParams

Parameters for advancing a compute graph simulation by one time step.

```
struct AdvanceParams
```

## Topics

### Initializers

[`init(deltaTime: Float, commandBuffer: any MTLCommandBuffer, computeEncoder: any MTLComputeCommandEncoder)`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/init(deltaTime:commandBuffer:computeEncoder:))

Creates advance parameters with the required Metal objects.

[`init(deltaTime: Float, commandBuffer: any MTLCommandBuffer, computeEncoder: any MTLComputeCommandEncoder, localToWorld: simd_float4x4, worldToLocal: simd_float4x4, viewPosition: SIMD3<Float>?, viewDirection: SIMD3<Float>?)`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/init(deltaTime:commandBuffer:computeEncoder:localToWorld:worldToLocal:viewPosition:viewDirection:))

### Instance Properties

[`var commandBuffer: any MTLCommandBuffer`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/commandBuffer)

The command buffer to encode simulation commands into.

[`var computeEncoder: any MTLComputeCommandEncoder`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/computeEncoder)

The compute command encoder to encode simulation dispatches with.

[`var deltaTime: Float`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/deltaTime)

The time interval, in seconds, to advance the simulation.

[`var localToWorld: simd_float4x4`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/localToWorld)

The transform from the system’s local space to world space.

[`var maxSteps: Int`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/maxSteps)

The maximum number of fixed-size steps per advance.

[`var viewDirection: SIMD3<Float>?`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/viewDirection)

The forward direction of the viewer in world space.

[`var viewPosition: SIMD3<Float>?`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/viewPosition)

The position of the viewer in world space.

[`var worldToLocal: simd_float4x4`](/documentation/ComputeGraph/ComputeGraphSimulation/AdvanceParams/worldToLocal)

The transform from world space to the system’s local space.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)