MCPcopy Index your code
hub / github.com/gpujs/gpu.js / addFunction

Method addFunction

src/gpu.js:507–510  ·  view source on GitHub ↗

* @desc Adds additional functions, that the kernel may call. * @param {Function|String} source - Javascript function to convert * @param {IFunctionSettings} [settings] * @returns {GPU} returns itself

(source, settings)

Source from the content-addressed store, hash-verified

505 * @returns {GPU} returns itself
506 */
507 addFunction(source, settings) {
508 this.functions.push({ source, settings });
509 return this;
510 }
511
512 /**
513 * @desc Adds additional native functions, that the kernel may call.

Callers 15

vec2TestFunction · 0.95
vec3TestFunction · 0.95
vec4TestFunction · 0.95
sumABFunction · 0.95
testMatrix2Function · 0.95
testMatrix3Function · 0.95
testMatrix4Function · 0.95
oneLayerDeepFloatFunction · 0.95
twoLayerDeepFloatFunction · 0.95
threeLayerDeepFloatFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected