47 Commits

Author SHA1 Message Date
Jenny Lyndle Arul Jeganathan
2f688fec50 upgrade all dependencies to latest, change gulp merge addon to 'ordered-read-streams' to make build work 2025-02-13 11:49:03 -08:00
Robert Plummer
ae88e1b44c fix: Fix gulp 2019-11-06 17:38:58 -05:00
Robert Plummer
21b9e3b759 fix: Shorten up kernelRunShortcut
fix: Update typescript definitions
fix: `GPU.createKernel`'s `onRequestFallback` to switch kernels entirely so the fallback doesn't continue to happen over and over
fix: `GPU.createKernel`'s `onRequestFallback` to use `argumentTypes`
fix: Minification
fix: examples to use minification
fix: Fix kernel string to support `Array1D(2|3|4)` and `Array3D(2|3|4)`
fix: `lookupKernelValueType` to as well get type, to make lookup easier for `Texture`s
fix: `Kernel` to properly build `this.kernelArguments` and `this.kernelConstants`
fix: `KernelValue` to get its type from `value.type` if it exists
fix: `@returns` keyword in favor of `@return` in some places
fix: DoxDox documentation issue
fix: Remove old reference to "Automatically-built Documentation", no longer applicable
fix: Bump and build
2019-07-26 14:57:36 -04:00
Robert Plummer
86af54efef fix: Node support for v8+
fix: Move `make` cli command to gulp so it runs in parallel
fix: Add official support for `Array1D(2|3|4)`, `Array2D(2|3|4)`, and `Array3D(2|3|4)` and unit tests
fix: Add offical support for `Array(2)`, `Array(3)`, and `Array(4)` and unit tests
fix: Mandelbulb constant used a constant, so moved to appropriate location
fix: Failing unit test for Safari
fix: When not falling back in HeadlessGL, call `STACKGL_resize_drawingbuffer`
fix: Remove `xyz` variable from glsl
fix: Add `uniform4fv` and `uniform4iv` to WebGL implementation
fix: Check for kernel settings `constantTypes` and `argumentTypes`
fix: Inherit type from kernel in KernelValue constructors
fix: Add some typescript details for `GPUVariableType`, `IKernelSettings`, and `ITypesList`
fix: Add support for 4d array in `utils.getMemoryOptimizedFloatTextureSize` for the special use case of `Array3D(2|3|4)`
fix: Add `utils.flatten4dArrayTo` for the special use case of `Array3D(2|3|4)`
fix: Add support for 4d array in `utils.flattenTo`
fix: Bump and build
2019-07-24 12:56:05 -04:00
Tom MacWright
e4c2b34104 Browser compatibility
This allows downstream consumers to use GPU.js with requirejs,
d3-require, unpkg, jsdelivr, and probably some other systems. The main
changes:

- Set { standalone: 'UMD' } in browserify configuration. This makes it
  publish a UMD build that exposes a 'UMD' export or global for
  CommonJS, require, and AMD.
- Move bin/ to dist/, because these are properly distribution files
  rather than binaries.
- Update tests to point to the dist/ version.
- Simplify browser.js to always export, because it is not the
  recommended entry point for any browser.
- Add unpkg and jsdelivr fields to package.json so that those CDNs
  automatically pick up on the right file when someone tries to include
  from them.
2019-06-26 14:14:40 -07:00
Robert Plummer
2b45882c58 feat: Raw output
feat: Consolidate subKernels rendering code as part of the renderStrategy
fix: remove tabs, replace with spaces
fix: make FunctionBuilder.fromKernel typing static
fix: Add missing FunctionBuilder.getPrototypeString definition
fix: Move building logic to kernelRunShortcut as well as exec method
2019-05-17 18:42:35 -04:00
Robert Plummer
20ee1f74f7 feat: Break up the argument and constant handlers into reusable code 2019-05-08 15:21:51 -04:00
Robert Plummer
82e4966551 feat: v2.0.0rc1
Cleanup and add random support (seeded by... Math.random()!)
I went through api and cleaned it up considerably
2019-01-31 18:24:25 -05:00
Robert Plummer
8bf362ad9a feat: No failing tests locally, only skipping and passing
Also:
feat: Typescript typings
feat: api cleanup and exports
feat: removal of building for node, only browser
2019-01-29 21:41:21 -05:00
Robert Plummer
920aaf67d9 feat: Massive simplification and refactor for v2 2019-01-26 21:47:26 -05:00
Robert Plummer
c234e37942 fix: cpu canvas check 2019-01-17 15:24:37 -05:00
Robert Plummer
87e2be5fba feat: Migrating to use gl, bump version number
Not ready yet, but close.  Need build scripts from headless-gl upstream.
2019-01-04 10:29:45 -05:00
Robert Plummer
4340d5cbef fix: NPM vulnerabilities by upgrading some packages 2018-11-18 14:41:12 -05:00
Robert Plummer
f0eefff9eb fix #212 2017-10-24 10:12:21 -04:00
Robert Plummer
707f77784d Remove last traces of jison 2017-07-26 12:48:25 -04:00
Abhishek Soni
15f6efe7ec Fix formatting in generated build files 2017-07-19 23:54:34 +05:30
Robert Plummer
332bbdbb66 Fix #116 2017-07-06 13:54:46 -04:00
Abhishek Soni
33e21c5fa1 CSS injection using gulp to modify docdash's theme 2017-07-05 14:34:47 +05:30
Eugene Cheah
4082f2afa1 Experimental GPUCore base class structure, minor gulp adjustments to make it easier to test on remote devices. 2017-07-02 14:24:20 +08:00
Eugene Cheah
86a486ffdc Add build as part of the default steps 2017-07-02 11:56:03 +08:00
Eugene Cheah
6e26f70dcf gulp opens test-all by default : because I am that lazy to naviagate to test-all 2017-07-02 11:32:43 +08:00
Eugene Cheah
570388a905 Whitespace cleanup 2017-07-02 11:24:11 +08:00
Abhishek Soni
76617d298c Strip comments and mangled output for browser build 2017-06-30 23:59:51 +05:30
Abhishek Soni
573064237e path changes 2017-06-29 18:46:32 +05:30
Abhishek Soni
29cc0b57fa babel is here 2017-06-29 18:17:16 +05:30
Robert Plummer
fee38b9148 cleanup and mostly solves #72 2017-06-09 10:40:31 -04:00
Eugene Cheah
3247df1577 Added gulp beautify settings, for JS beautification. 2017-05-14 18:42:28 +08:00
Robert Plummer
62591e3bf9 have initial validator kernels building, but not actual 2017-05-04 22:15:07 -04:00
Robert Plummer
dfc8e0da00 bring building and part of tests back online 2017-04-30 19:58:37 -04:00
Robert Plummer
5c458c60c1 Some refactoring of method, function, & filenames for consistency, and to eventually support es6. 2017-04-16 21:38:46 -04:00
Eugene Cheah
e7541ebfd5 Removed un-needed console logs 2016-11-23 10:09:20 +08:00
Fazli Sapuan
b150dafdbe Automatic date and version number in header 2016-04-10 16:33:59 +08:00
Eugene Cheah
366a139378 Follow standardised naming 2016-03-11 01:49:05 +08:00
Eugene Cheah
9853b9221e Merge branch 'master' into eugene-#4-async-api
Conflicts:
	gulpfile.js
	src/gpu.js
	src/utils.js
2016-03-10 23:28:28 +08:00
Fazli Sapuan
b9deeceb38 Standardize names 2016-02-28 21:41:30 +08:00
Eugene Cheah
c3ca03d4c2 Migrated gpu, to gpu core 2016-02-28 18:01:39 +08:00
Eugene Cheah
cb519949be Renamed backend files. to mode_(c/g)pu respectively 2016-02-28 17:00:38 +08:00
Eugene Cheah
cf3327c40c Utils function class 2016-02-28 16:31:56 +08:00
Fazli Sapuan
be1a3c0cb2 Remove execute bit on files... 2016-02-27 16:35:28 +08:00
Fazli Sapuan
df84a10efd Implement for loop with expression limit and disable getPixels in graphical 2016-02-25 15:10:16 +08:00
Fazli Sapuan
95897073d8 Update build scripts 2016-02-23 15:44:13 +08:00
Eugene Cheah
6054a81a83 Fixe gulp, added closure jail. 2016-02-15 06:48:30 +08:00
Eugene Cheah
7d2bb1fda7 Merge commit 'fc629bd3e3eae7703df5086c239d038fdc86059e' into eugene-#3-multipleFunctionSupport
Conflicts:
	gulpfile.js
	src/gpu.js
2016-02-15 06:23:52 +08:00
Eugene Cheah
dfaeacac2d Builder, and doc cleanup 2016-02-15 04:11:18 +08:00
Eugene Cheah
347bd01f05 Cleanup documentation framework 2016-02-15 02:56:46 +08:00
Fazli Sapuan
f023d1a49a Add support for toArray() for texture output 2016-02-13 18:16:27 +08:00
Fazli Sapuan
4fb375dc94 Major API changes 2016-02-08 19:27:35 +08:00