Nick Hingston
21f655f48e
allow for 2^24 addresses (was 2^23)
2018-07-03 12:05:54 +01:00
Nick Hingston
693a84741d
fix problem with thread.y and z index being incorrect in some hardware
2018-07-02 17:23:03 +01:00
Robert Plummer
54d985a47d
Edge case for #243 , prevent identifier from getting wrapped in math dealing with input-index
2018-06-29 21:16:44 -04:00
Robert Plummer
3e0f72a433
Some related changes to #243 , include IdentifierExpressions
2018-06-29 20:31:28 -04:00
Robert Plummer
27772251f6
Some related changes to #243 that make index selection based off the actual argument and not the kernel size
...
some cleanup to system I noticed along the way
2018-06-29 18:42:44 -04:00
Robert Plummer
2d57f2a0b4
simplify tests, fix z and y edge cases, button up for release
2018-06-28 22:26:39 -04:00
Robert Plummer
407ffd1aae
cleanup of unit tests, all passing but one, cpu w/ offset
2018-06-27 14:30:46 -04:00
Robert Plummer
439af19982
add states tracking, and cleanup script. Almost all unit tests passing now with inputs.
2018-06-27 14:11:26 -04:00
Robert Plummer
cde8eab625
#243 Some unit tests, not totally done, but at least x, and x & y. Z is failing.
2018-06-22 15:56:23 -04:00
Robert Plummer
66b2649185
Partially fix #243 , mvp
2018-06-22 11:58:20 -04:00
Robert Plummer
9ad50b8850
maintenance, cleanup of documentation and allow for native functions on node.
2018-06-22 10:17:10 -04:00
Robert Plummer
a0b80970ff
maintenance, cleanup of usage of funcParam. No need, we are using this.
2018-06-21 22:34:24 -04:00
Robert Plummer
a70fcc5196
maintenance, cleanup
2018-06-21 22:09:00 -04:00
Robert Plummer
80e4440f17
maintenance, cleanup
2018-06-21 22:05:39 -04:00
Robert Plummer
4165099c60
fix #319 add rudimentary infinity handling
2018-06-14 10:53:15 -04:00
Robert Plummer
b2df0ab604
fix #316
...
Change `HTMLImageArray` render strategy to `gl.NEAREST`, like all the others
Let `WebGL2FunctionNode` extend `WebGLFunctionNode` and lighten
Remove all the different html pages associated with tests, and just use one file to handle them and use qunit for filtering them
Bump version number
2018-06-12 14:07:41 -04:00
Robert Plummer
ac89e00b8e
fix #313 and add unit test
2018-06-12 13:57:47 -04:00
Robert Plummer
480976dd4f
Don't start at length, start at last index.
2018-06-08 16:50:37 -04:00
Robert Plummer
33a7dca5df
process images in reverse y on cpu
...
bump version number
2018-06-08 16:42:24 -04:00
Robert Plummer
cfd3c777d9
Move usage of Number.isInteger to utilities and cleanup some number checking
...
Tests pass same as before
2018-06-07 21:44:25 -04:00
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
24d9ac4e1a
working 100% cpu fallback
2018-06-04 20:00:48 -04:00
Robert Plummer
6b25e95649
slightly improve the output of image on cpu
2018-06-04 19:41:41 -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
b00950a829
flip the image and move color to fragment shader for webgl1
2018-05-28 14:32:45 -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
e2c00aadcd
Added support for the do{...}while(...) construct
2018-04-27 19:38:50 +02:00
Robert Plummer
af7060d88e
webgl1 and webgl2, together at last, and tested.
2018-03-08 20:00:05 -05:00
Robert Plummer
ed247f51ff
first build, getting ready to test
2018-03-08 14:36:37 -05:00
Robert Plummer
01fa8369d9
making both webgl's play nice together
2018-03-08 14:34:14 -05:00
Robert Plummer
f84bee295c
shrinking webgl2 to only what is needed, this broke a lot, but will resolve shortly.
2018-03-08 14:03:59 -05:00
Robert Plummer
36e47132fb
moving to correct home
2018-03-08 12:58:27 -05:00
Robert Plummer
0824151477
moving to correct home
2018-03-08 12:57:52 -05:00
Robert Plummer
ab7ab1799b
Merge branch 'develop' into 261-webgl2
2018-03-06 19:53:25 -05:00
Robert Plummer
283b249bd0
more framebufferTexture2D to where textures are created, thus making framebuffers more something that is setup at build, or if absolutely needed to modify
2018-03-06 19:32:23 -05:00
Robert Plummer
bdc0b6bf9f
Merge branch '272-cached-uniform-setting' into 261-webgl2
2018-03-06 13:08:59 -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
1d99c94499
Merge branch 'develop' into 261-webgl2
2018-03-03 14:28:15 -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
42882d714f
Merge branch 'develop' into 261-webgl2
2018-03-01 18:51:01 -05:00
Robert Plummer
21bb5ba265
remove unneeded texture generation
2018-03-01 18:48:43 -05:00
Robert Plummer
3b839b37b0
Merge branch 'develop' into 261-webgl2
2018-03-01 15:59:37 -05:00
Robert Plummer
7898fed31f
fix, test, bump version number, and make.
2018-03-01 15:57:40 -05:00
Robert Plummer
a7fad9cc64
Merge branch 'develop' into 261-webgl2
2018-02-28 21:58:50 -05:00