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

Function createKernel

test/features/create-kernel-map.js:35–39  ·  view source on GitHub ↗
(gpu, output)

Source from the content-addressed store, hash-verified

33
34
35function createKernel(gpu, output) {
36 return gpu.createKernel(function (a) {
37 return a[this.thread.x];
38 }).setOutput(output);
39}
40
41function createKernelMapObject1Dimension1Length(mode) {
42 const gpu = new GPU({ mode });

Calls 2

createKernelMethod · 0.80
setOutputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…