1223 Commits

Author SHA1 Message Date
Robert Plummer
3b39adef85 fix: Move framebuffer for raw values to kernel 2020-08-11 08:37:30 -04: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
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
2.9.3
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
2.9.2
2020-03-30 08:21:09 -04:00
Robert Plummer
1955ad3500 fix: #586 2.9.1 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
2.9.0
2020-03-22 17:29:26 -04:00
Robert Plummer
fdedd6f86b Merge branch 'master' into develop 2020-03-20 08:40:46 -04:00
Robert Plummer
16bf2f904a fix: Build and build 2.8.5 2020-03-20 08:39:25 -04:00
Robert Plummer
772eaec5a8 fix: Build 2020-03-20 08:35:40 -04:00
Robert Plummer
a37fe28818 fix: Memory leaks on build if called more than once 2020-03-20 08:27:24 -04:00
Robert Plummer
c27dae6f1d
Merge pull request #583 from sarthak-saxena/add-support-for-uint8clamedarray
Add support for type Uint8ClampedArray in KernelVariable
2020-03-19 12:47:49 -04:00
sarthak saxena
bfa3433585
Add type for Uint8ClampedArray in KernelVariable
```
render = new GPU.GPU({ mode: "gpu" })
render(image.data, 14 * Math.sin(Date.now() / 400))
```
Since image data is of type Uint8ClampedArray & KernelVariable does not support the same hence gives type error


Ex: https://observablehq.com/@fil/image-to-gpu
2020-03-18 20:01:17 +05:30
Robert Plummer
8cfbf0cad7 fix: Clearing cloned textures produces new internal copy when multi references 2.8.4 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 2.8.3 2020-03-16 08:41:52 -04:00
Robert Plummer
6df34b3a90 fix: Don't call beforeMutate if immutable and unit test 2.8.2 2020-03-16 08:40:04 -04:00
Robert Plummer
b1af9b3c4c fix: Don't call kernel.updateTextureArgumentRefs if kernel is mutable 2.8.1 2020-03-12 07:40:15 -04:00
Robert Plummer
bea9d34546 Merge branch 'develop' of https://github.com/gpujs/gpu.js into develop 2.8.0 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
586ab0276c Merge branch 'master' of https://github.com/gpujs/gpu.js 2.7.0 2020-03-10 16:18:20 -04:00
Robert Plummer
3fe63f6db3 feat: Add texture.empty() support and tests 2020-03-10 16:16:13 -04:00
Robert Plummer
eb37f36174 fix: Add missing Math.tanh support and test 2020-03-10 16:15:14 -04:00
Robert Plummer
20b456b7c9 fix: Add missing Math.tanh support and test 2.6.11 2020-03-09 05:50:26 -04:00
Robert Plummer
54518beecd fix: Add missing Math.tanh support and test 2.6.10 2020-03-09 05:46:34 -04:00
Robert Plummer
3379378862
Merge pull request #582 from HADMARINE/patch-1
Update : Modify Typo in README.md
2020-02-28 06:54:21 -05:00
이호준
d8791d928c
Update : Modify Typo in README.md 2020-02-28 17:02:12 +09:00
Robert Plummer
9286f5669d fix: Move argument sanitization to when writing strings only 2020-02-16 15:58:24 -05:00
Robert Plummer
978a0bf616 fix: Rerun npm i 2020-02-16 14:39:38 -05:00
Robert Plummer
3cc8987d79 fix: Underscore and test, version bump, and code coverage command
ty c8!
2020-02-16 14:38:33 -05:00
Robert Plummer
b69644c17a fix: Use case of CallExpression
in WebGL.astCallExpression
2020-02-11 08:12:45 -05:00
Robert Plummer
012cfff566 fix: #522 related, add missing deprecated method with warning 2020-01-24 10:41:27 -05:00
Robert Plummer
dbe3b47f8b
Merge pull request #570 from gpujs/fix-519
fix: #519 funny names from minification and upgrade typescript
2.6.5
2020-01-23 07:40:14 -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
b2c9051f7e fix: #534 2.6.4 2020-01-21 08:17:02 -05: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
2.6.3
2020-01-21 07:37:48 -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
2.6.0
2020-01-18 08:42:09 -05:00
Robert Plummer
13f70f427d
Merge pull request #566 from InkLabApp/develop
Added Canvas Elements as valid input to Kernel
2020-01-17 15:23:30 -05:00
InkLab
7a9b697b20 Merge remote-tracking branch 'origin/develop' into develop 2020-01-14 17:50:06 -05:00
InkLab
84debbb4d3 Added Canvas Elements as valid input to Kernel
This small change only allows single canvas elements as kernel input. They have
the exact same properties and use cases as html images, bit if you need to use
a canvas directly it is more efficient than converting it to an image first.
2020-01-14 17:49:44 -05:00
pjewell
6be973d928 Added Canvas Elements as valid input to Kernel
This small change only allows single canvas elements as kernel input. They have
the exact same properties and use cases as html images, bit if you need to use
a canvas directly it is more efficient than converting it to an image first.
2020-01-14 15:35:04 -05:00
Robert Plummer
ed10fdd2e7 Merge branch 'develop' of https://github.com/gpujs/gpu.js into develop 2.5.0 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
Robert Plummer
87248b63e9
Merge pull request #562 from LunarLanding/patch-1
Clarify pipeline mode allocation behavior
2020-01-08 17:18:51 -05:00
LunarLanding
0fd118e7d1
Clarify pipeline mode allocation behavior 2020-01-08 19:49:14 +00:00
Robert Plummer
cd0b417c67 fix: #552 remove incorrect texture size checks
fix: texture.renderRawOutput to use existing framebuffer, or make it so it can be deleted
fix: glKernelString to handle the framebuffer from texture.renderRawOutput
fix: WebGLKernelArray.checkSize so display error for all three scenarios
  1. width too big
  2. height too big
  3. width and height too big
2.4.8
2020-01-08 07:13:37 -05:00