()
| 1278 | const computeShader = myp5.buildComputeShader(() => { |
| 1279 | const data = myp5.uniformStorage(); |
| 1280 | function getArray() { |
| 1281 | return [1, 2]; |
| 1282 | } |
| 1283 | const arr = getArray(); |
| 1284 | data[myp5.index.x] = arr[0] + arr[1] + myp5.index.x; |
| 1285 | }, { myp5 }); |