@thi.ng/shader-ast-js 0.7.24 → 0.7.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/README.md +6 -6
- package/package.json +13 -13
- package/runtime.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-09-27T16:23:13Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [0.7.26](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.26) (2022-09-27)
|
|
13
|
+
|
|
14
|
+
#### ⏱ Performance improvements
|
|
15
|
+
|
|
16
|
+
- pre-cache ImageData in canvasRenderer() ([ff0018f](https://github.com/thi-ng/umbrella/commit/ff0018f))
|
|
17
|
+
|
|
12
18
|
### [0.7.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@0.7.20) (2022-08-06)
|
|
13
19
|
|
|
14
20
|
#### ⏱ Performance improvements
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/shader-ast-js)
|
|
6
6
|

|
|
@@ -11,8 +11,8 @@ This project is part of the
|
|
|
11
11
|
|
|
12
12
|
- [About](#about)
|
|
13
13
|
- [Unsupported features](#unsupported-features)
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
- [Status](#status)
|
|
15
|
+
- [Related packages](#related-packages)
|
|
16
16
|
- [Installation](#installation)
|
|
17
17
|
- [Dependencies](#dependencies)
|
|
18
18
|
- [Usage examples](#usage-examples)
|
|
@@ -44,13 +44,13 @@ which altogether provide ~750 optimized vector/matrix functions.
|
|
|
44
44
|
- `out` / `inout` function args (see
|
|
45
45
|
[#96](https://github.com/thi-ng/umbrella/issues/96) for discussion)
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
## Status
|
|
48
48
|
|
|
49
49
|
**STABLE** - used in production
|
|
50
50
|
|
|
51
51
|
[Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bshader-ast-js%5D+in%3Atitle)
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
## Related packages
|
|
54
54
|
|
|
55
55
|
- [@thi.ng/shader-ast-glsl](https://github.com/thi-ng/umbrella/tree/develop/packages/shader-ast-glsl) - Customizable GLSL codegen for [@thi.ng/shader-ast](https://github.com/thi-ng/umbrella/tree/develop/packages/shader-ast)
|
|
56
56
|
- [@thi.ng/shader-ast-stdlib](https://github.com/thi-ng/umbrella/tree/develop/packages/shader-ast-stdlib) - Function collection for modular GPGPU / shader programming with [@thi.ng/shader-ast](https://github.com/thi-ng/umbrella/tree/develop/packages/shader-ast)
|
|
@@ -78,7 +78,7 @@ node --experimental-repl-await
|
|
|
78
78
|
> const shaderAstJs = await import("@thi.ng/shader-ast-js");
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
Package sizes (gzipped, pre-treeshake): ESM: 7.
|
|
81
|
+
Package sizes (gzipped, pre-treeshake): ESM: 7.24 KB
|
|
82
82
|
|
|
83
83
|
## Dependencies
|
|
84
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/shader-ast-js",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.26",
|
|
4
4
|
"description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.4.
|
|
38
|
-
"@thi.ng/checks": "^3.2.
|
|
39
|
-
"@thi.ng/errors": "^2.
|
|
40
|
-
"@thi.ng/math": "^5.3.
|
|
41
|
-
"@thi.ng/matrices": "^2.1.
|
|
42
|
-
"@thi.ng/pixel": "^
|
|
43
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
44
|
-
"@thi.ng/vectors": "^7.5.
|
|
37
|
+
"@thi.ng/api": "^8.4.2",
|
|
38
|
+
"@thi.ng/checks": "^3.2.5",
|
|
39
|
+
"@thi.ng/errors": "^2.2.0",
|
|
40
|
+
"@thi.ng/math": "^5.3.9",
|
|
41
|
+
"@thi.ng/matrices": "^2.1.25",
|
|
42
|
+
"@thi.ng/pixel": "^4.0.0",
|
|
43
|
+
"@thi.ng/shader-ast": "^0.12.21",
|
|
44
|
+
"@thi.ng/vectors": "^7.5.16"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.
|
|
48
|
-
"@thi.ng/testament": "^0.
|
|
47
|
+
"@microsoft/api-extractor": "^7.31.1",
|
|
48
|
+
"@thi.ng/testament": "^0.3.0",
|
|
49
49
|
"rimraf": "^3.0.2",
|
|
50
50
|
"tools": "^0.0.1",
|
|
51
51
|
"typedoc": "^0.22.17",
|
|
52
|
-
"typescript": "^4.
|
|
52
|
+
"typescript": "^4.8.3"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"ast",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
],
|
|
148
148
|
"year": 2019
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "f4c59114f2d2dfafa9014626038a9ec5242b0606\n"
|
|
151
151
|
}
|
package/runtime.js
CHANGED
|
@@ -85,8 +85,9 @@ export const renderBuffer = (fn, buf, x = 0, y = 0, w, h, bufOffsetX = 0, bufOff
|
|
|
85
85
|
*/
|
|
86
86
|
export const canvasRenderer = (canvas) => {
|
|
87
87
|
const buf = intBufferFromCanvas(canvas);
|
|
88
|
+
const data = new ImageData(canvas.width, canvas.height);
|
|
88
89
|
return (fn, x = 0, y = 0, w = canvas.width, h = canvas.height) => {
|
|
89
90
|
renderBuffer(fn, buf, x, y, w, h);
|
|
90
|
-
buf.blitCanvas(canvas);
|
|
91
|
+
buf.blitCanvas(canvas, { data });
|
|
91
92
|
};
|
|
92
93
|
};
|