gpu.js/dist/notes/kernel-obj-format.js
2017-09-03 12:30:05 -04:00

25 lines
1.8 KiB
JavaScript

/**
* 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" |
* |-----------------|---------------|---------------------------------------------------------------------------|
*/
"use strict";