@dcl-regenesislabs/bevy-explorer-web 0.1.0-20834378058.commit-a4dfde8 → 0.1.0-20848715492.commit-17ad725
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/gpu_cache.js +36 -23
- package/index.html +2 -2
- package/main.js +5 -2
- package/package.json +3 -3
- package/pkg/webgpu_build.d.ts +7 -5
- package/pkg/webgpu_build.js +42 -26
- package/pkg/webgpu_build_bg.wasm +0 -0
- package/pkg/webgpu_build_bg.wasm.d.ts +6 -5
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-20848715492.commit-17ad725"
|
package/gpu_cache.js
CHANGED
|
@@ -46,6 +46,30 @@ function openDB() {
|
|
|
46
46
|
return dbPromise;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
async function clearDatabase() {
|
|
50
|
+
const db = await openDB();
|
|
51
|
+
|
|
52
|
+
const tableNames = ["shader", "bindgroup", "layout", "pipeline", "requiredItems"];
|
|
53
|
+
|
|
54
|
+
const tx = db.transaction(tableNames, "readwrite");
|
|
55
|
+
|
|
56
|
+
const clearPromises = tableNames.map(name => {
|
|
57
|
+
const store = tx.objectStore(name);
|
|
58
|
+
const request = store.clear();
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
request.onsuccess = () => resolve(request.result);
|
|
61
|
+
request.onerror = () => reject(request.error);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
await Promise.all(clearPromises);
|
|
66
|
+
await new Promise((resolve, reject) => {
|
|
67
|
+
tx.oncomplete = resolve;
|
|
68
|
+
tx.onabort = reject;
|
|
69
|
+
tx.onerror = reject;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
49
73
|
async function fetchRequiredItems() {
|
|
50
74
|
const db = await openDB();
|
|
51
75
|
return new Promise((resolve) => {
|
|
@@ -108,29 +132,10 @@ async function storeInstance(type, hash, value) {
|
|
|
108
132
|
});
|
|
109
133
|
}
|
|
110
134
|
|
|
111
|
-
async function
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const tx = await db.transaction("rqeuiredItems", "readwrite");
|
|
115
|
-
await tx.objectStore("requiredItems").clear();
|
|
116
|
-
|
|
117
|
-
const clearPromises = storeNames.map((name) => {
|
|
118
|
-
const tx = db.transaction(name, "readwrite");
|
|
119
|
-
return new Promise((resolve, reject) => {
|
|
120
|
-
const request = tx.objectStore(name).clear();
|
|
121
|
-
request.onsuccess = () => resolve();
|
|
122
|
-
request.onerror = () => reject(request.error);
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// Wait for all clear operations to complete
|
|
127
|
-
await Promise.all(clearPromises);
|
|
128
|
-
await tx.done;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export async function initGpuCache() {
|
|
135
|
+
export async function initGpuCache(key) {
|
|
136
|
+
console.log(`[GPU Cache] key: ${key}`);
|
|
132
137
|
patchWebgpuAdater();
|
|
133
|
-
await createGpuCache();
|
|
138
|
+
await createGpuCache(key);
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
function patchWebgpuAdater() {
|
|
@@ -210,7 +215,15 @@ function patchWebgpuAdater() {
|
|
|
210
215
|
};
|
|
211
216
|
}
|
|
212
217
|
|
|
213
|
-
async function createGpuCache() {
|
|
218
|
+
async function createGpuCache(key) {
|
|
219
|
+
const cachedKey = localStorage.getItem("gpuCacheKey");
|
|
220
|
+
if (cachedKey != key) {
|
|
221
|
+
console.log("shaders updated, clearing db");
|
|
222
|
+
await clearDatabase();
|
|
223
|
+
localStorage.setItem("gpuCacheKey", key);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
|
|
214
227
|
const cachedDeviceDescriptor = localStorage.getItem("deviceDescriptor");
|
|
215
228
|
if (cachedDeviceDescriptor === null) {
|
|
216
229
|
return;
|
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-20848715492.commit-17ad725";</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-20848715492.commit-17ad725/main.js"></script>
|
|
139
139
|
</body>
|
|
140
140
|
</html>
|
package/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Import the wasm-bindgen generated JS glue code and Rust functions
|
|
2
2
|
import { initGpuCache } from "./gpu_cache.js";
|
|
3
|
-
import init, { engine_init, engine_run } from "./pkg/webgpu_build.js"; // Ensure this path is correct
|
|
3
|
+
import init, { engine_init, engine_run, gpu_cache_hash } from "./pkg/webgpu_build.js"; // Ensure this path is correct
|
|
4
4
|
|
|
5
5
|
const initialRealmInput = document.getElementById("initialRealm");
|
|
6
6
|
const locationInput = document.getElementById("location");
|
|
@@ -309,7 +309,10 @@ function start() {
|
|
|
309
309
|
|
|
310
310
|
initButton.onclick = start;
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
initEngine()
|
|
313
|
+
.then(() => {
|
|
314
|
+
initGpuCache(gpu_cache_hash())
|
|
315
|
+
})
|
|
313
316
|
.then(() => {
|
|
314
317
|
if (autoStart) {
|
|
315
318
|
start()
|
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-20848715492.commit-17ad725",
|
|
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-20848715492.commit-17ad725",
|
|
12
|
+
"commit": "17ad725b0eb758cb1cb3633df795f3bff4b2977b"
|
|
13
13
|
}
|
package/pkg/webgpu_build.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export function op_take_and_compare_snapshot(state: WorkerContext, name: string,
|
|
|
97
97
|
export function op_portable_spawn(state: WorkerContext, pid?: string | null, ens?: string | null): Promise<any>;
|
|
98
98
|
export function op_portable_kill(state: WorkerContext, pid: string): Promise<boolean>;
|
|
99
99
|
export function op_portable_list(state: WorkerContext): Promise<any[]>;
|
|
100
|
+
export function gpu_cache_hash(): string;
|
|
100
101
|
export class WorkerContext {
|
|
101
102
|
private constructor();
|
|
102
103
|
free(): void;
|
|
@@ -202,6 +203,7 @@ export interface InitOutput {
|
|
|
202
203
|
readonly op_webstorage_set: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
203
204
|
readonly wasm_init_scene: () => any;
|
|
204
205
|
readonly workercontext_get_source: (a: number) => any;
|
|
206
|
+
readonly gpu_cache_hash: () => [number, number];
|
|
205
207
|
readonly __externref_table_alloc: () => number;
|
|
206
208
|
readonly __wbindgen_export_1: WebAssembly.Table;
|
|
207
209
|
readonly memory: WebAssembly.Memory;
|
|
@@ -214,14 +216,14 @@ export interface InitOutput {
|
|
|
214
216
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
215
217
|
readonly closure15320_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
216
218
|
readonly closure48564_externref_shim: (a: number, b: number, c: any) => void;
|
|
217
|
-
readonly
|
|
218
|
-
readonly
|
|
219
|
+
readonly _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
|
|
220
|
+
readonly _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______14: (a: number, b: number) => void;
|
|
219
221
|
readonly closure52218_externref_shim: (a: number, b: number, c: any) => void;
|
|
220
|
-
readonly
|
|
221
|
-
readonly
|
|
222
|
+
readonly _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______16: (a: number, b: number) => void;
|
|
223
|
+
readonly _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______17: (a: number, b: number) => void;
|
|
222
224
|
readonly closure57278_externref_shim: (a: number, b: number, c: any) => void;
|
|
223
225
|
readonly closure57282_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
224
|
-
readonly
|
|
226
|
+
readonly _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______20: (a: number, b: number) => void;
|
|
225
227
|
readonly closure116758_externref_shim: (a: number, b: number, c: any) => void;
|
|
226
228
|
readonly closure131786_externref_shim: (a: number, b: number, c: any) => void;
|
|
227
229
|
readonly closure134682_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
package/pkg/webgpu_build.js
CHANGED
|
@@ -1349,6 +1349,22 @@ export function op_portable_list(state) {
|
|
|
1349
1349
|
return ret;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
|
+
/**
|
|
1353
|
+
* @returns {string}
|
|
1354
|
+
*/
|
|
1355
|
+
export function gpu_cache_hash() {
|
|
1356
|
+
let deferred1_0;
|
|
1357
|
+
let deferred1_1;
|
|
1358
|
+
try {
|
|
1359
|
+
const ret = wasm.gpu_cache_hash();
|
|
1360
|
+
deferred1_0 = ret[0];
|
|
1361
|
+
deferred1_1 = ret[1];
|
|
1362
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1363
|
+
} finally {
|
|
1364
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1352
1368
|
function __wbg_adapter_62(arg0, arg1, arg2, arg3) {
|
|
1353
1369
|
wasm.closure15320_externref_shim(arg0, arg1, arg2, arg3);
|
|
1354
1370
|
}
|
|
@@ -1358,11 +1374,11 @@ function __wbg_adapter_65(arg0, arg1, arg2) {
|
|
|
1358
1374
|
}
|
|
1359
1375
|
|
|
1360
1376
|
function __wbg_adapter_68(arg0, arg1) {
|
|
1361
|
-
wasm.
|
|
1377
|
+
wasm._dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______(arg0, arg1);
|
|
1362
1378
|
}
|
|
1363
1379
|
|
|
1364
1380
|
function __wbg_adapter_71(arg0, arg1) {
|
|
1365
|
-
wasm.
|
|
1381
|
+
wasm._dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______14(arg0, arg1);
|
|
1366
1382
|
}
|
|
1367
1383
|
|
|
1368
1384
|
function __wbg_adapter_74(arg0, arg1, arg2) {
|
|
@@ -1370,11 +1386,11 @@ function __wbg_adapter_74(arg0, arg1, arg2) {
|
|
|
1370
1386
|
}
|
|
1371
1387
|
|
|
1372
1388
|
function __wbg_adapter_81(arg0, arg1) {
|
|
1373
|
-
wasm.
|
|
1389
|
+
wasm._dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______16(arg0, arg1);
|
|
1374
1390
|
}
|
|
1375
1391
|
|
|
1376
1392
|
function __wbg_adapter_84(arg0, arg1) {
|
|
1377
|
-
wasm.
|
|
1393
|
+
wasm._dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______17(arg0, arg1);
|
|
1378
1394
|
}
|
|
1379
1395
|
|
|
1380
1396
|
function __wbg_adapter_87(arg0, arg1, arg2) {
|
|
@@ -1386,7 +1402,7 @@ function __wbg_adapter_90(arg0, arg1, arg2, arg3) {
|
|
|
1386
1402
|
}
|
|
1387
1403
|
|
|
1388
1404
|
function __wbg_adapter_105(arg0, arg1) {
|
|
1389
|
-
wasm.
|
|
1405
|
+
wasm._dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______20(arg0, arg1);
|
|
1390
1406
|
}
|
|
1391
1407
|
|
|
1392
1408
|
function __wbg_adapter_108(arg0, arg1, arg2) {
|
|
@@ -1397,7 +1413,7 @@ function __wbg_adapter_111(arg0, arg1, arg2) {
|
|
|
1397
1413
|
wasm.closure131786_externref_shim(arg0, arg1, arg2);
|
|
1398
1414
|
}
|
|
1399
1415
|
|
|
1400
|
-
function
|
|
1416
|
+
function __wbg_adapter_1524(arg0, arg1, arg2, arg3) {
|
|
1401
1417
|
wasm.closure134682_externref_shim(arg0, arg1, arg2, arg3);
|
|
1402
1418
|
}
|
|
1403
1419
|
|
|
@@ -2719,7 +2735,7 @@ function __wbg_get_imports() {
|
|
|
2719
2735
|
const a = state0.a;
|
|
2720
2736
|
state0.a = 0;
|
|
2721
2737
|
try {
|
|
2722
|
-
return
|
|
2738
|
+
return __wbg_adapter_1524(a, state0.b, arg0, arg1);
|
|
2723
2739
|
} finally {
|
|
2724
2740
|
state0.a = a;
|
|
2725
2741
|
}
|
|
@@ -4289,15 +4305,15 @@ function __wbg_get_imports() {
|
|
|
4289
4305
|
const ret = false;
|
|
4290
4306
|
return ret;
|
|
4291
4307
|
};
|
|
4292
|
-
imports.wbg.
|
|
4308
|
+
imports.wbg.__wbindgen_closure_wrapper147927 = function(arg0, arg1, arg2) {
|
|
4293
4309
|
const ret = makeMutClosure(arg0, arg1, 116759, __wbg_adapter_108);
|
|
4294
4310
|
return ret;
|
|
4295
4311
|
};
|
|
4296
|
-
imports.wbg.
|
|
4312
|
+
imports.wbg.__wbindgen_closure_wrapper168484 = function(arg0, arg1, arg2) {
|
|
4297
4313
|
const ret = makeMutClosure(arg0, arg1, 131787, __wbg_adapter_111);
|
|
4298
4314
|
return ret;
|
|
4299
4315
|
};
|
|
4300
|
-
imports.wbg.
|
|
4316
|
+
imports.wbg.__wbindgen_closure_wrapper168486 = function(arg0, arg1, arg2) {
|
|
4301
4317
|
const ret = makeMutClosure(arg0, arg1, 131787, __wbg_adapter_111);
|
|
4302
4318
|
return ret;
|
|
4303
4319
|
};
|
|
@@ -4305,27 +4321,27 @@ function __wbg_get_imports() {
|
|
|
4305
4321
|
const ret = makeMutClosure(arg0, arg1, 15321, __wbg_adapter_62);
|
|
4306
4322
|
return ret;
|
|
4307
4323
|
};
|
|
4308
|
-
imports.wbg.
|
|
4324
|
+
imports.wbg.__wbindgen_closure_wrapper64418 = function(arg0, arg1, arg2) {
|
|
4309
4325
|
const ret = makeMutClosure(arg0, arg1, 48565, __wbg_adapter_65);
|
|
4310
4326
|
return ret;
|
|
4311
4327
|
};
|
|
4312
|
-
imports.wbg.
|
|
4328
|
+
imports.wbg.__wbindgen_closure_wrapper64557 = function(arg0, arg1, arg2) {
|
|
4313
4329
|
const ret = makeMutClosure(arg0, arg1, 48668, __wbg_adapter_68);
|
|
4314
4330
|
return ret;
|
|
4315
4331
|
};
|
|
4316
|
-
imports.wbg.
|
|
4332
|
+
imports.wbg.__wbindgen_closure_wrapper68377 = function(arg0, arg1, arg2) {
|
|
4317
4333
|
const ret = makeMutClosure(arg0, arg1, 51605, __wbg_adapter_71);
|
|
4318
4334
|
return ret;
|
|
4319
4335
|
};
|
|
4320
|
-
imports.wbg.
|
|
4336
|
+
imports.wbg.__wbindgen_closure_wrapper69575 = function(arg0, arg1, arg2) {
|
|
4321
4337
|
const ret = makeMutClosure(arg0, arg1, 52219, __wbg_adapter_74);
|
|
4322
4338
|
return ret;
|
|
4323
4339
|
};
|
|
4324
|
-
imports.wbg.
|
|
4340
|
+
imports.wbg.__wbindgen_closure_wrapper69577 = function(arg0, arg1, arg2) {
|
|
4325
4341
|
const ret = makeMutClosure(arg0, arg1, 52219, __wbg_adapter_74);
|
|
4326
4342
|
return ret;
|
|
4327
4343
|
};
|
|
4328
|
-
imports.wbg.
|
|
4344
|
+
imports.wbg.__wbindgen_closure_wrapper69579 = function(arg0, arg1, arg2) {
|
|
4329
4345
|
const ret = makeMutClosure(arg0, arg1, 52219, __wbg_adapter_74);
|
|
4330
4346
|
return ret;
|
|
4331
4347
|
};
|
|
@@ -4333,43 +4349,43 @@ function __wbg_get_imports() {
|
|
|
4333
4349
|
const ret = makeMutClosure(arg0, arg1, 55453, __wbg_adapter_81);
|
|
4334
4350
|
return ret;
|
|
4335
4351
|
};
|
|
4336
|
-
imports.wbg.
|
|
4352
|
+
imports.wbg.__wbindgen_closure_wrapper75094 = function(arg0, arg1, arg2) {
|
|
4337
4353
|
const ret = makeMutClosure(arg0, arg1, 55819, __wbg_adapter_84);
|
|
4338
4354
|
return ret;
|
|
4339
4355
|
};
|
|
4340
|
-
imports.wbg.
|
|
4356
|
+
imports.wbg.__wbindgen_closure_wrapper77239 = function(arg0, arg1, arg2) {
|
|
4341
4357
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4342
4358
|
return ret;
|
|
4343
4359
|
};
|
|
4344
|
-
imports.wbg.
|
|
4360
|
+
imports.wbg.__wbindgen_closure_wrapper77241 = function(arg0, arg1, arg2) {
|
|
4345
4361
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_90);
|
|
4346
4362
|
return ret;
|
|
4347
4363
|
};
|
|
4348
|
-
imports.wbg.
|
|
4364
|
+
imports.wbg.__wbindgen_closure_wrapper77243 = function(arg0, arg1, arg2) {
|
|
4349
4365
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4350
4366
|
return ret;
|
|
4351
4367
|
};
|
|
4352
|
-
imports.wbg.
|
|
4368
|
+
imports.wbg.__wbindgen_closure_wrapper77245 = function(arg0, arg1, arg2) {
|
|
4353
4369
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4354
4370
|
return ret;
|
|
4355
4371
|
};
|
|
4356
|
-
imports.wbg.
|
|
4372
|
+
imports.wbg.__wbindgen_closure_wrapper77247 = function(arg0, arg1, arg2) {
|
|
4357
4373
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4358
4374
|
return ret;
|
|
4359
4375
|
};
|
|
4360
|
-
imports.wbg.
|
|
4376
|
+
imports.wbg.__wbindgen_closure_wrapper77249 = function(arg0, arg1, arg2) {
|
|
4361
4377
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4362
4378
|
return ret;
|
|
4363
4379
|
};
|
|
4364
|
-
imports.wbg.
|
|
4380
|
+
imports.wbg.__wbindgen_closure_wrapper77251 = function(arg0, arg1, arg2) {
|
|
4365
4381
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4366
4382
|
return ret;
|
|
4367
4383
|
};
|
|
4368
|
-
imports.wbg.
|
|
4384
|
+
imports.wbg.__wbindgen_closure_wrapper77253 = function(arg0, arg1, arg2) {
|
|
4369
4385
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_87);
|
|
4370
4386
|
return ret;
|
|
4371
4387
|
};
|
|
4372
|
-
imports.wbg.
|
|
4388
|
+
imports.wbg.__wbindgen_closure_wrapper77255 = function(arg0, arg1, arg2) {
|
|
4373
4389
|
const ret = makeMutClosure(arg0, arg1, 57279, __wbg_adapter_105);
|
|
4374
4390
|
return ret;
|
|
4375
4391
|
};
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|
|
@@ -96,6 +96,7 @@ export const op_webstorage_remove: (a: number, b: number, c: number) => void;
|
|
|
96
96
|
export const op_webstorage_set: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
97
97
|
export const wasm_init_scene: () => any;
|
|
98
98
|
export const workercontext_get_source: (a: number) => any;
|
|
99
|
+
export const gpu_cache_hash: () => [number, number];
|
|
99
100
|
export const __externref_table_alloc: () => number;
|
|
100
101
|
export const __wbindgen_export_1: WebAssembly.Table;
|
|
101
102
|
export const memory: WebAssembly.Memory;
|
|
@@ -108,14 +109,14 @@ export const __externref_table_dealloc: (a: number) => void;
|
|
|
108
109
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
109
110
|
export const closure15320_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
110
111
|
export const closure48564_externref_shim: (a: number, b: number, c: any) => void;
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
112
|
+
export const _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
|
|
113
|
+
export const _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______14: (a: number, b: number) => void;
|
|
113
114
|
export const closure52218_externref_shim: (a: number, b: number, c: any) => void;
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
115
|
+
export const _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______16: (a: number, b: number) => void;
|
|
116
|
+
export const _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______17: (a: number, b: number) => void;
|
|
116
117
|
export const closure57278_externref_shim: (a: number, b: number, c: any) => void;
|
|
117
118
|
export const closure57282_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
118
|
-
export const
|
|
119
|
+
export const _dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output______as_wasm_bindgen_654c7ee7fd766678___closure__WasmClosure___describe__invoke______20: (a: number, b: number) => void;
|
|
119
120
|
export const closure116758_externref_shim: (a: number, b: number, c: any) => void;
|
|
120
121
|
export const closure131786_externref_shim: (a: number, b: number, c: any) => void;
|
|
121
122
|
export const closure134682_externref_shim: (a: number, b: number, c: any, d: any) => void;
|