mirror of
https://github.com/gpujs/gpu.js.git
synced 2025-12-08 20:35:56 +00:00
25 lines
1.8 KiB
JavaScript
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"; |