MCPcopy Create free account
hub / github.com/gpujs/gpu.js / addOne

Function addOne

test/internal/deep-types.js:273–275  ·  view source on GitHub ↗
(functionValue)

Source from the content-addressed store, hash-verified

271function arrayTexture1(mode) {
272 const gpu = new GPU({ mode });
273 function addOne(functionValue) {
274 return functionValue[this.thread.x] + 1;
275 }
276 gpu.addFunction(addOne);
277 const texture1 = gpu.createKernel(function() {
278 return 1;

Callers 4

arrayTexture1Function · 0.70
arrayTexture2Function · 0.70
arrayTexture3Function · 0.70
arrayTexture4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…