@thi.ng/shader-ast-optimize 1.0.63 → 1.0.64
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/README.md +18 -17
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/shader-ast-optimize)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [defOptimized()](#defoptimized)
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
|
|
29
30
|
## About
|
|
30
31
|
|
|
31
|
-
Shader AST code/tree optimization passes/strategies. This is a support package for [@thi.ng/shader-ast](https://
|
|
32
|
+
Shader AST code/tree optimization passes/strategies. This is a support package for [@thi.ng/shader-ast](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/shader-ast).
|
|
32
33
|
|
|
33
34
|
### defOptimized()
|
|
34
35
|
|
|
@@ -110,7 +111,7 @@ console.log(glsl(constantFolding(expr)))
|
|
|
110
111
|
|
|
111
112
|
**STABLE** - used in production
|
|
112
113
|
|
|
113
|
-
[Search or submit any issues for this package](https://
|
|
114
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bshader-ast-optimize%5D)
|
|
114
115
|
|
|
115
116
|
## Installation
|
|
116
117
|
|
|
@@ -142,24 +143,24 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.27 KB
|
|
|
142
143
|
|
|
143
144
|
## Dependencies
|
|
144
145
|
|
|
145
|
-
- [@thi.ng/api](https://
|
|
146
|
-
- [@thi.ng/defmulti](https://
|
|
147
|
-
- [@thi.ng/errors](https://
|
|
148
|
-
- [@thi.ng/logger](https://
|
|
149
|
-
- [@thi.ng/math](https://
|
|
150
|
-
- [@thi.ng/shader-ast](https://
|
|
146
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
147
|
+
- [@thi.ng/defmulti](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/defmulti)
|
|
148
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
149
|
+
- [@thi.ng/logger](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/logger)
|
|
150
|
+
- [@thi.ng/math](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/math)
|
|
151
|
+
- [@thi.ng/shader-ast](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/shader-ast)
|
|
151
152
|
|
|
152
153
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
153
154
|
|
|
154
155
|
## Usage examples
|
|
155
156
|
|
|
156
157
|
One project in this repo's
|
|
157
|
-
[/examples](https://
|
|
158
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
158
159
|
directory is using this package:
|
|
159
160
|
|
|
160
|
-
| Screenshot | Description | Live demo | Source
|
|
161
|
-
|
|
162
|
-
| <img src="https://
|
|
161
|
+
| Screenshot | Description | Live demo | Source |
|
|
162
|
+
|:----------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------|:-----------------------------------------------------|:------------------------------------------------------------------------------------------|
|
|
163
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/shader-ast-evo.jpg" width="240"/> | Evolutionary shader generation using genetic programming | [Demo](https://demo.thi.ng/umbrella/shader-ast-evo/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/shader-ast-evo) |
|
|
163
164
|
|
|
164
165
|
## API
|
|
165
166
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/shader-ast-optimize",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"description": "Shader AST code/tree optimization passes/strategies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/shader-ast-optimize"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/shader-ast-optimize",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/defmulti": "^3.0.
|
|
45
|
-
"@thi.ng/errors": "^2.6.
|
|
46
|
-
"@thi.ng/logger": "^3.3.
|
|
47
|
-
"@thi.ng/math": "^5.15.
|
|
48
|
-
"@thi.ng/shader-ast": "^1.1.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/defmulti": "^3.0.95",
|
|
45
|
+
"@thi.ng/errors": "^2.6.7",
|
|
46
|
+
"@thi.ng/logger": "^3.3.1",
|
|
47
|
+
"@thi.ng/math": "^5.15.7",
|
|
48
|
+
"@thi.ng/shader-ast": "^1.1.45"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"esbuild": "^0.27.2",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"parent": "@thi.ng/shader-ast",
|
|
95
95
|
"year": 2019
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
98
98
|
}
|