This feature requires the p5.webgpu.js addon.
此 API 是实验性的
其行为可能在 p5.js 的未来版本中发生变化。
Updates the data in the buffer with new values. The new data must be in the same format as the data originally passed to createStorage().
示例
语法
update(data)
参数
data
Number[]|Float32Array|Object[]: The new data to write into the buffer.
Notice any errors or typos? Please let us know. Please feel free to edit src/webgpu/p5.RendererWebGPU.js and open a pull request!