158 Commits

Author SHA1 Message Date
Robert Plummer
c209412d72 Merge branch 'master' into develop 2022-01-26 17:12:56 -05:00
Robert Plummer
8dcd0546b6 feat: Read from ImageData
And tests and docs
2022-01-26 17:12:49 -05:00
Robert Plummer
2ff65b1ad5 Merge branch 'master' into develop 2022-01-26 16:32:39 -05:00
Robert Plummer
49ee619d82 chore: Bump version number and docs 2022-01-26 16:32:18 -05:00
Gustavo Ferreyra
ee436b4107
add demo
Add my demo.
https://observablehq.com/@brakdag/conway-game-of-life-gpu-js
2021-06-16 16:04:37 -03:00
Balram Chavan
c317c2597d
Update README.md 2021-02-18 11:45:21 +01:00
Robert Plummer
3be597da99 Merge branch 'master' into develop 2021-01-19 11:20:53 -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
Kiss Áron
e2e97acf14
fix: Fix typo and markdown in README 2020-10-01 16:37:34 +02:00
Robert Plummer
5397186a7a
fix: Add link to Caesar Cipher GPU.js Example
ty @GirkovArpa!
2020-04-09 11:17:43 -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
bea9d34546 Merge branch 'develop' of https://github.com/gpujs/gpu.js into develop 2020-03-11 07:37:35 -04:00
Robert Plummer
84169fdb47 Merge branch 'master' into develop 2020-03-11 07:37:25 -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
dd1dcbdca5
fix: Documentation 2020-03-10 16:57:24 -04:00
Robert Plummer
141a810a4b Merge branch 'master' into develop 2020-03-10 16:19:24 -04:00
Robert Plummer
3fe63f6db3 feat: Add texture.empty() support and tests 2020-03-10 16:16:13 -04:00
이호준
d8791d928c
Update : Modify Typo in README.md 2020-02-28 17:02:12 +09:00
Robert Plummer
db54434166 fix: Modulo performance and simplify tests
fix: Modulo negatives
fix: Modulo accuracy issue on OSX with `integerCorrectionModulo`
fix: Follow naming convention `div_with_int_check` to `divWithIntCheck`
fix: Member expression with function
fix: CPU variable assignment
fix: `gpu.addFunction` needed to be before createKernel and documentation
fix: mandelbulb.html from above .addFunction
2020-01-21 07:37:48 -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
ed10fdd2e7 Merge branch 'develop' of https://github.com/gpujs/gpu.js into develop 2020-01-14 07:01:48 -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
LunarLanding
0fd118e7d1
Clarify pipeline mode allocation behavior 2020-01-08 19:49:14 +00:00
Robert Plummer
610ed544da
Merge pull request #557 from Mluckydwyer/readme-link-fixes
README link fixes
2020-01-02 21:17:40 -05:00
Matt Dwyer
428554bdfa Resized Logo size 2019-12-28 22:36:16 -06:00
Matt Dwyer
bb0df177be Updated README to remove broken playground links and fix logo 2019-12-28 22:22:18 -06:00
Robert Plummer
6e2f1dacde feat: Cleanup and bring texture recycling to webgl2, and add unit test 2019-12-22 17:41:29 -05:00
Robert Plummer
103b5e19b4 fix: Add demos and fix return type 2019-12-17 09:37:35 -05:00
Robert Plummer
7456afd629 feat: Provide overloading methods with types
Also separate and better fine types for use therein.
2019-12-17 08:36:59 -05:00
Robert Plummer
f514e79d67
Merge pull request #548 from CoenraadS/CDN
Add cdn links to readme
2019-12-15 10:11:03 -05:00
Coenraad Stijne
38bd0a616e use v2 api 2019-12-15 12:47:48 +01:00
Coenraad Stijne
b5e4b72775 working example for images 2019-12-15 11:35:10 +01:00
Coenraad Stijne
63b5efa95d remove empty lines 2019-12-15 10:27:35 +01:00
Coenraad Stijne
169020859d add cdn links to readme 2019-12-15 10:25:34 +01: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
c4f6a1b687
Merge pull request #528 from gpujs/524-coverage-compatibility
524 coverage compatibility
2019-10-29 17:49:56 -04:00
Robert Plummer
65de20bccf fix: Add credit from https://github.com/gpujs/gpu.js/issues/498#issuecomment-547535669 2019-10-29 17:46:58 -04:00
Robert Plummer
29e2dd25c4 fix: #524 allow for coverage 2019-10-29 10:39:00 -04:00
Robert Plummer
b98798b573 fix: Use uniformly distributed rather than triangle for random
fix: Rename plugin files for better identification
2019-10-18 07:20:03 -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
07cb307d9b fix: Add js highlighting 2019-10-08 10:35:48 -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
2bc76ad82d feat: Video input, injectNative, tests.
v2.0.0 Cosmic Jellyfish
2019-09-17 10:51:53 -04:00
Robert Plummer
61c15cfa8c fix: Documentation fixes 2019-08-23 11:01:38 -04:00
Robert Plummer
6eafe70f8e feat: add tactic feature
To switch internally from `lowp`, to `mediump`, or `highp`.
Also added unit tests.
2019-08-23 10:19:54 -04:00
Robert Plummer
21b9e3b759 fix: Shorten up kernelRunShortcut
fix: Update typescript definitions
fix: `GPU.createKernel`'s `onRequestFallback` to switch kernels entirely so the fallback doesn't continue to happen over and over
fix: `GPU.createKernel`'s `onRequestFallback` to use `argumentTypes`
fix: Minification
fix: examples to use minification
fix: Fix kernel string to support `Array1D(2|3|4)` and `Array3D(2|3|4)`
fix: `lookupKernelValueType` to as well get type, to make lookup easier for `Texture`s
fix: `Kernel` to properly build `this.kernelArguments` and `this.kernelConstants`
fix: `KernelValue` to get its type from `value.type` if it exists
fix: `@returns` keyword in favor of `@return` in some places
fix: DoxDox documentation issue
fix: Remove old reference to "Automatically-built Documentation", no longer applicable
fix: Bump and build
2019-07-26 14:57:36 -04:00
Robert Plummer
86af54efef fix: Node support for v8+
fix: Move `make` cli command to gulp so it runs in parallel
fix: Add official support for `Array1D(2|3|4)`, `Array2D(2|3|4)`, and `Array3D(2|3|4)` and unit tests
fix: Add offical support for `Array(2)`, `Array(3)`, and `Array(4)` and unit tests
fix: Mandelbulb constant used a constant, so moved to appropriate location
fix: Failing unit test for Safari
fix: When not falling back in HeadlessGL, call `STACKGL_resize_drawingbuffer`
fix: Remove `xyz` variable from glsl
fix: Add `uniform4fv` and `uniform4iv` to WebGL implementation
fix: Check for kernel settings `constantTypes` and `argumentTypes`
fix: Inherit type from kernel in KernelValue constructors
fix: Add some typescript details for `GPUVariableType`, `IKernelSettings`, and `ITypesList`
fix: Add support for 4d array in `utils.getMemoryOptimizedFloatTextureSize` for the special use case of `Array3D(2|3|4)`
fix: Add `utils.flatten4dArrayTo` for the special use case of `Array3D(2|3|4)`
fix: Add support for 4d array in `utils.flattenTo`
fix: Bump and build
2019-07-24 12:56:05 -04:00
Robert Plummer
82832902cc fix: Move jellyfish images to actual files
fix: added `warnVarUsage` and `Dealing With Transpilation`
fix: Test dynamic arguments and provide some fixes for
fix: Dynamic arguments for `CPUFunctionNode`
fix: Dynamic arguments for `WebGLKernelValueDynamicHTMLImage`, `WebGLKernelValueDynamicNumberTexture`, `WebGLKernelValueDynamicSingleInput`, `WebGL2KernelValueDynamicHTMLImage`, `WebGL2KernelValueDynamicNumberTexture`, and `WebGL2KernelValueDynamicSingleInput`
fix: `onRequestFallback` settings in `createKernel` and `createKernel` inclusion of `loopMaxIterations`, `dynamicOutput`, and `dynamicArgument` in settings for when switching kernels
fix: `WebGL2Kernel` and `HeadlessGLKernel` typescript definition extensions
2019-07-05 11:03:25 -04:00
Robert Plummer
7771b52ceb fix: Bump, build, and correct folders 2019-06-27 13:45:09 -04:00
Robert Plummer
19b2fa45e9 fix: Url typo 2019-06-20 10:14:08 -04:00