Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 addFunction, GPU
B
 browserSupport_canvas, GPUUtils
 browserSupport_webgl, GPUUtils
C
 clone, GPUUtils
 createKernel, GPU
E
 executeKernel, GPU
F
 functionBinder, GPUUtils
 Functions
G
 getArgumentType, GPUUtils
 getCanvas, GPU
 getFunctionName_fromString, GPUUtils
 getKernelFunction, GPU
 getKernelParamObj, GPU
 getParamNames_fromString, GPUUtils
 getWebgl, GPU
 GPU
 GPUUtils
I
 init_canvas, GPUUtils
 init_webgl, GPUUtils
 isCanvas, GPUUtils
 isFunction, GPUUtils
 isFunctionString, GPUUtils
 isWebgl, GPUUtils
N
 newPromise, GPUUtils
S
 supportWebgl, GPU
 systemEndianness, GPUUtils
function addFunction(jsFunction,
paramTypeArray,
returnType)
Adds additional functions, that the kernel may call.
function browserSupport_canvas()
Return TRUE, if browser supports canvas
function browserSupport_webgl()
Return TRUE, if browser supports webgl
function clone(obj)
Returns a clone
function createKernel(kernel,
paramObj)
This creates a callable function object to call the kernel function with the argument parameter set
Executes the kernel previously set by setKernel
function functionBinder(inFunc,
thisObj)
Limited implmentation of Function.bind, with fallback
function getArgumentType(arg)
Evaluate the argument type, to apply respective logic for it
function getCanvas(mode)
[DEPRECATED] Returns the internal canvas instance only if it has been initiated
function getFunctionName_fromString(funcStr)
Return the function name from a JS function string
function getKernelFunction()
Get and returns the kernel function previously set by `createKernel`
function getKernelParamObj()
Get and returns the kernel parameter object previously set by `createKernel`
function getParamNames_fromString(func)
Return list of parameter names extracted from the JS function string
function getWebgl()
[DEPRECATED] Returns the internal gpu webgl instance only if it has been initiated
Initialises the GPU.js library class which manages the WebGL context for the created functions.
Various utility functions / snippets of code that GPU.JS uses internally.\ This covers various snippets of code that is not entirely gpu.js specific (ie.
function init_canvas()
Initiate and returns a canvas, for usage in init_webgl.
function init_webgl(canvasObj)
Initiate and returns a webgl, from a canvas object Returns only if webgl is supported by browser.
function isCanvas(canvasObj)
Return TRUE, on a valid DOM canvas object
function isFunction(funcObj)
Return TRUE, on a JS function
function isFunctionString(funcStr)
Return TRUE, on a valid JS function string
function isWebgl(webglObj)
Return TRUE, on a valid webgl context object
function newPromise(executor)
Returns a `new Promise` object based on the underlying implmentation
function supportWebgl()
Return TRUE, if browser supports webgl AND canvas
function systemEndianness()
Gets the system endianness, and cache it
Close