585 Commits

Author SHA1 Message Date
Robert Plummer
2b6802e292 fix: astBinaryExpression unit tests
Simplify internal/kernel.js tests
2019-02-05 22:13:44 -05:00
Robert Plummer
f48409cc56 fix: Web side tests
Also cleanup moving methods around for reuse and so code can be more concise.
Removed some older references, where now we use `this.thread.x` or `this.output.x`.
Removed some older methods we no longer use (astFunctionPrototype).
Removed some overloaded functions from webgl1 and webgl2 glsl.  We no longer need them.
Removed some references to `=== null` in favor of truthy.  `if (undefined === null)` is true, and can lead to unexpected results, where we really wanted truthy, and is simpler to write.
2019-02-05 21:17:20 -05:00
Robert Plummer
e0388abe5d fix: File formatting from build 2019-02-04 19:50:34 -05:00
Robert Plummer
630bd94ead feat: Completely new type checking system, and refined state management 2019-02-04 19:46:55 -05: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
abdb7a66f9 feat: Finally add the missing json with gpu-core feature!
And add unit tests
2019-01-29 23:41:05 -05:00
Robert Plummer
cc8dc2dc35 fix: Remove TODO's that I'm no longer doing 2019-01-29 21:43:05 -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
bafac7831e feat: Huge rewrite for v2 2019-01-24 22:18:22 -05:00
Robert Plummer
8173ed7f62 fix: Migrating tests and ensuring they act same on all backends 2019-01-19 08:46:42 -05:00
Robert Plummer
3005828b86 fix: Migrating tests, and build
This was a good resting point.
Delete unneeded files.
2019-01-18 08:32:10 -05:00
Robert Plummer
c234e37942 fix: cpu canvas check 2019-01-17 15:24:37 -05:00
Robert Plummer
8e8ca00123 fix: Add integer handling in loops, and related
Remove debug log, move `module.exports` so classes resolve in ide
2019-01-13 12:15:25 -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
Arjun Mehta
b398e4fc73 Increase size of kernels 2018-12-01 19:27:58 -08:00
Arjun Mehta
8fd007d376 Add benchmark test 2018-12-01 18:11:13 -08:00
Arjun Mehta
adbeac7f48 Fix spacing (use tabs) 2018-12-01 17:32:14 -08:00
Arjun Mehta
3543b20c78 Add headless gl to test in node 2018-12-01 17:27:43 -08:00
Robert Plummer
cb4d4f1d4a fix: cpu canvas check 2018-11-18 15:50:35 -05:00
Robert Plummer
e3d80ea3e4 fix: double definitions for arrays when they are integers
fixes #399
2018-11-18 14:08:59 -05:00
Robert Plummer
b577c1a193 fix: CPU transpilation issue for type management
Refactored tests to test webgl, webgl2, and cpu individually and more generically.

Fixes #392
2018-11-01 14:17:08 -04:00
Robert Plummer
87ccce51df fix: thread & output variabel assignment
Fixes #390
2018-11-01 10:03:18 -04:00
Robert Plummer
d765de4cd0 fix: Upgrade remaining non-javascript like types
To be referenced in same way.
Simplify FunctionNode.
Update documentation to be more straightforward.
Remove code no longer needed from WebGL2 FunctionNode.
2018-10-30 08:14:01 -06:00
Robert Plummer
2599966e7c fix: Better defining internal lookups of types and documentation 2018-10-28 14:05:44 -04:00
Robert Plummer
d561fcf228 feat: Migrate to use type strings for arguments and returnType 2018-10-27 14:46:42 -04:00
Robert Plummer
37c9a04bd5 fix: Lookup types from function nodes and use those when transpiling 2018-10-26 19:47:03 -04:00
Robert Plummer
4f26639a59 feat: Lay groundwork for deep type detection from functions
This first pass starts with static values and gives us the mvp of type setting/detection from other functions.
2018-10-26 19:16:50 -04:00
Robert Plummer
3a55872c4f fix: Constant being set weirdly and conflicting with user variables
add unit test
2018-10-24 14:58:06 -04:00
Robert Plummer
0e4c04917a feat: Update for offscreen canvas and retool for cleaner CPU kernel backend
fix toString for kernels as well
Added documentation
Updated release year
2018-10-24 14:12:12 -04:00
Sandeep Mistry
dca8de216c Add initial support for OffcreenCanvas 2018-09-30 11:00:49 -04:00
Robert Plummer
a55ad11ea8
Merge pull request #356 from sandeepmistry/webgl-fallback-when-no-webgl2
Use WebGLRunner if canvas does not support WebGL2
2018-09-21 06:58:23 -04:00
Robert Plummer
625001732b Merge branch 'develop' into 359-addfunction-params-wrong 2018-09-21 06:53:25 -04:00
Robert Plummer
e3d6d3be0a fix: Accept provided webgl context from GPU instance to kernel 2018-09-14 11:52:16 -04:00
Robert Plummer
d4468e33fc feat: Provide a means of obtaining the color texture directly 2018-09-11 15:34:23 -04:00
Nick Hingston
b22eb00e8a Merge branch 'develop' into 359-addfunction-params-wrong 2018-09-05 22:33:19 +01:00
Nick Hingston
72056816c4 fix #359 nested addFunction 2018-09-05 22:32:31 +01:00
Robert Plummer
e2996f8229 bump version number
remove some unneeded console.log messages
remove commented out utility line
2018-09-05 16:55:00 -04:00
Nick Hingston
72e65b206e Merge branch 'develop' into 361-multi-dimensional-output-slow 2018-09-05 21:05:13 +01:00
Nick Hingston
30e5ddb37a make splitArray performant and fix test cases 2018-09-05 21:04:23 +01:00
viziionary
88dcbc8acb Merge remote-tracking branch 'upstream/master' into develop 2018-09-03 14:59:21 -05:00
Robert Plummer
fde58af8fa fix: webgl1 consolidate addConstant statements
fix: webgl2 consolidate addConstant statements and fix image handling
2018-09-03 15:02:22 -04:00
Nick Hingston
f09f915a46 Merge branch 'develop' into 357-modulus-issue 2018-09-02 17:39:55 +01:00
Nick Hingston
d680aded0d fix modulus issue 2018-09-02 17:38:21 +01:00
Robert Plummer
e59452aa98 fix: add sampler2DArray where missing
fix: use highp in webgl2
fix: unit tests to to test for exception in webgl1
2018-09-02 11:28:44 -04:00
viziionary
8b1f51ddac Mid progress update, supporting all constant types 2018-09-02 08:31:30 -05:00
Nick Hingston
c944c27244 read minimum data 2018-09-02 13:12:38 +01:00
Robert Plummer
91833f531d fix: Make images work with constants and CPU
fix: Allow for pixel.r, pixel.g, pixel.b, pixel.a
2018-09-01 15:30:37 -04:00
viziionary
f5951ccb32 Mid progress update 2018-09-01 08:36:34 -05:00
Robert Plummer
c3afd102d8 fix: unit test simplicity and ultimate check as well as strongly typed check in kernels 2018-08-31 08:07:20 -04:00