@dcl-regenesislabs/bevy-explorer-web 0.1.0-20595864297.commit-fbe5b57 → 0.1.0-20598541346.commit-a6b84af
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/.env +1 -1
- package/asset_processor.js +33 -0
- package/index.html +2 -2
- package/main.js +22 -0
- package/package.json +3 -3
- package/pkg/webgpu_build.d.ts +15 -11
- package/pkg/webgpu_build.js +147 -58
- package/pkg/webgpu_build_bg.wasm +0 -0
- package/pkg/webgpu_build_bg.wasm.d.ts +13 -11
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
1
|
+
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20598541346.commit-a6b84af"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import init, * as wasm_bindgen_exports from "./pkg/webgpu_build.js";
|
|
2
|
+
|
|
3
|
+
console.log("[Asset Processor] Starting");
|
|
4
|
+
|
|
5
|
+
self.onmessage = async (event) => {
|
|
6
|
+
if (event.data && event.data.type === "INIT_ASSET_PROCESSOR") {
|
|
7
|
+
const { compiledModule, sharedMemory } = event.data.payload;
|
|
8
|
+
|
|
9
|
+
if (!compiledModule || !sharedMemory) {
|
|
10
|
+
console.error("[Asset Loader] Invalid payload received.");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
// init wasm
|
|
16
|
+
console.log("[Asset Processor] init wasm");
|
|
17
|
+
await init({ module_or_path: compiledModule, memory: sharedMemory });
|
|
18
|
+
console.log("[Asset Processor] init processor channels");
|
|
19
|
+
wasm_bindgen_exports.image_processor_init();
|
|
20
|
+
postMessage({ type: `INITIALIZED` });
|
|
21
|
+
console.log("[Asset Processor] defer to asset process thread");
|
|
22
|
+
await wasm_bindgen_exports.image_processor_run();
|
|
23
|
+
console.log("[Asset Processor] exited?!");
|
|
24
|
+
} catch (e) {
|
|
25
|
+
console.error(
|
|
26
|
+
"[Asset Processor] Error during Wasm instantiation or setup:",
|
|
27
|
+
e
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
postMessage({ type: `READY` });
|
package/index.html
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
</style>
|
|
103
103
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
|
|
104
|
-
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
104
|
+
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20598541346.commit-a6b84af";</script>
|
|
105
105
|
</head>
|
|
106
106
|
<body>
|
|
107
107
|
<div id="header" class="container">
|
|
@@ -135,6 +135,6 @@
|
|
|
135
135
|
</div>
|
|
136
136
|
<script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
|
|
137
137
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
|
|
138
|
-
<script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
138
|
+
<script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20598541346.commit-a6b84af/main.js"></script>
|
|
139
139
|
</body>
|
|
140
140
|
</html>
|
package/main.js
CHANGED
|
@@ -254,6 +254,28 @@ async function initEngine() {
|
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
});
|
|
257
|
+
|
|
258
|
+
// start asset processor thread
|
|
259
|
+
await new Promise((resolve, _reject) => {
|
|
260
|
+
const basePath = window.location.pathname.replace(/\/$/, ''); // removes trailing slash if present
|
|
261
|
+
const assetLoaderPath = new URL(`${basePath}/asset_processor.js`, window.location.origin);
|
|
262
|
+
|
|
263
|
+
const assetProcessor = new Worker(assetLoaderPath, { type: "module" });
|
|
264
|
+
assetProcessor.onmessage = (workerEvent) => {
|
|
265
|
+
if (workerEvent.data.type === "READY") {
|
|
266
|
+
assetProcessor.postMessage({
|
|
267
|
+
type: "INIT_ASSET_PROCESSOR",
|
|
268
|
+
payload: {
|
|
269
|
+
compiledModule,
|
|
270
|
+
sharedMemory,
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
if (workerEvent.data.type === "INITIALIZED") {
|
|
275
|
+
resolve();
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
});
|
|
257
279
|
} catch (error) {
|
|
258
280
|
console.error(
|
|
259
281
|
"[Main JS] Error during Wasm initialization or setup:",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl-regenesislabs/bevy-explorer-web",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-20598541346.commit-a6b84af",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"postinstall": "node ./scripts/prebuild.js"
|
|
6
6
|
},
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/bevy-explorer.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
12
|
-
"commit": "
|
|
11
|
+
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20598541346.commit-a6b84af",
|
|
12
|
+
"commit": "a6b84afe591df64930f0831a38b54e7988c76d4a"
|
|
13
13
|
}
|
package/pkg/webgpu_build.d.ts
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
export function init_asset_load_thread(): void;
|
|
7
7
|
export function engine_init(): Promise<any>;
|
|
8
8
|
export function engine_run(platform: string, realm: string, location: string, system_scene: string, with_thread_loader: boolean, preview: boolean, rabpf: number): void;
|
|
9
|
+
export function image_processor_init(): void;
|
|
10
|
+
export function image_processor_run(): Promise<void>;
|
|
9
11
|
export function op_webstorage_length(state: WorkerContext): number;
|
|
10
12
|
export function op_webstorage_key(state: WorkerContext, index: number): string | undefined;
|
|
11
13
|
export function op_webstorage_set(state: WorkerContext, key_name: string, value: string): void;
|
|
@@ -107,6 +109,8 @@ export interface InitOutput {
|
|
|
107
109
|
readonly engine_init: () => any;
|
|
108
110
|
readonly engine_run: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
109
111
|
readonly init_asset_load_thread: () => void;
|
|
112
|
+
readonly image_processor_init: () => void;
|
|
113
|
+
readonly image_processor_run: () => any;
|
|
110
114
|
readonly op_webstorage_length: (a: number) => number;
|
|
111
115
|
readonly op_webstorage_key: (a: number, b: number) => [number, number];
|
|
112
116
|
readonly op_webstorage_set: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -208,19 +212,19 @@ export interface InitOutput {
|
|
|
208
212
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
209
213
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
210
214
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
215
|
+
readonly closure15289_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
216
|
+
readonly closure48744_externref_shim: (a: number, b: number, c: any) => void;
|
|
213
217
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7aec603de1cde302: (a: number, b: number) => void;
|
|
214
218
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he5b48a15f2311f68: (a: number, b: number) => void;
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
readonly
|
|
218
|
-
readonly
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
221
|
-
readonly
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
219
|
+
readonly closure52467_externref_shim: (a: number, b: number, c: any) => void;
|
|
220
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha40a927305425e1c: (a: number, b: number) => void;
|
|
221
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f26d1c7d4ed7f8e: (a: number, b: number) => void;
|
|
222
|
+
readonly closure57515_externref_shim: (a: number, b: number, c: any) => void;
|
|
223
|
+
readonly closure57521_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
224
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h99bd33b5f9449b5c: (a: number, b: number) => void;
|
|
225
|
+
readonly closure117651_externref_shim: (a: number, b: number, c: any) => void;
|
|
226
|
+
readonly closure132894_externref_shim: (a: number, b: number, c: any) => void;
|
|
227
|
+
readonly closure135798_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
224
228
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
225
229
|
readonly __wbindgen_start: (a: number) => void;
|
|
226
230
|
}
|
package/pkg/webgpu_build.js
CHANGED
|
@@ -251,6 +251,18 @@ export function engine_run(platform, realm, location, system_scene, with_thread_
|
|
|
251
251
|
wasm.engine_run(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, with_thread_loader, preview, rabpf);
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
export function image_processor_init() {
|
|
255
|
+
wasm.image_processor_init();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @returns {Promise<void>}
|
|
260
|
+
*/
|
|
261
|
+
export function image_processor_run() {
|
|
262
|
+
const ret = wasm.image_processor_run();
|
|
263
|
+
return ret;
|
|
264
|
+
}
|
|
265
|
+
|
|
254
266
|
function _assertClass(instance, klass) {
|
|
255
267
|
if (!(instance instanceof klass)) {
|
|
256
268
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -1338,11 +1350,11 @@ export function is_super(state) {
|
|
|
1338
1350
|
}
|
|
1339
1351
|
|
|
1340
1352
|
function __wbg_adapter_62(arg0, arg1, arg2, arg3) {
|
|
1341
|
-
wasm.
|
|
1353
|
+
wasm.closure15289_externref_shim(arg0, arg1, arg2, arg3);
|
|
1342
1354
|
}
|
|
1343
1355
|
|
|
1344
1356
|
function __wbg_adapter_65(arg0, arg1, arg2) {
|
|
1345
|
-
wasm.
|
|
1357
|
+
wasm.closure48744_externref_shim(arg0, arg1, arg2);
|
|
1346
1358
|
}
|
|
1347
1359
|
|
|
1348
1360
|
function __wbg_adapter_68(arg0, arg1) {
|
|
@@ -1354,39 +1366,39 @@ function __wbg_adapter_71(arg0, arg1) {
|
|
|
1354
1366
|
}
|
|
1355
1367
|
|
|
1356
1368
|
function __wbg_adapter_74(arg0, arg1, arg2) {
|
|
1357
|
-
wasm.
|
|
1369
|
+
wasm.closure52467_externref_shim(arg0, arg1, arg2);
|
|
1358
1370
|
}
|
|
1359
1371
|
|
|
1360
1372
|
function __wbg_adapter_81(arg0, arg1) {
|
|
1361
|
-
wasm.
|
|
1373
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha40a927305425e1c(arg0, arg1);
|
|
1362
1374
|
}
|
|
1363
1375
|
|
|
1364
1376
|
function __wbg_adapter_84(arg0, arg1) {
|
|
1365
|
-
wasm.
|
|
1377
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f26d1c7d4ed7f8e(arg0, arg1);
|
|
1366
1378
|
}
|
|
1367
1379
|
|
|
1368
1380
|
function __wbg_adapter_87(arg0, arg1, arg2) {
|
|
1369
|
-
wasm.
|
|
1381
|
+
wasm.closure57515_externref_shim(arg0, arg1, arg2);
|
|
1370
1382
|
}
|
|
1371
1383
|
|
|
1372
|
-
function
|
|
1373
|
-
wasm.
|
|
1384
|
+
function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
|
|
1385
|
+
wasm.closure57521_externref_shim(arg0, arg1, arg2, arg3);
|
|
1374
1386
|
}
|
|
1375
1387
|
|
|
1376
|
-
function __wbg_adapter_105(arg0, arg1
|
|
1377
|
-
wasm.
|
|
1388
|
+
function __wbg_adapter_105(arg0, arg1) {
|
|
1389
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h99bd33b5f9449b5c(arg0, arg1);
|
|
1378
1390
|
}
|
|
1379
1391
|
|
|
1380
1392
|
function __wbg_adapter_108(arg0, arg1, arg2) {
|
|
1381
|
-
wasm.
|
|
1393
|
+
wasm.closure117651_externref_shim(arg0, arg1, arg2);
|
|
1382
1394
|
}
|
|
1383
1395
|
|
|
1384
1396
|
function __wbg_adapter_111(arg0, arg1, arg2) {
|
|
1385
|
-
wasm.
|
|
1397
|
+
wasm.closure132894_externref_shim(arg0, arg1, arg2);
|
|
1386
1398
|
}
|
|
1387
1399
|
|
|
1388
|
-
function
|
|
1389
|
-
wasm.
|
|
1400
|
+
function __wbg_adapter_1557(arg0, arg1, arg2, arg3) {
|
|
1401
|
+
wasm.closure135798_externref_shim(arg0, arg1, arg2, arg3);
|
|
1390
1402
|
}
|
|
1391
1403
|
|
|
1392
1404
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -1640,6 +1652,10 @@ function __wbg_get_imports() {
|
|
|
1640
1652
|
const ret = arg0.buttons;
|
|
1641
1653
|
return ret;
|
|
1642
1654
|
};
|
|
1655
|
+
imports.wbg.__wbg_caches_283b4bd5a6b4a384 = function() { return handleError(function (arg0) {
|
|
1656
|
+
const ret = arg0.caches;
|
|
1657
|
+
return ret;
|
|
1658
|
+
}, arguments) };
|
|
1643
1659
|
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
1644
1660
|
const ret = arg0.call(arg1);
|
|
1645
1661
|
return ret;
|
|
@@ -2169,6 +2185,26 @@ function __wbg_get_imports() {
|
|
|
2169
2185
|
const ret = result;
|
|
2170
2186
|
return ret;
|
|
2171
2187
|
};
|
|
2188
|
+
imports.wbg.__wbg_instanceof_Cache_68839760b07b7088 = function(arg0) {
|
|
2189
|
+
let result;
|
|
2190
|
+
try {
|
|
2191
|
+
result = arg0 instanceof Cache;
|
|
2192
|
+
} catch (_) {
|
|
2193
|
+
result = false;
|
|
2194
|
+
}
|
|
2195
|
+
const ret = result;
|
|
2196
|
+
return ret;
|
|
2197
|
+
};
|
|
2198
|
+
imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a688e81380e34e02 = function(arg0) {
|
|
2199
|
+
let result;
|
|
2200
|
+
try {
|
|
2201
|
+
result = arg0 instanceof DedicatedWorkerGlobalScope;
|
|
2202
|
+
} catch (_) {
|
|
2203
|
+
result = false;
|
|
2204
|
+
}
|
|
2205
|
+
const ret = result;
|
|
2206
|
+
return ret;
|
|
2207
|
+
};
|
|
2172
2208
|
imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
|
|
2173
2209
|
let result;
|
|
2174
2210
|
try {
|
|
@@ -2468,6 +2504,10 @@ function __wbg_get_imports() {
|
|
|
2468
2504
|
const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
|
|
2469
2505
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2470
2506
|
}, arguments) };
|
|
2507
|
+
imports.wbg.__wbg_match_7d31e806366e18ec = function(arg0, arg1, arg2) {
|
|
2508
|
+
const ret = arg0.match(getStringFromWasm0(arg1, arg2));
|
|
2509
|
+
return ret;
|
|
2510
|
+
};
|
|
2471
2511
|
imports.wbg.__wbg_matches_e9ca73fbf8a3a104 = function(arg0) {
|
|
2472
2512
|
const ret = arg0.matches;
|
|
2473
2513
|
return ret;
|
|
@@ -2679,7 +2719,7 @@ function __wbg_get_imports() {
|
|
|
2679
2719
|
const a = state0.a;
|
|
2680
2720
|
state0.a = 0;
|
|
2681
2721
|
try {
|
|
2682
|
-
return
|
|
2722
|
+
return __wbg_adapter_1557(a, state0.b, arg0, arg1);
|
|
2683
2723
|
} finally {
|
|
2684
2724
|
state0.a = a;
|
|
2685
2725
|
}
|
|
@@ -2734,6 +2774,10 @@ function __wbg_get_imports() {
|
|
|
2734
2774
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
2735
2775
|
return ret;
|
|
2736
2776
|
}, arguments) };
|
|
2777
|
+
imports.wbg.__wbg_new_9ffbe0a71eff35e3 = function() { return handleError(function (arg0, arg1) {
|
|
2778
|
+
const ret = new URL(getStringFromWasm0(arg0, arg1));
|
|
2779
|
+
return ret;
|
|
2780
|
+
}, arguments) };
|
|
2737
2781
|
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
2738
2782
|
const ret = new Uint8Array(arg0);
|
|
2739
2783
|
return ret;
|
|
@@ -2782,6 +2826,10 @@ function __wbg_get_imports() {
|
|
|
2782
2826
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2783
2827
|
return ret;
|
|
2784
2828
|
};
|
|
2829
|
+
imports.wbg.__wbg_newwithoptbuffersourceandinit_fb8ed95e326eb3a1 = function() { return handleError(function (arg0, arg1) {
|
|
2830
|
+
const ret = new Response(arg0, arg1);
|
|
2831
|
+
return ret;
|
|
2832
|
+
}, arguments) };
|
|
2785
2833
|
imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2786
2834
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
2787
2835
|
return ret;
|
|
@@ -2847,10 +2895,21 @@ function __wbg_get_imports() {
|
|
|
2847
2895
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2848
2896
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2849
2897
|
}, arguments) };
|
|
2898
|
+
imports.wbg.__wbg_open_97e7dd08648f7ba8 = function(arg0, arg1, arg2) {
|
|
2899
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2));
|
|
2900
|
+
return ret;
|
|
2901
|
+
};
|
|
2850
2902
|
imports.wbg.__wbg_pan_5930a94ad553ed22 = function(arg0) {
|
|
2851
2903
|
const ret = arg0.pan;
|
|
2852
2904
|
return ret;
|
|
2853
2905
|
};
|
|
2906
|
+
imports.wbg.__wbg_pathname_9b0b04c4e19316d0 = function(arg0, arg1) {
|
|
2907
|
+
const ret = arg1.pathname;
|
|
2908
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2909
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2910
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2911
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2912
|
+
};
|
|
2854
2913
|
imports.wbg.__wbg_pause_b74c96d69f769518 = function() { return handleError(function (arg0) {
|
|
2855
2914
|
arg0.pause();
|
|
2856
2915
|
}, arguments) };
|
|
@@ -2943,6 +3002,10 @@ function __wbg_get_imports() {
|
|
|
2943
3002
|
const ret = arg0.push(arg1);
|
|
2944
3003
|
return ret;
|
|
2945
3004
|
};
|
|
3005
|
+
imports.wbg.__wbg_put_9d65a8ef54324b03 = function(arg0, arg1, arg2, arg3) {
|
|
3006
|
+
const ret = arg0.put(getStringFromWasm0(arg1, arg2), arg3);
|
|
3007
|
+
return ret;
|
|
3008
|
+
};
|
|
2946
3009
|
imports.wbg.__wbg_querySelectorAll_40998fd748f057ef = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2947
3010
|
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
2948
3011
|
return ret;
|
|
@@ -3067,6 +3130,13 @@ function __wbg_get_imports() {
|
|
|
3067
3130
|
const ret = arg0.scheduler;
|
|
3068
3131
|
return ret;
|
|
3069
3132
|
};
|
|
3133
|
+
imports.wbg.__wbg_search_e0e79cfe010c5c23 = function(arg0, arg1) {
|
|
3134
|
+
const ret = arg1.search;
|
|
3135
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3136
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3137
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3138
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3139
|
+
};
|
|
3070
3140
|
imports.wbg.__wbg_send_0293179ba074ffb4 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3071
3141
|
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
3072
3142
|
}, arguments) };
|
|
@@ -3146,6 +3216,9 @@ function __wbg_get_imports() {
|
|
|
3146
3216
|
imports.wbg.__wbg_set_10bad9bee0e9c58b = function(arg0, arg1, arg2) {
|
|
3147
3217
|
arg0.set(arg1, arg2 >>> 0);
|
|
3148
3218
|
};
|
|
3219
|
+
imports.wbg.__wbg_set_11cd83f45504cedf = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3220
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3221
|
+
}, arguments) };
|
|
3149
3222
|
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
3150
3223
|
arg0[arg1 >>> 0] = arg2;
|
|
3151
3224
|
};
|
|
@@ -3418,6 +3491,9 @@ function __wbg_get_imports() {
|
|
|
3418
3491
|
imports.wbg.__wbg_sethasdynamicoffset_9dc29179158975e4 = function(arg0, arg1) {
|
|
3419
3492
|
arg0.hasDynamicOffset = arg1 !== 0;
|
|
3420
3493
|
};
|
|
3494
|
+
imports.wbg.__wbg_setheaders_3b47c898e8de6d44 = function(arg0, arg1) {
|
|
3495
|
+
arg0.headers = arg1;
|
|
3496
|
+
};
|
|
3421
3497
|
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
3422
3498
|
arg0.headers = arg1;
|
|
3423
3499
|
};
|
|
@@ -3712,6 +3788,12 @@ function __wbg_get_imports() {
|
|
|
3712
3788
|
imports.wbg.__wbg_setsrcfactor_3bf35cc93f12e8c2 = function(arg0, arg1) {
|
|
3713
3789
|
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
3714
3790
|
};
|
|
3791
|
+
imports.wbg.__wbg_setstatus_51b4fc011091cbb3 = function(arg0, arg1) {
|
|
3792
|
+
arg0.status = arg1;
|
|
3793
|
+
};
|
|
3794
|
+
imports.wbg.__wbg_setstatustext_0f3162c3db034880 = function(arg0, arg1, arg2) {
|
|
3795
|
+
arg0.statusText = getStringFromWasm0(arg1, arg2);
|
|
3796
|
+
};
|
|
3715
3797
|
imports.wbg.__wbg_setstencilback_6d0e3812c09eb489 = function(arg0, arg1) {
|
|
3716
3798
|
arg0.stencilBack = arg1;
|
|
3717
3799
|
};
|
|
@@ -3931,6 +4013,13 @@ function __wbg_get_imports() {
|
|
|
3931
4013
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3932
4014
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3933
4015
|
};
|
|
4016
|
+
imports.wbg.__wbg_statusText_207754230b39e67c = function(arg0, arg1) {
|
|
4017
|
+
const ret = arg1.statusText;
|
|
4018
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4019
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4020
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4021
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4022
|
+
};
|
|
3934
4023
|
imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
3935
4024
|
const ret = arg0.status;
|
|
3936
4025
|
return ret;
|
|
@@ -4200,88 +4289,88 @@ function __wbg_get_imports() {
|
|
|
4200
4289
|
const ret = false;
|
|
4201
4290
|
return ret;
|
|
4202
4291
|
};
|
|
4203
|
-
imports.wbg.
|
|
4204
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4292
|
+
imports.wbg.__wbindgen_closure_wrapper151298 = function(arg0, arg1, arg2) {
|
|
4293
|
+
const ret = makeMutClosure(arg0, arg1, 117652, __wbg_adapter_108);
|
|
4205
4294
|
return ret;
|
|
4206
4295
|
};
|
|
4207
|
-
imports.wbg.
|
|
4208
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4296
|
+
imports.wbg.__wbindgen_closure_wrapper172203 = function(arg0, arg1, arg2) {
|
|
4297
|
+
const ret = makeMutClosure(arg0, arg1, 132895, __wbg_adapter_111);
|
|
4209
4298
|
return ret;
|
|
4210
4299
|
};
|
|
4211
|
-
imports.wbg.
|
|
4212
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4300
|
+
imports.wbg.__wbindgen_closure_wrapper172205 = function(arg0, arg1, arg2) {
|
|
4301
|
+
const ret = makeMutClosure(arg0, arg1, 132895, __wbg_adapter_111);
|
|
4213
4302
|
return ret;
|
|
4214
4303
|
};
|
|
4215
|
-
imports.wbg.
|
|
4216
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4304
|
+
imports.wbg.__wbindgen_closure_wrapper20356 = function(arg0, arg1, arg2) {
|
|
4305
|
+
const ret = makeMutClosure(arg0, arg1, 15290, __wbg_adapter_62);
|
|
4217
4306
|
return ret;
|
|
4218
4307
|
};
|
|
4219
|
-
imports.wbg.
|
|
4220
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4308
|
+
imports.wbg.__wbindgen_closure_wrapper66007 = function(arg0, arg1, arg2) {
|
|
4309
|
+
const ret = makeMutClosure(arg0, arg1, 48745, __wbg_adapter_65);
|
|
4221
4310
|
return ret;
|
|
4222
4311
|
};
|
|
4223
|
-
imports.wbg.
|
|
4224
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4312
|
+
imports.wbg.__wbindgen_closure_wrapper66195 = function(arg0, arg1, arg2) {
|
|
4313
|
+
const ret = makeMutClosure(arg0, arg1, 48850, __wbg_adapter_68);
|
|
4225
4314
|
return ret;
|
|
4226
4315
|
};
|
|
4227
|
-
imports.wbg.
|
|
4228
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4316
|
+
imports.wbg.__wbindgen_closure_wrapper70096 = function(arg0, arg1, arg2) {
|
|
4317
|
+
const ret = makeMutClosure(arg0, arg1, 51821, __wbg_adapter_71);
|
|
4229
4318
|
return ret;
|
|
4230
4319
|
};
|
|
4231
|
-
imports.wbg.
|
|
4232
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4320
|
+
imports.wbg.__wbindgen_closure_wrapper72134 = function(arg0, arg1, arg2) {
|
|
4321
|
+
const ret = makeMutClosure(arg0, arg1, 52468, __wbg_adapter_74);
|
|
4233
4322
|
return ret;
|
|
4234
4323
|
};
|
|
4235
|
-
imports.wbg.
|
|
4236
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4324
|
+
imports.wbg.__wbindgen_closure_wrapper72136 = function(arg0, arg1, arg2) {
|
|
4325
|
+
const ret = makeMutClosure(arg0, arg1, 52468, __wbg_adapter_74);
|
|
4237
4326
|
return ret;
|
|
4238
4327
|
};
|
|
4239
|
-
imports.wbg.
|
|
4240
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4328
|
+
imports.wbg.__wbindgen_closure_wrapper72138 = function(arg0, arg1, arg2) {
|
|
4329
|
+
const ret = makeMutClosure(arg0, arg1, 52468, __wbg_adapter_74);
|
|
4241
4330
|
return ret;
|
|
4242
4331
|
};
|
|
4243
|
-
imports.wbg.
|
|
4244
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4332
|
+
imports.wbg.__wbindgen_closure_wrapper75991 = function(arg0, arg1, arg2) {
|
|
4333
|
+
const ret = makeMutClosure(arg0, arg1, 55693, __wbg_adapter_81);
|
|
4245
4334
|
return ret;
|
|
4246
4335
|
};
|
|
4247
|
-
imports.wbg.
|
|
4248
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4336
|
+
imports.wbg.__wbindgen_closure_wrapper76987 = function(arg0, arg1, arg2) {
|
|
4337
|
+
const ret = makeMutClosure(arg0, arg1, 56059, __wbg_adapter_84);
|
|
4249
4338
|
return ret;
|
|
4250
4339
|
};
|
|
4251
|
-
imports.wbg.
|
|
4252
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4340
|
+
imports.wbg.__wbindgen_closure_wrapper79070 = function(arg0, arg1, arg2) {
|
|
4341
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4253
4342
|
return ret;
|
|
4254
4343
|
};
|
|
4255
|
-
imports.wbg.
|
|
4256
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4344
|
+
imports.wbg.__wbindgen_closure_wrapper79072 = function(arg0, arg1, arg2) {
|
|
4345
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4257
4346
|
return ret;
|
|
4258
4347
|
};
|
|
4259
|
-
imports.wbg.
|
|
4260
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4348
|
+
imports.wbg.__wbindgen_closure_wrapper79074 = function(arg0, arg1, arg2) {
|
|
4349
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4261
4350
|
return ret;
|
|
4262
4351
|
};
|
|
4263
|
-
imports.wbg.
|
|
4264
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4352
|
+
imports.wbg.__wbindgen_closure_wrapper79076 = function(arg0, arg1, arg2) {
|
|
4353
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_94);
|
|
4265
4354
|
return ret;
|
|
4266
4355
|
};
|
|
4267
|
-
imports.wbg.
|
|
4268
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4356
|
+
imports.wbg.__wbindgen_closure_wrapper79078 = function(arg0, arg1, arg2) {
|
|
4357
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4269
4358
|
return ret;
|
|
4270
4359
|
};
|
|
4271
|
-
imports.wbg.
|
|
4272
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4360
|
+
imports.wbg.__wbindgen_closure_wrapper79080 = function(arg0, arg1, arg2) {
|
|
4361
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4273
4362
|
return ret;
|
|
4274
4363
|
};
|
|
4275
|
-
imports.wbg.
|
|
4276
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4364
|
+
imports.wbg.__wbindgen_closure_wrapper79082 = function(arg0, arg1, arg2) {
|
|
4365
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4277
4366
|
return ret;
|
|
4278
4367
|
};
|
|
4279
|
-
imports.wbg.
|
|
4280
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4368
|
+
imports.wbg.__wbindgen_closure_wrapper79084 = function(arg0, arg1, arg2) {
|
|
4369
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_87);
|
|
4281
4370
|
return ret;
|
|
4282
4371
|
};
|
|
4283
|
-
imports.wbg.
|
|
4284
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4372
|
+
imports.wbg.__wbindgen_closure_wrapper79086 = function(arg0, arg1, arg2) {
|
|
4373
|
+
const ret = makeMutClosure(arg0, arg1, 57516, __wbg_adapter_105);
|
|
4285
4374
|
return ret;
|
|
4286
4375
|
};
|
|
4287
4376
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -4680,7 +4769,7 @@ function __wbg_get_imports() {
|
|
|
4680
4769
|
}
|
|
4681
4770
|
|
|
4682
4771
|
function __wbg_init_memory(imports, memory) {
|
|
4683
|
-
imports.wbg.memory = memory || new WebAssembly.Memory({initial:
|
|
4772
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({initial:1017,maximum:65536,shared:true});
|
|
4684
4773
|
}
|
|
4685
4774
|
|
|
4686
4775
|
function __wbg_finalize_init(instance, module, thread_stack_size) {
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export const engine_init: () => any;
|
|
4
4
|
export const engine_run: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
5
5
|
export const init_asset_load_thread: () => void;
|
|
6
|
+
export const image_processor_init: () => void;
|
|
7
|
+
export const image_processor_run: () => any;
|
|
6
8
|
export const op_webstorage_length: (a: number) => number;
|
|
7
9
|
export const op_webstorage_key: (a: number, b: number) => [number, number];
|
|
8
10
|
export const op_webstorage_set: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -104,18 +106,18 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
104
106
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
105
107
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
106
108
|
export const __externref_table_dealloc: (a: number) => void;
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
109
|
+
export const closure15289_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
110
|
+
export const closure48744_externref_shim: (a: number, b: number, c: any) => void;
|
|
109
111
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7aec603de1cde302: (a: number, b: number) => void;
|
|
110
112
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he5b48a15f2311f68: (a: number, b: number) => void;
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
116
|
-
export const
|
|
117
|
-
export const
|
|
118
|
-
export const
|
|
119
|
-
export const
|
|
113
|
+
export const closure52467_externref_shim: (a: number, b: number, c: any) => void;
|
|
114
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha40a927305425e1c: (a: number, b: number) => void;
|
|
115
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7f26d1c7d4ed7f8e: (a: number, b: number) => void;
|
|
116
|
+
export const closure57515_externref_shim: (a: number, b: number, c: any) => void;
|
|
117
|
+
export const closure57521_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
118
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h99bd33b5f9449b5c: (a: number, b: number) => void;
|
|
119
|
+
export const closure117651_externref_shim: (a: number, b: number, c: any) => void;
|
|
120
|
+
export const closure132894_externref_shim: (a: number, b: number, c: any) => void;
|
|
121
|
+
export const closure135798_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
120
122
|
export const __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
121
123
|
export const __wbindgen_start: (a: number) => void;
|