@thi.ng/wasm-api-webgl 0.1.14 → 0.1.15
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/generated/api.d.ts +1 -1
- package/generated/api.js +8 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-
|
|
3
|
+
- **Last updated**: 2024-11-09T16:30:54Z
|
|
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.1.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-webgl@0.1.15) (2024-11-09)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- regenerate typescript sources ([9055e0e](https://github.com/thi-ng/umbrella/commit/9055e0e))
|
|
17
|
+
|
|
12
18
|
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-webgl@0.1.0) (2024-08-18)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/generated/api.d.ts
CHANGED
package/generated/api.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Pointer, WasmStringPtr } from "@thi.ng/wasm-api";
|
|
2
2
|
import { __array, __instanceArray, __slice32, __primslice32 } from "@thi.ng/wasm-api/memory";
|
|
3
|
+
const __str = (mem, base, isConst = true) => new WasmStringPtr(mem, base, isConst);
|
|
3
4
|
const $WebGLContextOpts = (mem) => ({
|
|
4
5
|
get align() {
|
|
5
6
|
return 1;
|
|
@@ -75,10 +76,10 @@ const $ShaderSpec = (mem) => ({
|
|
|
75
76
|
return mem.u8.subarray(base, base + 32);
|
|
76
77
|
},
|
|
77
78
|
get vs() {
|
|
78
|
-
return $vs || ($vs =
|
|
79
|
+
return $vs || ($vs = __str(mem, base));
|
|
79
80
|
},
|
|
80
81
|
get fs() {
|
|
81
|
-
return $fs || ($fs =
|
|
82
|
+
return $fs || ($fs = __str(mem, base + 4));
|
|
82
83
|
},
|
|
83
84
|
get attribs() {
|
|
84
85
|
return __slice32(mem, $ShaderAttribSpec, base + 8);
|
|
@@ -112,7 +113,7 @@ const $ShaderAttribSpec = (mem) => ({
|
|
|
112
113
|
return mem.u8.subarray(base, base + 8);
|
|
113
114
|
},
|
|
114
115
|
get name() {
|
|
115
|
-
return $name || ($name =
|
|
116
|
+
return $name || ($name = __str(mem, base));
|
|
116
117
|
},
|
|
117
118
|
get type() {
|
|
118
119
|
return mem.u8[base + 4];
|
|
@@ -140,7 +141,7 @@ const $ShaderVaryingSpec = (mem) => ({
|
|
|
140
141
|
return mem.u8.subarray(base, base + 8);
|
|
141
142
|
},
|
|
142
143
|
get name() {
|
|
143
|
-
return $name || ($name =
|
|
144
|
+
return $name || ($name = __str(mem, base));
|
|
144
145
|
},
|
|
145
146
|
get type() {
|
|
146
147
|
return mem.u8[base + 4];
|
|
@@ -168,7 +169,7 @@ const $ShaderUniformSpec = (mem) => ({
|
|
|
168
169
|
return mem.u8.subarray(base, base + 32);
|
|
169
170
|
},
|
|
170
171
|
get name() {
|
|
171
|
-
return $name || ($name =
|
|
172
|
+
return $name || ($name = __str(mem, base));
|
|
172
173
|
},
|
|
173
174
|
get type() {
|
|
174
175
|
return mem.u8[base + 4];
|
|
@@ -244,7 +245,7 @@ const $ModelAttribSpec = (mem) => ({
|
|
|
244
245
|
return mem.u8.subarray(base, base + 28);
|
|
245
246
|
},
|
|
246
247
|
get name() {
|
|
247
|
-
return $name || ($name =
|
|
248
|
+
return $name || ($name = __str(mem, base));
|
|
248
249
|
},
|
|
249
250
|
get data() {
|
|
250
251
|
return $ModelAttribData(mem).instance(base + 4);
|
|
@@ -356,7 +357,7 @@ const $ModelUniform = (mem) => ({
|
|
|
356
357
|
return mem.u8.subarray(base, base + 32);
|
|
357
358
|
},
|
|
358
359
|
get name() {
|
|
359
|
-
return $name || ($name =
|
|
360
|
+
return $name || ($name = __str(mem, base));
|
|
360
361
|
},
|
|
361
362
|
get type() {
|
|
362
363
|
return mem.u8[base + 4];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/wasm-api-webgl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "WebGL bridge API for hybrid TypeScript & WASM (Zig) applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"@thi.ng/api": "^8.11.11",
|
|
41
41
|
"@thi.ng/errors": "^2.5.17",
|
|
42
42
|
"@thi.ng/wasm-api": "^2.1.0",
|
|
43
|
-
"@thi.ng/wasm-api-dom": "^1.0.
|
|
43
|
+
"@thi.ng/wasm-api-dom": "^1.0.8",
|
|
44
44
|
"@thi.ng/webgl": "^6.9.24"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.47.9",
|
|
48
|
-
"@thi.ng/wasm-api-bindgen": "^0.7.
|
|
48
|
+
"@thi.ng/wasm-api-bindgen": "^0.7.9",
|
|
49
49
|
"esbuild": "^0.24.0",
|
|
50
50
|
"typedoc": "^0.26.7",
|
|
51
51
|
"typescript": "^5.6.2"
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"status": "alpha",
|
|
97
97
|
"year": 2024
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "e84096f55842a5a028d5c5e7b776ddd49b79ea17\n"
|
|
100
100
|
}
|