MCPcopy
hub / github.com/gpujs/gpu.js / kernel

Function kernel

test/internal/loop-int.js:6–12  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

4describe('internal: loop int');
5test('loop int constant output webgl', () => {
6 function kernel(a) {
7 let sum = 0;
8 for (let i = 0; i < this.constants.max; i++) {
9 sum += a[this.thread.x][i];
10 }
11 return sum;
12 }
13 const functionNode = new WebGLFunctionNode(kernel.toString(), {
14 isRootKernel: true,
15 output: [1],

Callers 15

greenCanvasFunction · 0.85
index.jsFile · 0.85
outputArrayFunction · 0.85
outputMatrixFunction · 0.85
outputCubeFunction · 0.85
outputGraphicalArrayFunction · 0.85
outputGraphicalMatrixFunction · 0.85
outputGraphicalCubeFunction · 0.85
canvasArgumentTestFunction · 0.85
inputXFunction · 0.85
inputXYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…