MCPcopy Index your code
hub / github.com/gpujs/gpu.js / addOne

Function addOne

test/features/dev-mode.js:161–163  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

159test('works with adding functions', () => {
160 const gpu = new GPU({ mode: 'dev' });
161 function addOne(value) {
162 return value + 1;
163 }
164 gpu.addFunction(addOne);
165 const kernel = gpu.createKernel(function(value) {
166 return addOne(value);

Callers 1

dev-mode.jsFile · 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…