Reference update()

update()

This feature requires the p5.webgpu.js addon.
This API is experimental

Its behavior may change in a future version of 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().

Examples

Syntax

update(data)

Parameters

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!

Related References