64 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
6d7dde3267 fix: Upgrade browserify 2022-11-16 15:49:26 -05:00
Robert Plummer
87cf1f1879 fix: Upgrade c8 2022-11-16 15:06:09 -05:00
Robert Plummer
1d02b9aaf2
Merge pull request #792 from gpujs/dependabot/npm_and_yarn/terser-and-gulp-uglify-es-5.15.1
build(deps): bump terser and gulp-uglify-es
2022-11-16 14:20:46 -05:00
dependabot[bot]
a428c45ee5
build(deps): bump terser and gulp-uglify-es
Bumps [terser](https://github.com/terser/terser) to 5.15.1 and updates ancestor dependency [gulp-uglify-es](https://gitlab.com/itayronen/gulp-uglify-es). These dependencies need to be updated together.


Updates `terser` from 3.17.0 to 5.15.1
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/compare/v3.17.0...v5.15.1)

Updates `gulp-uglify-es` from 1.0.4 to 3.0.0
- [Release notes](https://gitlab.com/itayronen/gulp-uglify-es/tags)
- [Changelog](https://gitlab.com/itayronen/gulp-uglify-es/blob/master/CHANGELOG.md)
- [Commits](https://gitlab.com/itayronen/gulp-uglify-es/commits/master)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
- dependency-name: gulp-uglify-es
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 19:20:29 +00:00
dependabot[bot]
8848bec77e
build(deps): bump tar from 4.4.13 to 6.1.11
Bumps [tar](https://github.com/npm/node-tar) from 4.4.13 to 6.1.11.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.13...v6.1.11)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 19:19:31 +00:00
dependabot[bot]
1db5808878
build(deps): bump minimist from 1.2.5 to 1.2.7
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 19:15:12 +00:00
Robert Plummer
350a727590
Merge pull request #712 from gpujs/dependabot/npm_and_yarn/tar-4.4.19
build(deps): bump tar from 4.4.13 to 4.4.19
2022-11-16 14:09:17 -05:00
Robert Plummer
a8e31c42be fix: Some npm vulnerabilities 2022-11-16 14:07:43 -05:00
Robert Plummer
95b6413313
Merge pull request #788 from gpujs/dependabot/npm_and_yarn/minimist-1.2.7
build(deps): bump minimist from 1.2.5 to 1.2.7
2022-11-16 13:55:47 -05:00
Robert Plummer
5ef469a77d
Merge pull request #767 from gpujs/dependabot/npm_and_yarn/shell-quote-1.7.3
build(deps): bump shell-quote from 1.6.1 to 1.7.3
2022-11-16 13:55:14 -05:00
dependabot[bot]
c0aee57a66
build(deps): bump tar from 4.4.13 to 4.4.19
Bumps [tar](https://github.com/npm/node-tar) from 4.4.13 to 4.4.19.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.13...v4.4.19)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 18:46:04 +00:00
dependabot[bot]
725b1d1bbb
build(deps): bump minimist from 1.2.5 to 1.2.7
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 18:45:54 +00:00
Daniel Hritzkiv
9dcb10f711 Update gl to v5.x 2022-07-07 18:37:56 -04:00
dependabot[bot]
553524211e
build(deps): bump shell-quote from 1.6.1 to 1.7.3
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.6.1 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/1.6.1...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-22 14:30:24 +00:00
Robert Plummer
8a7babaf00 feat: Read from OffscreenCanvas
And unit tests
2022-01-26 15:35:04 -05:00
Robert Plummer
7e3fa3acb0 feat: Removal of istanbul handling
https://github.com/gotwarlost/istanbul/issues/922 & https://github.com/istanbuljs/istanbuljs/issues/499
2021-01-05 15:57:15 -05:00
Robert Plummer
e3fd163505 fix: Ensure arguments are targeted correctly
fix: Added a missing jsdoc
2020-12-02 15:16:35 -05:00
Robert Plummer
d5212d3887 fix: Making typescript play more nice 2020-09-17 12:51:21 -04:00
Robert Lee Plummer Jr
8d92ce2eed fix: Bump & build gl version for new node versions 2020-07-19 07:33:50 -04:00
Robert Plummer
4d2f27e596 fix: #590 add Kernel.onActivate
- which is called after gpu.js switches kernels based off need
fix: Consistent error message for values that are not defined
fix: Add recompiled kernels to gpu.js kernels property and test
fix: Move texture deleting to within the GLKernel Texture implementation
fix: Add Texture.clear as an abstract method on the base Texture
fix: Bump and build
2020-04-01 08:24:49 -04:00
Robert Plummer
7e62639033 fix: #585 check for inaccurate results for very small kernel
fix: #585 add features.isSpeedTacticSupported and tests
2020-03-30 08:21:09 -04:00
Robert Plummer
1955ad3500 fix: #586 2020-03-24 07:53:57 -04:00
Robert Plummer
61dfe8a46a fix: #572 excessive calls, reuse textures
feat: introduce WebGL._replaceOutputTexture and WebGL._replaceSubOutputTextures to cut down on resource usage
feat: All supportable Math.methods added
fix: Safari not able to render texture arguments
feat: CPU gets a pipeline that acts like GPU with/without immutable
2020-03-22 17:29:26 -04:00
Robert Plummer
16bf2f904a fix: Build and build 2020-03-20 08:39:25 -04:00
Robert Plummer
8cfbf0cad7 fix: Clearing cloned textures produces new internal copy when multi references 2020-03-16 10:59:04 -04:00
Robert Plummer
0a072fedf4 fix: Version bump and build 2020-03-16 08:44:07 -04:00
Robert Plummer
359e471f8f fix: security 2020-03-16 08:41:52 -04:00
Robert Plummer
b1af9b3c4c fix: Don't call kernel.updateTextureArgumentRefs if kernel is mutable 2020-03-12 07:40:15 -04:00
Robert Plummer
f88d92cc40 feat: Bring back kernel.immutable and kernel.setImmutable() with defaults to false
Along with tests and documentation on which versions are affected.  Sorry for the inconvenience!
feat: Add more advanced-typescript.ts
fix: Alter documentation mentioning v2
fix: Example of fluid.html, to use `immutable`
2020-03-11 07:36:50 -04:00
Robert Plummer
20b456b7c9 fix: Add missing Math.tanh support and test 2020-03-09 05:50:26 -04:00
Robert Plummer
54518beecd fix: Add missing Math.tanh support and test 2020-03-09 05:46:34 -04:00
Robert Plummer
978a0bf616 fix: Rerun npm i 2020-02-16 14:39:38 -05:00
Robert Plummer
012cfff566 fix: #522 related, add missing deprecated method with warning 2020-01-24 10:41:27 -05:00
Robert Plummer
5a6d817d77 fix: #519 funny names from minification and upgrade typescript
So c35717e3b4 is properly supported.
2020-01-23 07:20:40 -05:00
Robert Plummer
16bed1596e fix: If already an IGPUFunction don't convert to one 2020-01-19 07:47:05 -05:00
Robert Plummer
7f1c96efd4 fix: Upgrade headless gl, for upstream performance fix 2020-01-19 07:01:10 -05:00
Robert Plummer
de98b0102d feat: Finish HTMLCanvas input from PR https://github.com/gpujs/gpu.js/pull/566
fix: #567
fix: #569
fix: #568
fix: #565
fix: #564
2020-01-18 08:42:09 -05:00
Robert Plummer
254b06791f feat: Handle ++ in function-tracer.js
This is in favor of using for loop variable position tracking, which is removed.
feat: Removal of no longer needed `warnVarUsage`
feat: If ternary returns void, use if statement in webgl
fix: Update documentation and clarify variable declarations
  Officially support private functions - WOOHOO!
2020-01-14 07:01:23 -05:00
Robert Plummer
03972cc1fa fix: #553 call gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false); on every texture type and add unit tests
fix: Framebuffer loss after texture is deleted
fix: Split up array and primitive (index.js) types of KernelValues and introduce .setup()
  * This was needed to handle .toArray() from the fix from #553
fix: Performance fix, define texture types in `kernelValue.setup()`, rather than on every `kernelValue.updateValue()`
2020-01-06 13:36:00 -05:00
Robert Plummer
316e35a3a1 fix: #559 (line 16 of kernel-run-shortcut.js)
fix: Slight memory leak, and loss of first kernel when switching kernels
fix: Feed `value.constructor` to `this.onUpdateValueMismatch()` where it was missing
2020-01-02 19:48:13 -05:00
Robert Plummer
78b6e301c4 fix: #556 upgrade acorn, and handle function() {} syntax 2020-01-02 13:03:46 -05:00
Robert Plummer
a3c930d583 fix: Memory recycling bug, and remove no longer needed renderStrategy
Also cleanup documentation a bit
2019-12-25 09:10:56 -05:00
Robert Plummer
ed1cd94448 feat: Added features and fixes for the following issues:
...it kind of snowballed from some needs
Fixes #521 - If `tactic` is not set, check precision allowed from WebGL, and automatically change based off needs, otherwise use value from `tactic`.
Fixes #535 - Internally check if texture from argument is the same as output, if so, clone this texture, and then clean it up after the kernel runs.
Fixes #536 - Normalize all declarations to non-destructured, and then parse
Fixes #537 - Change logic
Fixes #538 - Found the GL script that would work, and reduced the methods to use it
Fixes #539 - Found a better way of testing random, and this gives me an error for 1 in 10 runs, acceptable

Some refactoring for less duplicate code and documentation
2019-11-26 10:55:28 -05:00
Robert Plummer
67f3b3c8ad fix: Allow false for removeIstanbulCoverage 2019-10-30 16:55:51 -04:00
Robert Plummer
01728ad36c fix: Bump version and build 2019-10-29 17:52:27 -04:00
Robert Plummer
ab75103032 feat: Add texture.clone() support and tests
feat: Upgrade gpu-mock.js
fix: Typescript `Texture` definition
fix: Typescript JSON definition
fix: Some internal documentation
fix: Some removal of unused or duplicate code
2019-10-13 16:06:30 -04:00
Robert Plummer
c7df01e66f fix: #514 fix and upgrade tests to detect behaviour
fix: Documentation for what types are and are not tracked
fix: Added documentation for testing and building
fix: Some destructuring
2019-10-08 10:29:54 -04:00
Robert Plummer
cab4d033bc fix: Fix #512, upgrade gl-wiretap and fix some .toString()
Also fix default dynamicOutput = true, it should be false
Also add .DS_Store to .gitignore
Also update package-lock.json
Also fix some unit tests that deal with dynamic output
Also add `setDynamicOutput` and `setDynamicArguments` to typescript
Also fix issue where `uOutputDim` needs `Int32Array` in `.toString()`
Also added some spaces for `.toString()` to look more pretty
2019-10-02 21:34:20 -04:00
Robert Plummer
56e673a364 fix: Bump gl version to modern, more performant version 2019-09-09 19:56:29 -04:00