159 Commits

Author SHA1 Message Date
Robert Plummer
08ca02b8ef cleanup tests, bump version number, prep for release 2018-06-05 20:29:04 -04:00
Robert Plummer
2dc7c12fdc cleanup on webgl1 and move over to webgl2 where html image array is only supported. 2018-06-05 20:02:53 -04:00
Robert Plummer
b41b51dc96 remove console logging
simplify test
2018-06-05 17:07:29 -04:00
Robert Plummer
3c152beb85 Nearly completed, though not fully working 2018-06-05 15:16:46 -04:00
Robert Plummer
20745c8671 cleanup test, fix kernel for webgl 2, bump version number, and build awaiting release 2018-06-04 20:07:44 -04:00
Robert Plummer
2e1c1c7438 get cpu version running, but still distorted 2018-06-04 19:40:46 -04:00
Robert Plummer
bd2885085a Implement (slightly broken) api usage of:
```js
var imageKernel = gpu.createKernel(function(image) {
  const pixel = image[this.thread.y][this.thread.x];
  this.color(pixel[0], pixel[1], pixel[2], pixel[3]);
}, {
  debug: true,
  output : [276, 183],
  graphical: true
});
```
2018-06-02 15:17:35 -04:00
Robert Plummer
23f1ce74c0 flip the image and move color to fragment shader 2018-05-27 22:23:36 -04:00
Robert Plummer
9a914e2e85 #296 Add initial working support, with visual test 2018-05-26 15:48:12 -04:00
Federico Galatolo
265aaae9d6 Wrote tests for the do{...}while(...) construct 2018-04-27 19:39:17 +02:00
Robert Plummer
af7060d88e webgl1 and webgl2, together at last, and tested. 2018-03-08 20:00:05 -05:00
Robert Plummer
5850030e81 make uniforms only set if their values indeed change, and add tests 2018-03-06 10:42:24 -05:00
Robert Plummer
5c7187af79 reuse dimensions on textures to prevent utils.getDimensions(inputTexture, true); call, which clones deep 2018-03-01 19:40:36 -05:00
Robert Plummer
7898fed31f fix, test, bump version number, and make. 2018-03-01 15:57:40 -05:00
Robert Plummer
2ba6698aa3 adding more combinations of unit tests
they are all passing, but just trying to try every combination
2018-02-28 20:30:39 -05:00
Robert Plummer
4eda87735a fix #267 by refining implementation a bit 2018-02-28 15:19:58 -05:00
Robert Plummer
01299be9f0 fix #259 by handling when atan2 is used directly in the interpreter
also add unit tests ensuring resolved
2018-02-27 13:07:59 -05:00
Robert Plummer
6f164744f5 get toString working correctly again 2018-02-25 18:59:33 -05:00
Robert Plummer
2cb67c4244 propose changes for fix how floating values are handled 2017-12-18 11:10:45 -05:00
Paul Loyd
b5104ddacc Add missed floatOutput testing 2017-12-15 21:41:59 +03:00
Paul Loyd
89ac2592f3 fix #233 2017-12-15 20:53:54 +03:00
Robert Plummer
4b15eea5b3 fix #220 with unit tests
I was able to unify the FunctionNodeBase.astMemberExpressionUnroll for reuse in both CPU and WebGL kernels.  So I refactored for simplification.
2017-11-08 16:16:15 -05:00
Robert Plummer
91519d4175 fix #218 with unit tests 2017-11-08 09:53:15 -05:00
Robert Plummer
6424ecf705 fix #207 2017-10-25 08:33:51 -04:00
Robert Plummer
a1e3793efe correct unit test 2017-10-25 07:54:16 -04:00
Robert Plummer
aa9046476c reproduced error 2017-10-25 07:48:06 -04:00
Robert Plummer
6e3eacffe6 build and min 2017-10-24 10:22:29 -04:00
Robert Plummer
708dbd9bef Merge branch 'develop' into 193-read-in-take-2 2017-10-24 10:16:40 -04:00
Robert Plummer
f0eefff9eb fix #212 2017-10-24 10:12:21 -04:00
Robert Plummer
c749d2e1fa Merge branch 'develop' into 193-read-in-take-2 2017-10-17 08:03:52 -04:00
Richard Mathie
aab66c6c06 Sfixes #195 texture reading in 2d and 3d 2017-10-07 14:29:38 +01:00
Robert Plummer
b9503e8345 #193 solved, by using a flat input that has dimensions 2017-10-05 17:41:12 -04:00
Robert Plummer
1f8de19561 Ensure our demo runs on latest 2017-10-04 15:28:09 -04:00
Robert Plummer
881de164cc Implement #191 2017-09-29 14:01:24 -04:00
Robert Plummer
b9e66c7692 add test for loopMaxIterations reference fix 2017-08-29 16:27:40 -04:00
Robert Plummer
49c8af0a44 expose addFunction and addNativeFunction on kernel and gpu instance. 2017-08-28 09:11:25 -04:00
Robert Plummer
60faeda52f change addGLSLFunction to addNativeFunction, and add unit test 2017-08-28 08:56:59 -04:00
Robert Plummer
c57f543659 runDimensions to output 2017-08-17 14:41:46 -04:00
Robert Plummer
47fd70faab Merge branch 'develop' into 156-proposals 2017-08-17 13:58:21 -04:00
Robert Plummer
0196d3566d fully fix #159 with no performance issue 2017-08-11 16:07:58 -04:00
Robert Plummer
2c79c3452b fully fix #159 2017-08-10 20:36:01 -04:00
Robert Plummer
3848d07f63 #159 unit test 2017-08-10 16:39:53 -04:00
Robert Plummer
1fd535ee64 #156 create ability to add functions on createKernel and createKernelMap 2017-08-09 13:40:11 -04:00
Robert Plummer
4441a28e23 #156 use output rather than dimensions and support both object and array 2017-08-09 13:23:01 -04:00
Robert Plummer
ec7c8a3e4e use this.constants to achieve constant lookup 2017-08-09 12:56:45 -04:00
Robert Plummer
b8a1ce9bfa improve performance by moving more items to build that can be 2017-07-26 17:17:06 -04:00
Robert Plummer
31873d5ae2 More fixes for #58 2017-07-26 12:47:26 -04:00
Robert Plummer
92d25fc9a3 Partially fix #152
And fix broken build
2017-07-25 15:10:48 -04:00
Robert Plummer
3f04b30896 #58
Simpler remove cloning result right after we get it in core, remove debugging in all tests
2017-07-21 18:44:55 -04:00
Robert Plummer
d81271fb6b #58
Strict mode blows up on safari because jison has inline functions defined, this removes jison in favor of acorn
Yay! Less technical debt!
2017-07-21 18:22:32 -04:00