forked from gpujs/gpu.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkernel-obj-format.js
More file actions
24 lines (24 loc) · 1.76 KB
/
kernel-obj-format.js
File metadata and controls
24 lines (24 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* File: kernel-obj-format
*
* @class KernelObjFormat
*
* The kernelObj is a standard JS object that matches the following format.
*
* This is generated via <exportKernelObj>
*
* |-----------------|---------------|---------------------------------------------------------------------------|
* | Name | Value Type | Description |
* |-----------------|---------------|---------------------------------------------------------------------------|
* | isKernelObj | <Boolean> | Boolean true flag, that is compulsory in the kernel obj validation |
* | optObj | <Object> | { option object } |
* | jsPrecompile | <Object> | Object representing the precompiled kernel for CPU mode |
* | webGlPrecompile | <Object> | Object representing the precompiled kernel for W mode |
* | jsKernel | <String> | String representation of the JS kernel |
* | glHeaders | <String> | Precompiled webgl prototype function headers |
* | glKernel | <String> | Precompiled webgl kernel functions |
* | paramNames | <Array> | Array of strings, containing the kernel parameter names |
* | paramType | <Array> | Array of strings, containing the kernel parameter types, can only be |
* | | | either "Array", "Int", "Float" |
* |-----------------|---------------|---------------------------------------------------------------------------|
*/