Contents

modifyUniforms(_:)

Provides read/write access to the entire uniforms buffer for CPU access.

Declaration

final func modifyUniforms<E, R>(_ body: (UnsafeMutableRawBufferPointer) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable

Discussion

ComputeGraph will upload the changes to the GPU before the next simulation.