This feature requires the p5.webgpu.js addon.
이 API는 실험적입니다
향후 p5.js 버전에서 동작이 변경될 수 있습니다.
Reads the current contents of the list back to JavaScript.
It returns a Float32Array for float lists, or an array of plain objects for struct lists.
Note: This is a GPU-to-CPU read. Calling it frequently can be slow.
예제
구문
read()
매개변수
반환값
Promise<Float32Array|Object[]>:
Notice any errors or typos? Please let us know. Please feel free to edit src/webgpu/p5.RendererWebGPU.js and open a pull request!