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

Function customAdder

test/features/add-custom-function.js:7–9  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

5
6function inGPUInstanceSettings(mode) {
7 function customAdder(a, b) {
8 return a + b;
9 }
10 const gpu = new GPU({mode, functions: [customAdder] });
11 const kernel = gpu.createKernel(function (a, b) {
12 return customAdder(a[this.thread.x], b[this.thread.x]);

Callers 7

inGPUInstanceSettingsFunction · 0.70
withGPUAddFunctionMethodFunction · 0.70
inKernelInstanceSettingsFunction · 0.70
sumABFunction · 0.70
sumABThisOutputXFunction · 0.70
addCustomPrivateFunction · 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…