@thi.ng/shader-ast-js 1.0.32 → 1.1.0
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 +3 -2
- package/api.d.ts +2 -0
- package/env/ivec2.js +4 -2
- package/env/ivec3.js +4 -2
- package/env/ivec4.js +4 -2
- package/env/uvec2.js +4 -2
- package/env/uvec3.js +4 -2
- package/env/uvec4.js +4 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-12-
|
|
3
|
+
- **Last updated**: 2023-12-31T09:44:23Z
|
|
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
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.1.0) (2023-12-31)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- fix [#435](https://github.com/thi-ng/umbrella/issues/435), add new lshift/rshift ops/variations ([a78d313](https://github.com/thi-ng/umbrella/commit/a78d313))
|
|
17
|
+
|
|
12
18
|
### [1.0.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-js@1.0.21) (2023-11-09)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
This project
|
|
11
|
-
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
|
|
10
|
+
This is a standalone project, maintained as part of the
|
|
11
|
+
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
|
|
12
|
+
anti-framework.
|
|
12
13
|
|
|
13
14
|
- [About](#about)
|
|
14
15
|
- [Unsupported features](#unsupported-features)
|
package/api.d.ts
CHANGED
|
@@ -143,6 +143,8 @@ export interface JSBuiltinsVec3 extends JSBuiltinsVec {
|
|
|
143
143
|
export interface JSBuiltinsIntVec extends JSBuiltinsInt<Vec>, JSBuiltinsVecScalar<Vec>, JSBuiltinsBinary<Vec>, JSBuiltinsVecCompare {
|
|
144
144
|
modivn: Fn2<Vec, number, Vec>;
|
|
145
145
|
modinv: Fn2<number, Vec, Vec>;
|
|
146
|
+
lshiftvn: Fn2<Vec, number, Vec>;
|
|
147
|
+
rshiftvn: Fn2<Vec, number, Vec>;
|
|
146
148
|
}
|
|
147
149
|
export interface JSBuiltinsMat extends JSBuiltinsMath<Mat>, JSBuiltinsVecScalar<Mat> {
|
|
148
150
|
mulm: Fn2<Mat, Mat, Mat>;
|
package/env/ivec2.js
CHANGED
|
@@ -6,9 +6,9 @@ import { bitXorI2 } from "@thi.ng/vectors/bit-xor";
|
|
|
6
6
|
import { divI2, divNI2 } from "@thi.ng/vectors/divi";
|
|
7
7
|
import { fmod2 } from "@thi.ng/vectors/fmod";
|
|
8
8
|
import { fmodN2 } from "@thi.ng/vectors/fmodn";
|
|
9
|
-
import { lshiftI2 } from "@thi.ng/vectors/lshift";
|
|
9
|
+
import { lshiftI2, lshiftNI2 } from "@thi.ng/vectors/lshift";
|
|
10
10
|
import { mulI2, mulNI2 } from "@thi.ng/vectors/muli";
|
|
11
|
-
import { rshiftI2 } from "@thi.ng/vectors/rshift";
|
|
11
|
+
import { rshiftI2, rshiftNI2 } from "@thi.ng/vectors/rshift";
|
|
12
12
|
import { subI2, subNI2 } from "@thi.ng/vectors/subi";
|
|
13
13
|
import { POOL_IVEC2 } from "../pool.js";
|
|
14
14
|
import { VEC2 } from "./vec2.js";
|
|
@@ -32,9 +32,11 @@ const IVEC2 = {
|
|
|
32
32
|
subnv: (a, b) => subI2(null, uniform(a), b),
|
|
33
33
|
bitand: (a, b) => bitAndI2(next(), a, b),
|
|
34
34
|
lshift: (a, b) => lshiftI2(next(), a, b),
|
|
35
|
+
lshiftvn: (a, b) => lshiftNI2(next(), a, b),
|
|
35
36
|
bitnot1: (a) => bitNotI2(next(), a),
|
|
36
37
|
bitor: (a, b) => bitOrI2(next(), a, b),
|
|
37
38
|
rshift: (a, b) => rshiftI2(next(), a, b),
|
|
39
|
+
rshiftvn: (a, b) => rshiftNI2(next(), a, b),
|
|
38
40
|
bitxor: (a, b) => bitXorI2(next(), a, b)
|
|
39
41
|
};
|
|
40
42
|
export {
|
package/env/ivec3.js
CHANGED
|
@@ -6,9 +6,9 @@ import { bitXorI3 } from "@thi.ng/vectors/bit-xor";
|
|
|
6
6
|
import { divI3, divNI3 } from "@thi.ng/vectors/divi";
|
|
7
7
|
import { fmod3 } from "@thi.ng/vectors/fmod";
|
|
8
8
|
import { fmodN3 } from "@thi.ng/vectors/fmodn";
|
|
9
|
-
import { lshiftI3 } from "@thi.ng/vectors/lshift";
|
|
9
|
+
import { lshiftI3, lshiftNI3 } from "@thi.ng/vectors/lshift";
|
|
10
10
|
import { mulI3, mulNI3 } from "@thi.ng/vectors/muli";
|
|
11
|
-
import { rshiftI3 } from "@thi.ng/vectors/rshift";
|
|
11
|
+
import { rshiftI3, rshiftNI3 } from "@thi.ng/vectors/rshift";
|
|
12
12
|
import { subI3, subNI3 } from "@thi.ng/vectors/subi";
|
|
13
13
|
import { POOL_IVEC3 } from "../pool.js";
|
|
14
14
|
import { VEC3 } from "./vec3.js";
|
|
@@ -32,9 +32,11 @@ const IVEC3 = {
|
|
|
32
32
|
subnv: (a, b) => subI3(null, uniform(a), b),
|
|
33
33
|
bitand: (a, b) => bitAndI3(next(), a, b),
|
|
34
34
|
lshift: (a, b) => lshiftI3(next(), a, b),
|
|
35
|
+
lshiftvn: (a, b) => lshiftNI3(next(), a, b),
|
|
35
36
|
bitnot1: (a) => bitNotI3(next(), a),
|
|
36
37
|
bitor: (a, b) => bitOrI3(next(), a, b),
|
|
37
38
|
rshift: (a, b) => rshiftI3(next(), a, b),
|
|
39
|
+
rshiftvn: (a, b) => rshiftNI3(next(), a, b),
|
|
38
40
|
bitxor: (a, b) => bitXorI3(next(), a, b)
|
|
39
41
|
};
|
|
40
42
|
export {
|
package/env/ivec4.js
CHANGED
|
@@ -6,9 +6,9 @@ import { bitXorI4 } from "@thi.ng/vectors/bit-xor";
|
|
|
6
6
|
import { divI4, divNI4 } from "@thi.ng/vectors/divi";
|
|
7
7
|
import { fmod4 } from "@thi.ng/vectors/fmod";
|
|
8
8
|
import { fmodN4 } from "@thi.ng/vectors/fmodn";
|
|
9
|
-
import { lshiftI4 } from "@thi.ng/vectors/lshift";
|
|
9
|
+
import { lshiftI4, lshiftNI4 } from "@thi.ng/vectors/lshift";
|
|
10
10
|
import { mulI4, mulNI4 } from "@thi.ng/vectors/muli";
|
|
11
|
-
import { rshiftI4 } from "@thi.ng/vectors/rshift";
|
|
11
|
+
import { rshiftI4, rshiftNI4 } from "@thi.ng/vectors/rshift";
|
|
12
12
|
import { subI4, subNI4 } from "@thi.ng/vectors/subi";
|
|
13
13
|
import { POOL_IVEC4 } from "../pool.js";
|
|
14
14
|
import { VEC4 } from "./vec4.js";
|
|
@@ -32,9 +32,11 @@ const IVEC4 = {
|
|
|
32
32
|
subnv: (a, b) => subI4(null, uniform(a), b),
|
|
33
33
|
bitand: (a, b) => bitAndI4(next(), a, b),
|
|
34
34
|
lshift: (a, b) => lshiftI4(next(), a, b),
|
|
35
|
+
lshiftvn: (a, b) => lshiftNI4(next(), a, b),
|
|
35
36
|
bitnot1: (a) => bitNotI4(next(), a),
|
|
36
37
|
bitor: (a, b) => bitOrI4(next(), a, b),
|
|
37
38
|
rshift: (a, b) => rshiftI4(next(), a, b),
|
|
39
|
+
rshiftvn: (a, b) => rshiftNI4(next(), a, b),
|
|
38
40
|
bitxor: (a, b) => bitXorI4(next(), a, b)
|
|
39
41
|
};
|
|
40
42
|
export {
|
package/env/uvec2.js
CHANGED
|
@@ -6,9 +6,9 @@ import { bitXorU2 } from "@thi.ng/vectors/bit-xor";
|
|
|
6
6
|
import { divNU2, divU2 } from "@thi.ng/vectors/divi";
|
|
7
7
|
import { fmod2 } from "@thi.ng/vectors/fmod";
|
|
8
8
|
import { fmodN2 } from "@thi.ng/vectors/fmodn";
|
|
9
|
-
import { lshiftU2 } from "@thi.ng/vectors/lshift";
|
|
9
|
+
import { lshiftNU2, lshiftU2 } from "@thi.ng/vectors/lshift";
|
|
10
10
|
import { mulNU2, mulU2 } from "@thi.ng/vectors/muli";
|
|
11
|
-
import { rshiftU2 } from "@thi.ng/vectors/rshift";
|
|
11
|
+
import { rshiftNU2, rshiftU2 } from "@thi.ng/vectors/rshift";
|
|
12
12
|
import { subNU2, subU2 } from "@thi.ng/vectors/subi";
|
|
13
13
|
import { POOL_UVEC2 } from "../pool.js";
|
|
14
14
|
import { VEC2 } from "./vec2.js";
|
|
@@ -32,9 +32,11 @@ const UVEC2 = {
|
|
|
32
32
|
subnv: (a, b) => subU2(null, uniform(a), b),
|
|
33
33
|
bitand: (a, b) => bitAndU2(next(), a, b),
|
|
34
34
|
lshift: (a, b) => lshiftU2(next(), a, b),
|
|
35
|
+
lshiftvn: (a, b) => lshiftNU2(next(), a, b),
|
|
35
36
|
bitnot1: (a) => bitNotU2(next(), a),
|
|
36
37
|
bitor: (a, b) => bitOrU2(next(), a, b),
|
|
37
38
|
rshift: (a, b) => rshiftU2(next(), a, b),
|
|
39
|
+
rshiftvn: (a, b) => rshiftNU2(next(), a, b),
|
|
38
40
|
bitxor: (a, b) => bitXorU2(next(), a, b)
|
|
39
41
|
};
|
|
40
42
|
export {
|
package/env/uvec3.js
CHANGED
|
@@ -6,9 +6,9 @@ import { bitXorU3 } from "@thi.ng/vectors/bit-xor";
|
|
|
6
6
|
import { divNU3, divU3 } from "@thi.ng/vectors/divi";
|
|
7
7
|
import { fmod3 } from "@thi.ng/vectors/fmod";
|
|
8
8
|
import { fmodN3 } from "@thi.ng/vectors/fmodn";
|
|
9
|
-
import { lshiftU3 } from "@thi.ng/vectors/lshift";
|
|
9
|
+
import { lshiftNU3, lshiftU3 } from "@thi.ng/vectors/lshift";
|
|
10
10
|
import { mulNU3, mulU3 } from "@thi.ng/vectors/muli";
|
|
11
|
-
import { rshiftU3 } from "@thi.ng/vectors/rshift";
|
|
11
|
+
import { rshiftNU3, rshiftU3 } from "@thi.ng/vectors/rshift";
|
|
12
12
|
import { subNU3, subU3 } from "@thi.ng/vectors/subi";
|
|
13
13
|
import { POOL_UVEC3 } from "../pool.js";
|
|
14
14
|
import { VEC3 } from "./vec3.js";
|
|
@@ -32,9 +32,11 @@ const UVEC3 = {
|
|
|
32
32
|
subnv: (a, b) => subU3(null, uniform(a), b),
|
|
33
33
|
bitand: (a, b) => bitAndU3(next(), a, b),
|
|
34
34
|
lshift: (a, b) => lshiftU3(next(), a, b),
|
|
35
|
+
lshiftvn: (a, b) => lshiftNU3(next(), a, b),
|
|
35
36
|
bitnot1: (a) => bitNotU3(next(), a),
|
|
36
37
|
bitor: (a, b) => bitOrU3(next(), a, b),
|
|
37
38
|
rshift: (a, b) => rshiftU3(next(), a, b),
|
|
39
|
+
rshiftvn: (a, b) => rshiftNU3(next(), a, b),
|
|
38
40
|
bitxor: (a, b) => bitXorU3(next(), a, b)
|
|
39
41
|
};
|
|
40
42
|
export {
|
package/env/uvec4.js
CHANGED
|
@@ -6,9 +6,9 @@ import { bitXorU4 } from "@thi.ng/vectors/bit-xor";
|
|
|
6
6
|
import { divNU4, divU4 } from "@thi.ng/vectors/divi";
|
|
7
7
|
import { fmod4 } from "@thi.ng/vectors/fmod";
|
|
8
8
|
import { fmodN4 } from "@thi.ng/vectors/fmodn";
|
|
9
|
-
import { lshiftU4 } from "@thi.ng/vectors/lshift";
|
|
9
|
+
import { lshiftNU4, lshiftU4 } from "@thi.ng/vectors/lshift";
|
|
10
10
|
import { mulNU4, mulU4 } from "@thi.ng/vectors/muli";
|
|
11
|
-
import { rshiftU4 } from "@thi.ng/vectors/rshift";
|
|
11
|
+
import { rshiftNU4, rshiftU4 } from "@thi.ng/vectors/rshift";
|
|
12
12
|
import { subNU4, subU4 } from "@thi.ng/vectors/subi";
|
|
13
13
|
import { POOL_UVEC4 } from "../pool.js";
|
|
14
14
|
import { VEC4 } from "./vec4.js";
|
|
@@ -32,9 +32,11 @@ const UVEC4 = {
|
|
|
32
32
|
subnv: (a, b) => subU4(null, uniform(a), b),
|
|
33
33
|
bitand: (a, b) => bitAndU4(next(), a, b),
|
|
34
34
|
lshift: (a, b) => lshiftU4(next(), a, b),
|
|
35
|
+
lshiftvn: (a, b) => lshiftNU4(next(), a, b),
|
|
35
36
|
bitnot1: (a) => bitNotU4(next(), a),
|
|
36
37
|
bitor: (a, b) => bitOrU4(next(), a, b),
|
|
37
38
|
rshift: (a, b) => rshiftU4(next(), a, b),
|
|
39
|
+
rshiftvn: (a, b) => rshiftNU4(next(), a, b),
|
|
38
40
|
bitxor: (a, b) => bitXorU4(next(), a, b)
|
|
39
41
|
};
|
|
40
42
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/shader-ast-js",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Customizable JS codegen, compiler & runtime for @thi.ng/shader-ast",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/checks": "^3.4.
|
|
40
|
-
"@thi.ng/errors": "^2.4.
|
|
41
|
-
"@thi.ng/math": "^5.7.
|
|
42
|
-
"@thi.ng/matrices": "^2.3.
|
|
43
|
-
"@thi.ng/pixel": "^6.0.
|
|
44
|
-
"@thi.ng/shader-ast": "^0.
|
|
45
|
-
"@thi.ng/vectors": "^7.8.
|
|
38
|
+
"@thi.ng/api": "^8.9.16",
|
|
39
|
+
"@thi.ng/checks": "^3.4.16",
|
|
40
|
+
"@thi.ng/errors": "^2.4.10",
|
|
41
|
+
"@thi.ng/math": "^5.7.11",
|
|
42
|
+
"@thi.ng/matrices": "^2.3.4",
|
|
43
|
+
"@thi.ng/pixel": "^6.0.3",
|
|
44
|
+
"@thi.ng/shader-ast": "^0.13.0",
|
|
45
|
+
"@thi.ng/vectors": "^7.8.15"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@microsoft/api-extractor": "^7.
|
|
49
|
-
"esbuild": "^0.19.
|
|
48
|
+
"@microsoft/api-extractor": "^7.39.0",
|
|
49
|
+
"esbuild": "^0.19.10",
|
|
50
50
|
"rimraf": "^5.0.5",
|
|
51
51
|
"typedoc": "^0.25.4",
|
|
52
|
-
"typescript": "^5.3.
|
|
52
|
+
"typescript": "^5.3.3"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"2d",
|
|
@@ -162,5 +162,5 @@
|
|
|
162
162
|
],
|
|
163
163
|
"year": 2019
|
|
164
164
|
},
|
|
165
|
-
"gitHead": "
|
|
165
|
+
"gitHead": "b3db173682e1148cf08a6bd907b8d90b47b7c066\n"
|
|
166
166
|
}
|