init(deltaTime:commandBuffer:computeEncoder:)
Creates advance parameters with the required Metal objects.
Declaration
init(deltaTime: Float, commandBuffer: any MTLCommandBuffer, computeEncoder: any MTLComputeCommandEncoder)Parameters
- deltaTime:
The time interval, in seconds, to advance the simulation.
- commandBuffer:
The command buffer to encode simulation commands into.
- computeEncoder:
The compute command encoder to use.