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

Function custom

test/features/add-custom-function.js:367–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365function testSetFunctionsFromArrayOnKernel(mode) {
366 const gpu = new GPU({ mode });
367 function custom() {
368 return 1;
369 }
370 const kernel = gpu.createKernel(function() {
371 return custom();
372 }, { output: [1] });

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…