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

Function nestedVarDeclareTest

test/issues/31-nested-var-declare-test.js:103–111  ·  view source on GitHub ↗
(mode )

Source from the content-addressed store, hash-verified

101}
102
103function nestedVarDeclareTest(mode ) {
104 const gpu = new GPU({ mode });
105 const f = gpu.createKernel(nestedVarDeclareFunction, {
106 output : [1]
107 });
108
109 assert.equal(f(), 200, 'basic return function test');
110 gpu.destroy();
111}
112
113test('Issue #31 - nestedVarDeclare auto', () => {
114 nestedVarDeclareTest(null);

Callers 1

Calls 2

createKernelMethod · 0.95
destroyMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…