@thi.ng/shader-ast-stdlib 0.16.20 → 0.16.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-01-30T15:21:31Z
3
+ - **Last updated**: 2024-02-06T23:18:11Z
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.16.22](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.16.22) (2024-02-06)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - use shader type consts ([039a0bf](https://github.com/thi-ng/umbrella/commit/039a0bf))
17
+
12
18
  ### [0.16.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.16.4) (2023-11-09)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -110,7 +110,7 @@ For Node.js REPL:
110
110
  const shaderAstStdlib = await import("@thi.ng/shader-ast-stdlib");
111
111
  ```
112
112
 
113
- Package sizes (brotli'd, pre-treeshake): ESM: 13.40 KB
113
+ Package sizes (brotli'd, pre-treeshake): ESM: 13.38 KB
114
114
 
115
115
  ## Dependencies
116
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/shader-ast-stdlib",
3
- "version": "0.16.20",
3
+ "version": "0.16.22",
4
4
  "description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -38,8 +38,8 @@
38
38
  "test": "bun test"
39
39
  },
40
40
  "dependencies": {
41
- "@thi.ng/api": "^8.9.21",
42
- "@thi.ng/shader-ast": "^0.13.5"
41
+ "@thi.ng/api": "^8.9.22",
42
+ "@thi.ng/shader-ast": "^0.13.7"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.39.0",
@@ -354,5 +354,5 @@
354
354
  ],
355
355
  "year": 2019
356
356
  },
357
- "gitHead": "ded7c5e87ebc7f6279c24f183c24ff348db8f304\n"
357
+ "gitHead": "ce8202c237a367c4038d41919a8acf75e1122507\n"
358
358
  }
package/tex/blur.js CHANGED
@@ -1,4 +1,4 @@
1
- import { V2, V4 } from "@thi.ng/shader-ast/api/types";
1
+ import { S2D, V2, V4 } from "@thi.ng/shader-ast/api/types";
2
2
  import { assign } from "@thi.ng/shader-ast/ast/assign";
3
3
  import { defn, ret } from "@thi.ng/shader-ast/ast/function";
4
4
  import { vec2 } from "@thi.ng/shader-ast/ast/lit";
@@ -15,7 +15,7 @@ const singlePass = (col, tex, uv, off, k) => assign(
15
15
  const blur5 = defn(
16
16
  V4,
17
17
  "blur5",
18
- ["sampler2D", V2, V2, V2],
18
+ [S2D, V2, V2, V2],
19
19
  (tex, res, uv, dir) => {
20
20
  let col;
21
21
  let off;
@@ -32,7 +32,7 @@ const blur5 = defn(
32
32
  const blur9 = defn(
33
33
  V4,
34
34
  "blur9",
35
- ["sampler2D", V2, V2, V2],
35
+ [S2D, V2, V2, V2],
36
36
  (tex, res, uv, dir) => {
37
37
  let col;
38
38
  let off;
@@ -54,7 +54,7 @@ const blur9 = defn(
54
54
  const blur13 = defn(
55
55
  V4,
56
56
  "blur13",
57
- ["sampler2D", V2, V2, V2],
57
+ [S2D, V2, V2, V2],
58
58
  (tex, res, uv, dir) => {
59
59
  let col;
60
60
  let off;