MCPcopy Index your code
hub / github.com/processing/p5.js / getArray

Function getArray

test/unit/webgpu/p5.Shader.js:1280–1282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 });

Callers 1

p5.Shader.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected