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 : ~CopyableDiscussion
ComputeGraph will upload the changes to the GPU before the next simulation.