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!