1048 Commits

Author SHA1 Message Date
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
Robert Plummer
00ee2ba982 feat: Refactor dimensional values and expose the bitRatio all the way to the function node
fix: Added test suite for arrays and inputs for webgl and webgl2
fix: Rename "floatOutput" feature to "precision".  Values can be "unsigned" or "single"
fix: Add input and Input to typings
fix: Use Int32Array for input.size
2019-04-20 09:59:49 -04:00
Robert Plummer
2c78215862 fix: Build 2019-04-16 20:44:17 -04:00
Robert Plummer
1c5a73e63d fix: Ensure can handle plain IntegerLiteral return type from function 2019-04-16 20:43:35 -04:00
Robert Plummer
e778dc1519 fix: Eliminate need for using decode inside fragment shader
fix: Auto float handling
fix: this.texSize from early setting in validateSettings
fix: Add compiledFragmentShader and compiledVertexShader as props in kernel
feat: Add setOptimizeFloatMemory in kernel.js
fix: Add some typings
fix: Simplify how dimToTexSize gets dimensions
fix: Simplify createKernelMap tests
fix: Add utils tests
fix: Simplify issue 267 tests
fix: Alter issue 279 tests, and add TODO

1 Broken test left
2019-04-16 08:37:57 -04:00
Robert Plummer
d068ba211d fix: Add 'Input' handling to astCallExpression and astBinaryExpression
fix: Add unit tests for above
2019-04-14 11:59:59 -04:00
Robert Plummer
58d77be9a7 fix: Remove erroneous channel and index division in getImage2D of webgl1
fix: Remove some debugging code
fix: Build and beautify everything (was off whilst doing some mad debugging earlier)
2019-04-12 14:09:05 -04:00
Robert Plummer
ee7baf70ba fix: Array handling (2,3,4) for webgl2 & webgl1 (headlessgl next)
fix: Float handling
feat: added `optimizeFloatMemory` to better exemplify what it does and replace `floatTextures` and its voodoo in webgl2
feat: end to end strong type detection
Note: added a bunch of TODO's this is just a good resting point.
2019-04-11 19:41:58 -04:00
Robert Plummer
bbfa78f080
Merge pull request #448 from swistak35/develop
Add missing type annotation
2019-03-30 18:40:51 -04:00
Rafał Łasocha
bc71a105a5
Add missing type annotation 2019-03-30 19:16:42 +01:00
Robert Plummer
1e60084020 feat: Full type inference (this is a HUGE feature)
feat: Add mandelbulb.html example
fix: Bump and build
2019-03-19 19:51:03 -04:00
Robert Plummer
9540340751 fix: Fix floatTextures support test
fix: Rename `WebGLKernel._formatArrayTransfer()` to `WebGLKernel.formatArrayTransfer()` because it is used in more than just this class
fix: Add `HeadlessGL.features.isTextureFloat`
fix: Add `HeadlessGL.getIsTextureFloat()`
fix: Add operation to delete `HeadlessGLKernel.extensions.WEBGL_draw_buffers`
fix: Remove `assert.throws` from Issue #91 test
fix: Add "features/float-output-textures.js" back to all.html test
fix: Bump version number and build
2019-03-19 08:43:58 -04:00
Robert Plummer
d9bee09037 fix: Double check newest changes work for https://github.com/gpujs/gpu.js/issues/443
And added it as an example, it is pretty.
2.0.0-rc.4
2019-03-17 22:21:22 -04:00
Robert Plummer
4aa08ca393 fix: Casting for all non-float arguments used with Math.fn()
fix: Greater than, less than evaluation when comparing an integer with a literal that is a float, try not to cast left, but rather cast left to right
fix: Constants that do not have a type defined should fail
fix: Don't prevent "random" as a native function name
fix: Allow Texture constructor to inherit instance of GPU for easy .toArray()
fix: Texture constructor as settings object for easier understanding of order input
fix: Typescript corrections for Texture
fix: Bump headless-gl version to that of Multiple Render Targets
2019-03-17 22:12:09 -04:00
Robert Plummer
fb9be63b1e fix: Bump version and build 2.0.0-rc.3 2019-03-13 12:43:00 -04:00
Robert Plummer
d49374ae78 fix: build 2.0.0-rc.2 2019-03-13 12:39:10 -04:00
Robert Plummer
3c840fe444 Merge branch 'develop' 2019-03-13 12:37:28 -04:00