1064 Commits

Author SHA1 Message Date
Robert Plummer
49a06ba305 fix: #470
the math didn't end up being wrong, but found an issue with argument type, and went ahead and fixed it
2019-05-24 09:36:28 -04:00
Robert Plummer
1c96c40bd2 fix: #471, destroy gpu, ooooooops 2019-05-23 21:05:19 -04:00
Robert Plummer
dd6665a513 fix: #471, was already fixed, but added unit test anyway
fix: Rename describe for conformity
2019-05-23 21:01:13 -04:00
Robert Plummer
1aadb2f9ba fix: #472 build 2019-05-23 20:48:43 -04:00
Robert Plummer
f7a931ea40 fix: #472 cleanup, and turn off debug 2019-05-23 20:47:59 -04:00
Robert Plummer
4d46279fd4 fix: #472 compilation issue, and add Uint8ClampedArray support 2019-05-23 18:13:12 -04:00
Robert Plummer
181c553601 fix: #473 resize canvas when needed in headlessgl and unit test 2019-05-23 16:49:56 -04:00
Robert Plummer
67300c302e fix: Use a loop rather than a map to save on a single function declaration
fix: Add a test for `utils.getKernelTextureSize` newly renamed
fix: WebGL2 to use preferred `gl.texStorage2D()` where possible
Also, found an issue with "Array(3)", and it turns out, I need to use `gl.RGBA32F` there
2019-05-23 14:25:47 -04:00
Robert Plummer
db20ffc5f2 fix: Add logo 2019-05-22 17:39:59 -04:00
Robert Plummer
b05ab0765a fix: Type 2019-05-22 17:38:38 -04:00
Robert Plummer
563a27da54 fix: Add note about LeaderGPU, as promised. Ty guys! 2019-05-22 17:37:29 -04:00
Robert Plummer
427ac42937 fix: #322 update documentation for existing feature 2019-05-22 16:31:58 -04:00
Robert Plummer
96db402331 fix: #289 update documentation for existing feature 2019-05-22 16:18:52 -04:00
Robert Plummer
20a9ed54c7 fix: #370 provide means of handling textures form CPU
fix: Add `Kernel.features.channelCount` to each kernel, and unit test
fix: Was curios for code relating to https://github.com/gpujs/gpu.js/wiki/Quick-Concepts and so added a unit tests for matrix-multiply-precision.js
2019-05-22 16:00:03 -04:00
Robert Plummer
a0a92586c0 fix: #378 unit test, showing the issue resolved
fix: Random demo, when webgl or webgl2 not available, use try to keep demo running
2019-05-22 09:43:44 -04:00
Robert Plummer
05dd1744ea fix: partial (maybe whole) for #408 Break up texture constructors
So we can use `texture.toArray()`, this uses much less resources
2019-05-22 08:50:46 -04:00
Robert Plummer
4e1bf1f0d1 fix: #398 docs 2019-05-22 08:21:01 -04:00
Robert Plummer
62d4ea739d fix: #396 by changing documentation and adding unit test 2019-05-21 10:08:42 -04:00
Robert Plummer
aca274198d feat: Added dynamicOutput && dynamicArguments as official settings
fix: Some documentation was out of date with the new features, so fixed
2019-05-20 18:54:12 -04:00
Robert Plummer
e3aded43b1 feat: Allow for pixel flipping
fix: Move the flipPixels method to utilities, for reuse
fix: Invert pixel orientation
fix: Add text for issue #422
2019-05-18 17:25:47 -04: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
2b25c75d70 feat: Dynamic recompiling 2019-05-16 21:39:01 -04:00
Robert Plummer
554719b6e6 feat: Dynamically compiled kernels, with odd bleeding bud still
fix: Removed a couple old functions no longer used

Was a good resting point to debug.
2019-05-13 15:02:32 -04:00
Robert Plummer
239e762087 fix: Add 'Float' handling in addition to 'Number'
fix: Build
2019-05-13 06:17:54 -04:00
Robert Plummer
4446f2cf94 fix: Add note for future tests 2019-05-13 06:17:16 -04:00
Robert Plummer
63abb92ec5 fix: Broken test 2019-05-13 06:16:58 -04:00
Robert Plummer
0735a56f86 fix: Define uploadValue in constructor, and reuse
fix: toString handling, greatly simplified
fix: Upgrade tests for toString
fix: Add boolean to typeings
fix: Move gl-kernel.js to new location
feat: Add strictIntegers as option for Kernel and docs
2019-05-12 14:36:57 -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
d6757abda9
Merge pull request #458 from Drenata/fix-return-nd-array
Fix return of >=2d arrays from GPU
2019-04-29 15:34:04 -04:00
Patrick Andersson
ce6fb28202 merge upstream changes 2019-04-29 20:48:01 +02:00
Robert Plummer
47bae6b9ee fix: Add more unit tests for function return, covering Array(2), Array(3), and Array(4) 2019-04-29 09:10:23 -04:00
Robert Plummer
0125e2cda7 Merge remote-tracking branch 'origin/develop' into develop 2.0.0-rc.13 2019-04-29 08:45:51 -04:00
Robert Plummer
ef3f0cf001 feat: support for boolean as variable, argument, and constant
fix: implied else issue discovered, and fixed when testing boolean using leading and following return statements
fix: Added a section in documentation about types and added reference to boolean
fix: Bump and build
2019-04-29 08:45:43 -04:00
Robert Plummer
b2d336b05b
Merge pull request #459 from Drenata/add-ts-color-return-type
add color return type
2019-04-28 11:52:41 -04:00
Patrick Andersson
a9607ee01b add color return type 2019-04-28 16:00:33 +02:00
Patrick Andersson
cfd8c52f09 index arrays with offset 2019-04-28 15:41:36 +02:00
Patrick Andersson
8e3b9376f1 Update kernels to not output same value 2019-04-28 15:02:01 +02:00
Robert Plummer
7ec15719a5 feat: getPixels method and tests
fix: Add tests for graphical rendering
fix: removal of 1d and 3d graphical outputs, they don't make sense
fix: Reference of 2 in 2d output in CPU kernel
fix: Bump and build
2.0.0-rc.12
2019-04-26 22:06:34 -04:00
Robert Plummer
f4114ece87 fix: Try getContext 2019-04-24 17:54:59 -04:00
Robert Plummer
0b78a3b5cc fix: Try headless-gl, if throws, do nothing. 2019-04-24 08:11:07 -04:00
Robert Plummer
8bb5e6be4d fix: Check getExtension is truthy before calling and unit tests
fix: Add missing test for headlessgl to all.html
2.0.0-rc.9
2019-04-24 07:48:35 -04:00
Robert Plummer
b9f7d7bff0 fix: Move varWarn to and unit test that all FunctionNode's use it
fix: Test that getExtension is set to be able to use on TravisCI
fix: Remove wraparound, is no longer being used anywhere
fix: add getMemoryOptimizedPackedTextureSize to string kernel
fix: Remove console.log() usage
fix: Move addFunction functionality into new utils method `functionToIFunction`
fix: Fix mergeSettings to use `functions` settings and use `functionToIFunction`
fix: Remove the spread operator for now, for compatibility with safari
fix: Add typings for `setFunctions`
fix; Failing unit tests for sarafi
feat: Add CONTRIBUTING.md
feat: Add ISSUE_TEMPLATE.md
fix: Remove typescript from dependencies
fix: Document, document, document
fix: Bump version and build
2019-04-23 22:03:14 -04:00
Robert Plummer
6c055ca554 fix: Add typing 2019-04-22 17:15:36 -04:00
Robert Plummer
2c9bd8d6e1 fix: Test GPU.createKernelMap 2019-04-22 17:15:01 -04:00
Robert Plummer
8cf91f4fed fix: Add deprecated method setOutputToTexture, and test 2019-04-22 17:12:05 -04:00
Robert Plummer
7528559f79 fix: Give hardcodeConstants a default value, and check integers 2019-04-22 17:10:55 -04:00
Robert Plummer
f59c8ddaf4 fix: Remove comments from example 2019-04-22 17:09:16 -04:00
Robert Plummer
d51da85371 fix: turn off debug in test 2.0.0-rc.7 2.0.0-rc.8 2019-04-21 12:03:04 -04:00
Robert Plummer
b60e571646 fix: 8 and 16 bit packing when using single precision float
fix: 2,3,4 array output render strategies
fix: Add deprecation handling
fix: Add addArgument and addConstant tests for webgl2
fix: remove floatTextures as a property
2019-04-21 12:02:34 -04:00
Robert Plummer
8a95c54f75
Merge pull request #454 from gpujs/rc7-cleanup
Rc7 cleanup
2019-04-20 10:17:58 -04:00