56 Commits

Author SHA1 Message Date
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
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
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
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
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
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
5f59354219 fix: this.thread, and this.output type handling, and block statements 2019-02-18 10:55:30 -05:00
Robert Plummer
22046269b6 feat: Added "dev" mode, so we can easily debug
refactored webgl for statements, to be more performant
added unit tests for "for" statements
will do the same for cpu for statements next
fixed some issues in typings file
exposed FunctionNode from standard importer
2019-02-10 12:17:31 -05:00
Robert Plummer
cf5a358422 fix: Got 100% unit tests in chrome, ff, safari, and node. 2019-02-07 19:08:19 -05:00
Robert Plummer
630bd94ead feat: Completely new type checking system, and refined state management 2019-02-04 19:46:55 -05:00
Robert Plummer
82e4966551 feat: v2.0.0rc1
Cleanup and add random support (seeded by... Math.random()!)
I went through api and cleaned it up considerably
2019-01-31 18:24:25 -05:00
Robert Plummer
8bf362ad9a feat: No failing tests locally, only skipping and passing
Also:
feat: Typescript typings
feat: api cleanup and exports
feat: removal of building for node, only browser
2019-01-29 21:41:21 -05:00
Robert Plummer
920aaf67d9 feat: Massive simplification and refactor for v2 2019-01-26 21:47:26 -05:00
Robert Plummer
bafac7831e feat: Huge rewrite for v2 2019-01-24 22:18:22 -05:00
Robert Plummer
8173ed7f62 fix: Migrating tests and ensuring they act same on all backends 2019-01-19 08:46:42 -05:00
Robert Plummer
c234e37942 fix: cpu canvas check 2019-01-17 15:24:37 -05:00
Robert Plummer
8e8ca00123 fix: Add integer handling in loops, and related
Remove debug log, move `module.exports` so classes resolve in ide
2019-01-13 12:15:25 -05:00
Robert Plummer
87e2be5fba feat: Migrating to use gl, bump version number
Not ready yet, but close.  Need build scripts from headless-gl upstream.
2019-01-04 10:29:45 -05:00
Robert Plummer
cb4d4f1d4a fix: cpu canvas check 2018-11-18 15:50:35 -05:00
Robert Plummer
e3d80ea3e4 fix: double definitions for arrays when they are integers
fixes #399
2018-11-18 14:08:59 -05:00
Robert Plummer
87ccce51df fix: thread & output variabel assignment
Fixes #390
2018-11-01 10:03:18 -04:00
Robert Plummer
d561fcf228 feat: Migrate to use type strings for arguments and returnType 2018-10-27 14:46:42 -04:00
Robert Plummer
3a55872c4f fix: Constant being set weirdly and conflicting with user variables
add unit test
2018-10-24 14:58:06 -04:00
Robert Plummer
0e4c04917a feat: Update for offscreen canvas and retool for cleaner CPU kernel backend
fix toString for kernels as well
Added documentation
Updated release year
2018-10-24 14:12:12 -04:00
Nick Hingston
35f8bcb56b forgot to add test case file 2018-09-05 22:54:51 +01:00
Robert Plummer
e2996f8229 bump version number
remove some unneeded console.log messages
remove commented out utility line
2018-09-05 16:55:00 -04:00
Nick Hingston
72e65b206e Merge branch 'develop' into 361-multi-dimensional-output-slow 2018-09-05 21:05:13 +01:00
Nick Hingston
30e5ddb37a make splitArray performant and fix test cases 2018-09-05 21:04:23 +01:00
viziionary
88dcbc8acb Merge remote-tracking branch 'upstream/master' into develop 2018-09-03 14:59:21 -05:00
Nick Hingston
d680aded0d fix modulus issue 2018-09-02 17:38:21 +01:00
Robert Plummer
c3afd102d8 fix: unit test simplicity and ultimate check as well as strongly typed check in kernels 2018-08-31 08:07:20 -04:00
Nick Hingston
62f7d7633a fix recursive function - reuse assert.async 2018-08-05 10:13:40 +01:00
Nick Hingston
ba5f940057 code review comments 2018-08-05 10:03:43 +01:00
Nick Hingston
2450d4cdd4 fix webgl leaks on all test cases 2018-07-30 21:11:56 +01:00
Nick Hingston
92612c1c2f fix leaking WegGl contexts 2018-07-30 20:30:31 +01:00
Nick Hingston
462e4d510f auto check if integer division bug exists 2018-07-26 09:05:08 +01:00
Nick Hingston
98e1bf7688 fix integer division issues on some cards 2018-07-25 18:14:06 +01:00
Nick Hingston
995b9f4e31 merge develop 2018-07-23 11:53:32 +01:00
Nick Hingston
607cc154d8 add test cases 2018-07-23 11:50:43 +01:00
Nick Hingston
35bba9559f dont comvert uin8 & 16 arrays 2018-07-23 11:46:58 +01:00
Nick Hingston
c47d1f8a9f code review comments 2018-07-13 19:59:23 +01:00
Nick Hingston
e6471be6a5 fix test names and complete 279 tests 2018-07-13 18:28:23 +01:00
Nick Hingston
da225d3e60 fix #279 problems with calculated sizes 2018-07-13 17:54:29 +01:00
Nick Hingston
f658164b40 fix #300 nested array issue 2018-07-12 22:17:17 +01:00
Nick Hingston
41b1ef8a20 fix merge conflicts from develop 2018-07-12 20:03:09 +01:00
Robert Plummer
01a18acbdb Minor cleanup
Removal of unused methods and properties, and a doc cleanup.
Version bump
2018-07-11 16:06:25 -04:00
Robert Plummer
fe992769be Merge branch 'develop' into 314-large-input-array-addressing 2018-07-09 17:44:14 -04:00
Nick Hingston
7bbb957bea fix issue with nested addressing 2018-07-06 19:42:04 +01:00