@dcl-regenesislabs/bevy-explorer-web 0.1.0-19073309167.commit-1bfa906 → 0.1.0-19141749104.commit-4cb518c
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/index.html +8 -3
- package/main.js +49 -8
- package/package.json +3 -3
- package/pkg/webgpu_build.d.ts +14 -10
- package/pkg/webgpu_build.js +92 -54
- package/pkg/webgpu_build_bg.wasm +0 -0
- package/pkg/webgpu_build_bg.wasm.d.ts +11 -9
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-19141749104.commit-4cb518c"
|
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-19141749104.commit-4cb518c";</script>
|
|
105
105
|
</head>
|
|
106
106
|
<body>
|
|
107
107
|
<div id="header" class="container">
|
|
@@ -118,10 +118,15 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div class="input-group">
|
|
121
|
-
<label for="
|
|
121
|
+
<label for="systemScene">System Scene:</label>
|
|
122
122
|
<input type="text" id="systemScene" name="systemScene" placeholder="">
|
|
123
123
|
</div>
|
|
124
124
|
|
|
125
|
+
<div class="input-group">
|
|
126
|
+
<label for="preview">Preview Mode: </label>
|
|
127
|
+
<input type="checkbox" id="preview" name="preview">
|
|
128
|
+
</div>
|
|
129
|
+
|
|
125
130
|
<button id="initButton" disabled="true">Loading...</button>
|
|
126
131
|
|
|
127
132
|
</div>
|
|
@@ -130,6 +135,6 @@
|
|
|
130
135
|
</div>
|
|
131
136
|
<script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
|
|
132
137
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
|
|
133
|
-
<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-19141749104.commit-4cb518c/main.js"></script>
|
|
134
139
|
</body>
|
|
135
140
|
</html>
|
package/main.js
CHANGED
|
@@ -5,16 +5,16 @@ import init, { engine_init, engine_run } from "./pkg/webgpu_build.js"; // Ensure
|
|
|
5
5
|
const initialRealmInput = document.getElementById("initialRealm");
|
|
6
6
|
const locationInput = document.getElementById("location");
|
|
7
7
|
const systemSceneInput = document.getElementById("systemScene");
|
|
8
|
+
const previewInput = document.getElementById("preview");
|
|
8
9
|
const initButton = document.getElementById("initButton");
|
|
9
10
|
const canvas = document.getElementById("canvas-parent");
|
|
10
11
|
const header = document.getElementById("header");
|
|
11
12
|
|
|
12
|
-
let initialRealmGroup = document.getElementById("initialRealm")?.parentElement;
|
|
13
|
-
let locationGroup = document.getElementById("location")?.parentElement;
|
|
14
|
-
let systemSceneGroup = document.getElementById("systemScene")?.parentElement;
|
|
15
|
-
|
|
16
13
|
var autoStart = true;
|
|
17
14
|
|
|
15
|
+
const DEFAULT_SERVER = "https://realm-provider-ea.decentraland.org/main"
|
|
16
|
+
const DEFAULT_SYSTEMSCENE = "https://dclexplorer.github.io/bevy-ui-scene/BevyUiScene"
|
|
17
|
+
|
|
18
18
|
function populateInputsFromQueryParams() {
|
|
19
19
|
const queryParams = new URLSearchParams(window.location.search);
|
|
20
20
|
|
|
@@ -27,24 +27,34 @@ function populateInputsFromQueryParams() {
|
|
|
27
27
|
if (initialRealmInput && initialRealmParam) {
|
|
28
28
|
initialRealmInput.value = decodeURIComponent(initialRealmParam);
|
|
29
29
|
} else if (initialRealmInput) {
|
|
30
|
-
initialRealmInput.value =
|
|
30
|
+
initialRealmInput.value = DEFAULT_SERVER;
|
|
31
31
|
}
|
|
32
|
+
|
|
32
33
|
const locationParam = queryParams.get("location");
|
|
33
34
|
if (locationInput && locationParam) {
|
|
34
35
|
locationInput.value = decodeURIComponent(locationParam);
|
|
35
36
|
} else if (locationInput) {
|
|
36
37
|
locationInput.value = "";
|
|
37
38
|
}
|
|
39
|
+
|
|
38
40
|
const systemSceneParam = queryParams.get("systemScene");
|
|
39
41
|
if (systemSceneInput && systemSceneParam) {
|
|
40
42
|
systemSceneInput.value = decodeURIComponent(systemSceneParam);
|
|
41
43
|
} else if (systemSceneInput) {
|
|
42
|
-
systemSceneInput.value =
|
|
44
|
+
systemSceneInput.value = DEFAULT_SYSTEMSCENE;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const previewParam = queryParams.get("preview");
|
|
48
|
+
if (previewInput && previewParam) {
|
|
49
|
+
previewInput.checked = true;
|
|
50
|
+
} else if (previewInput) {
|
|
51
|
+
previewInput.checked = false;
|
|
43
52
|
}
|
|
44
53
|
|
|
45
54
|
initialRealmInput.disabled = autoStart;
|
|
46
55
|
locationInput.disabled = autoStart;
|
|
47
56
|
systemSceneInput.disabled = autoStart;
|
|
57
|
+
previewInput.disabled = autoStart;
|
|
48
58
|
}
|
|
49
59
|
function hideHeader() {
|
|
50
60
|
if (header) header.style.display = "none";
|
|
@@ -227,7 +237,7 @@ async function initEngine() {
|
|
|
227
237
|
await new Promise((resolve, _reject) => {
|
|
228
238
|
const basePath = window.location.pathname.replace(/\/$/, ''); // removes trailing slash if present
|
|
229
239
|
const assetLoaderPath = new URL(`${basePath}/asset_loader.js`, window.location.origin);
|
|
230
|
-
|
|
240
|
+
|
|
231
241
|
const assetLoader = new Worker(assetLoaderPath, { type: "module" });
|
|
232
242
|
assetLoader.onmessage = (workerEvent) => {
|
|
233
243
|
if (workerEvent.data.type === "READY") {
|
|
@@ -259,6 +269,7 @@ function start() {
|
|
|
259
269
|
const initialRealm = initialRealmInput.value;
|
|
260
270
|
const location = locationInput.value;
|
|
261
271
|
const systemScene = systemSceneInput.value;
|
|
272
|
+
const preview = previewInput.checked;
|
|
262
273
|
console.log(
|
|
263
274
|
`[Main JS] "Go" button clicked. Initial Realm: "${initialRealm}", Location: "${location}", System Scene: "${systemScene}"`
|
|
264
275
|
);
|
|
@@ -271,7 +282,7 @@ function start() {
|
|
|
271
282
|
return "unknown";
|
|
272
283
|
})();
|
|
273
284
|
|
|
274
|
-
engine_run(platform, initialRealm, location, systemScene, true, 1e6);
|
|
285
|
+
engine_run(platform, initialRealm, location, systemScene, true, preview, 1e6);
|
|
275
286
|
}
|
|
276
287
|
|
|
277
288
|
initButton.onclick = start;
|
|
@@ -290,3 +301,33 @@ Promise.all([initEngine(), initGpuCache()])
|
|
|
290
301
|
initButton.textContent = "Load Failed";
|
|
291
302
|
});
|
|
292
303
|
|
|
304
|
+
window.set_url_params = (x, y, server, system_scene, preview) => {
|
|
305
|
+
try {
|
|
306
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
307
|
+
|
|
308
|
+
urlParams.set("location", `${x},${y}`);
|
|
309
|
+
|
|
310
|
+
if (server != DEFAULT_SERVER) {
|
|
311
|
+
urlParams.set("initialServer", realm);
|
|
312
|
+
} else {
|
|
313
|
+
urlParams.delete("initialServer");
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (system_scene != DEFAULT_SYSTEMSCENE) {
|
|
317
|
+
urlParams.set("systemScene", system_scene);
|
|
318
|
+
} else {
|
|
319
|
+
urlParams.delete("systemScene");
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (preview) {
|
|
323
|
+
urlParams.set("preview", true);
|
|
324
|
+
} else {
|
|
325
|
+
urlParams.delete("preview");
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const newPath = window.location.pathname + '?' + urlParams.toString();
|
|
329
|
+
history.replaceState(null, '', newPath);
|
|
330
|
+
} catch (e) {
|
|
331
|
+
console.log(`set url params failed: ${e}`);
|
|
332
|
+
}
|
|
333
|
+
}
|
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-19141749104.commit-4cb518c",
|
|
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-19141749104.commit-4cb518c",
|
|
12
|
+
"commit": "4cb518c00c26912fe3cf42cf2065ee4c7bb9e43a"
|
|
13
13
|
}
|
package/pkg/webgpu_build.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function init_asset_load_thread(): void;
|
|
7
7
|
export function engine_init(): Promise<any>;
|
|
8
|
-
export function engine_run(platform: string, realm: string, location: string, system_scene: string, with_thread_loader: boolean, rabpf: number): void;
|
|
8
|
+
export function engine_run(platform: string, realm: string, location: string, system_scene: string, with_thread_loader: boolean, preview: boolean, rabpf: number): void;
|
|
9
9
|
export function op_webstorage_length(state: WorkerContext): number;
|
|
10
10
|
export function op_webstorage_key(state: WorkerContext, index: number): string | undefined;
|
|
11
11
|
export function op_webstorage_set(state: WorkerContext, key_name: string, value: string): void;
|
|
@@ -79,6 +79,8 @@ export function op_set_permanent_permission(state: WorkerContext, level: string,
|
|
|
79
79
|
export function op_get_permanent_permissions(state: WorkerContext, level: string, value?: string | null): Promise<Array<any>>;
|
|
80
80
|
export function op_get_permission_types(arg0: WorkerContext): Array<any>;
|
|
81
81
|
export function op_set_interactable_area(state: WorkerContext, left: number, top: number, right: number, bottom: number): void;
|
|
82
|
+
export function op_get_mic_state(state: WorkerContext): Promise<any>;
|
|
83
|
+
export function op_set_mic_enabled(state: WorkerContext, enabled: boolean): Promise<void>;
|
|
82
84
|
export function op_testing_enabled(op_state: WorkerContext): boolean;
|
|
83
85
|
export function op_log_test_plan(state: WorkerContext, body: any): void;
|
|
84
86
|
export function op_log_test_result(state: WorkerContext, body: any): void;
|
|
@@ -101,7 +103,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
101
103
|
|
|
102
104
|
export interface InitOutput {
|
|
103
105
|
readonly engine_init: () => any;
|
|
104
|
-
readonly engine_run: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
106
|
+
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;
|
|
105
107
|
readonly init_asset_load_thread: () => void;
|
|
106
108
|
readonly op_webstorage_length: (a: number) => number;
|
|
107
109
|
readonly op_webstorage_key: (a: number, b: number) => [number, number];
|
|
@@ -176,6 +178,8 @@ export interface InitOutput {
|
|
|
176
178
|
readonly op_get_permanent_permissions: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
177
179
|
readonly op_get_permission_types: (a: number) => any;
|
|
178
180
|
readonly op_set_interactable_area: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
181
|
+
readonly op_get_mic_state: (a: number) => any;
|
|
182
|
+
readonly op_set_mic_enabled: (a: number, b: number) => any;
|
|
179
183
|
readonly op_testing_enabled: (a: number) => number;
|
|
180
184
|
readonly op_log_test_plan: (a: number, b: any) => void;
|
|
181
185
|
readonly op_log_test_result: (a: number, b: any) => void;
|
|
@@ -200,19 +204,19 @@ export interface InitOutput {
|
|
|
200
204
|
readonly __wbindgen_export_7: WebAssembly.Table;
|
|
201
205
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
202
206
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
207
|
+
readonly closure15251_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
208
|
+
readonly closure47651_externref_shim: (a: number, b: number, c: any) => void;
|
|
205
209
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf6d1d6eca19ebd1: (a: number, b: number) => void;
|
|
206
210
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88ef16e697def3fb: (a: number, b: number) => void;
|
|
207
|
-
readonly
|
|
211
|
+
readonly closure51473_externref_shim: (a: number, b: number, c: any) => void;
|
|
208
212
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9bfa50ac2770910f: (a: number, b: number) => void;
|
|
209
213
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heedd0a6395901798: (a: number, b: number) => void;
|
|
210
|
-
readonly
|
|
214
|
+
readonly closure56516_externref_shim: (a: number, b: number, c: any) => void;
|
|
211
215
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0c78161a9a71767b: (a: number, b: number) => void;
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
+
readonly closure56529_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
217
|
+
readonly closure116689_externref_shim: (a: number, b: number, c: any) => void;
|
|
218
|
+
readonly closure131720_externref_shim: (a: number, b: number, c: any) => void;
|
|
219
|
+
readonly closure134624_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
216
220
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
217
221
|
readonly __wbindgen_start: (a: number) => void;
|
|
218
222
|
}
|
package/pkg/webgpu_build.js
CHANGED
|
@@ -236,9 +236,10 @@ export function engine_init() {
|
|
|
236
236
|
* @param {string} location
|
|
237
237
|
* @param {string} system_scene
|
|
238
238
|
* @param {boolean} with_thread_loader
|
|
239
|
+
* @param {boolean} preview
|
|
239
240
|
* @param {number} rabpf
|
|
240
241
|
*/
|
|
241
|
-
export function engine_run(platform, realm, location, system_scene, with_thread_loader, rabpf) {
|
|
242
|
+
export function engine_run(platform, realm, location, system_scene, with_thread_loader, preview, rabpf) {
|
|
242
243
|
const ptr0 = passStringToWasm0(platform, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
243
244
|
const len0 = WASM_VECTOR_LEN;
|
|
244
245
|
const ptr1 = passStringToWasm0(realm, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -247,7 +248,7 @@ export function engine_run(platform, realm, location, system_scene, with_thread_
|
|
|
247
248
|
const len2 = WASM_VECTOR_LEN;
|
|
248
249
|
const ptr3 = passStringToWasm0(system_scene, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
250
|
const len3 = WASM_VECTOR_LEN;
|
|
250
|
-
wasm.engine_run(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, with_thread_loader, rabpf);
|
|
251
|
+
wasm.engine_run(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, with_thread_loader, preview, rabpf);
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
function _assertClass(instance, klass) {
|
|
@@ -1148,6 +1149,27 @@ export function op_set_interactable_area(state, left, top, right, bottom) {
|
|
|
1148
1149
|
wasm.op_set_interactable_area(state.__wbg_ptr, left, top, right, bottom);
|
|
1149
1150
|
}
|
|
1150
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* @param {WorkerContext} state
|
|
1154
|
+
* @returns {Promise<any>}
|
|
1155
|
+
*/
|
|
1156
|
+
export function op_get_mic_state(state) {
|
|
1157
|
+
_assertClass(state, WorkerContext);
|
|
1158
|
+
const ret = wasm.op_get_mic_state(state.__wbg_ptr);
|
|
1159
|
+
return ret;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* @param {WorkerContext} state
|
|
1164
|
+
* @param {boolean} enabled
|
|
1165
|
+
* @returns {Promise<void>}
|
|
1166
|
+
*/
|
|
1167
|
+
export function op_set_mic_enabled(state, enabled) {
|
|
1168
|
+
_assertClass(state, WorkerContext);
|
|
1169
|
+
const ret = wasm.op_set_mic_enabled(state.__wbg_ptr, enabled);
|
|
1170
|
+
return ret;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1151
1173
|
/**
|
|
1152
1174
|
* @param {WorkerContext} op_state
|
|
1153
1175
|
* @returns {boolean}
|
|
@@ -1294,11 +1316,11 @@ export function is_super(state) {
|
|
|
1294
1316
|
}
|
|
1295
1317
|
|
|
1296
1318
|
function __wbg_adapter_62(arg0, arg1, arg2, arg3) {
|
|
1297
|
-
wasm.
|
|
1319
|
+
wasm.closure15251_externref_shim(arg0, arg1, arg2, arg3);
|
|
1298
1320
|
}
|
|
1299
1321
|
|
|
1300
1322
|
function __wbg_adapter_65(arg0, arg1, arg2) {
|
|
1301
|
-
wasm.
|
|
1323
|
+
wasm.closure47651_externref_shim(arg0, arg1, arg2);
|
|
1302
1324
|
}
|
|
1303
1325
|
|
|
1304
1326
|
function __wbg_adapter_68(arg0, arg1) {
|
|
@@ -1310,7 +1332,7 @@ function __wbg_adapter_71(arg0, arg1) {
|
|
|
1310
1332
|
}
|
|
1311
1333
|
|
|
1312
1334
|
function __wbg_adapter_74(arg0, arg1, arg2) {
|
|
1313
|
-
wasm.
|
|
1335
|
+
wasm.closure51473_externref_shim(arg0, arg1, arg2);
|
|
1314
1336
|
}
|
|
1315
1337
|
|
|
1316
1338
|
function __wbg_adapter_81(arg0, arg1) {
|
|
@@ -1322,7 +1344,7 @@ function __wbg_adapter_84(arg0, arg1) {
|
|
|
1322
1344
|
}
|
|
1323
1345
|
|
|
1324
1346
|
function __wbg_adapter_87(arg0, arg1, arg2) {
|
|
1325
|
-
wasm.
|
|
1347
|
+
wasm.closure56516_externref_shim(arg0, arg1, arg2);
|
|
1326
1348
|
}
|
|
1327
1349
|
|
|
1328
1350
|
function __wbg_adapter_98(arg0, arg1) {
|
|
@@ -1330,19 +1352,19 @@ function __wbg_adapter_98(arg0, arg1) {
|
|
|
1330
1352
|
}
|
|
1331
1353
|
|
|
1332
1354
|
function __wbg_adapter_105(arg0, arg1, arg2, arg3) {
|
|
1333
|
-
wasm.
|
|
1355
|
+
wasm.closure56529_externref_shim(arg0, arg1, arg2, arg3);
|
|
1334
1356
|
}
|
|
1335
1357
|
|
|
1336
1358
|
function __wbg_adapter_108(arg0, arg1, arg2) {
|
|
1337
|
-
wasm.
|
|
1359
|
+
wasm.closure116689_externref_shim(arg0, arg1, arg2);
|
|
1338
1360
|
}
|
|
1339
1361
|
|
|
1340
1362
|
function __wbg_adapter_111(arg0, arg1, arg2) {
|
|
1341
|
-
wasm.
|
|
1363
|
+
wasm.closure131720_externref_shim(arg0, arg1, arg2);
|
|
1342
1364
|
}
|
|
1343
1365
|
|
|
1344
|
-
function
|
|
1345
|
-
wasm.
|
|
1366
|
+
function __wbg_adapter_1523(arg0, arg1, arg2, arg3) {
|
|
1367
|
+
wasm.closure134624_externref_shim(arg0, arg1, arg2, arg3);
|
|
1346
1368
|
}
|
|
1347
1369
|
|
|
1348
1370
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -2639,7 +2661,7 @@ function __wbg_get_imports() {
|
|
|
2639
2661
|
const a = state0.a;
|
|
2640
2662
|
state0.a = 0;
|
|
2641
2663
|
try {
|
|
2642
|
-
return
|
|
2664
|
+
return __wbg_adapter_1523(a, state0.b, arg0, arg1);
|
|
2643
2665
|
} finally {
|
|
2644
2666
|
state0.a = a;
|
|
2645
2667
|
}
|
|
@@ -3737,6 +3759,22 @@ function __wbg_get_imports() {
|
|
|
3737
3759
|
imports.wbg.__wbg_settype_b4b2fc6fbad39aeb = function(arg0, arg1) {
|
|
3738
3760
|
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
3739
3761
|
};
|
|
3762
|
+
imports.wbg.__wbg_seturlparams_954efdcc1f22d897 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
3763
|
+
let deferred0_0;
|
|
3764
|
+
let deferred0_1;
|
|
3765
|
+
try {
|
|
3766
|
+
deferred0_0 = arg2;
|
|
3767
|
+
deferred0_1 = arg3;
|
|
3768
|
+
let v1;
|
|
3769
|
+
if (arg4 !== 0) {
|
|
3770
|
+
v1 = getStringFromWasm0(arg4, arg5).slice();
|
|
3771
|
+
wasm.__wbindgen_free(arg4, arg5 * 1, 1);
|
|
3772
|
+
}
|
|
3773
|
+
window.set_url_params(arg0, arg1, getStringFromWasm0(arg2, arg3), v1, arg6 !== 0);
|
|
3774
|
+
} finally {
|
|
3775
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3776
|
+
}
|
|
3777
|
+
};
|
|
3740
3778
|
imports.wbg.__wbg_setusage_3bf7bce356282919 = function(arg0, arg1) {
|
|
3741
3779
|
arg0.usage = arg1 >>> 0;
|
|
3742
3780
|
};
|
|
@@ -4134,88 +4172,88 @@ function __wbg_get_imports() {
|
|
|
4134
4172
|
const ret = false;
|
|
4135
4173
|
return ret;
|
|
4136
4174
|
};
|
|
4137
|
-
imports.wbg.
|
|
4138
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4175
|
+
imports.wbg.__wbindgen_closure_wrapper149437 = function(arg0, arg1, arg2) {
|
|
4176
|
+
const ret = makeMutClosure(arg0, arg1, 116690, __wbg_adapter_108);
|
|
4139
4177
|
return ret;
|
|
4140
4178
|
};
|
|
4141
|
-
imports.wbg.
|
|
4142
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4179
|
+
imports.wbg.__wbindgen_closure_wrapper169888 = function(arg0, arg1, arg2) {
|
|
4180
|
+
const ret = makeMutClosure(arg0, arg1, 131721, __wbg_adapter_111);
|
|
4143
4181
|
return ret;
|
|
4144
4182
|
};
|
|
4145
|
-
imports.wbg.
|
|
4146
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4183
|
+
imports.wbg.__wbindgen_closure_wrapper169890 = function(arg0, arg1, arg2) {
|
|
4184
|
+
const ret = makeMutClosure(arg0, arg1, 131721, __wbg_adapter_111);
|
|
4147
4185
|
return ret;
|
|
4148
4186
|
};
|
|
4149
|
-
imports.wbg.
|
|
4150
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4187
|
+
imports.wbg.__wbindgen_closure_wrapper20136 = function(arg0, arg1, arg2) {
|
|
4188
|
+
const ret = makeMutClosure(arg0, arg1, 15252, __wbg_adapter_62);
|
|
4151
4189
|
return ret;
|
|
4152
4190
|
};
|
|
4153
|
-
imports.wbg.
|
|
4154
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4191
|
+
imports.wbg.__wbindgen_closure_wrapper64007 = function(arg0, arg1, arg2) {
|
|
4192
|
+
const ret = makeMutClosure(arg0, arg1, 47652, __wbg_adapter_65);
|
|
4155
4193
|
return ret;
|
|
4156
4194
|
};
|
|
4157
|
-
imports.wbg.
|
|
4158
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4195
|
+
imports.wbg.__wbindgen_closure_wrapper64195 = function(arg0, arg1, arg2) {
|
|
4196
|
+
const ret = makeMutClosure(arg0, arg1, 47757, __wbg_adapter_68);
|
|
4159
4197
|
return ret;
|
|
4160
4198
|
};
|
|
4161
|
-
imports.wbg.
|
|
4162
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4199
|
+
imports.wbg.__wbindgen_closure_wrapper68213 = function(arg0, arg1, arg2) {
|
|
4200
|
+
const ret = makeMutClosure(arg0, arg1, 50827, __wbg_adapter_71);
|
|
4163
4201
|
return ret;
|
|
4164
4202
|
};
|
|
4165
|
-
imports.wbg.
|
|
4166
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4203
|
+
imports.wbg.__wbindgen_closure_wrapper70251 = function(arg0, arg1, arg2) {
|
|
4204
|
+
const ret = makeMutClosure(arg0, arg1, 51474, __wbg_adapter_74);
|
|
4167
4205
|
return ret;
|
|
4168
4206
|
};
|
|
4169
|
-
imports.wbg.
|
|
4170
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4207
|
+
imports.wbg.__wbindgen_closure_wrapper70253 = function(arg0, arg1, arg2) {
|
|
4208
|
+
const ret = makeMutClosure(arg0, arg1, 51474, __wbg_adapter_74);
|
|
4171
4209
|
return ret;
|
|
4172
4210
|
};
|
|
4173
|
-
imports.wbg.
|
|
4174
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4211
|
+
imports.wbg.__wbindgen_closure_wrapper70255 = function(arg0, arg1, arg2) {
|
|
4212
|
+
const ret = makeMutClosure(arg0, arg1, 51474, __wbg_adapter_74);
|
|
4175
4213
|
return ret;
|
|
4176
4214
|
};
|
|
4177
|
-
imports.wbg.
|
|
4178
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4215
|
+
imports.wbg.__wbindgen_closure_wrapper74106 = function(arg0, arg1, arg2) {
|
|
4216
|
+
const ret = makeMutClosure(arg0, arg1, 54699, __wbg_adapter_81);
|
|
4179
4217
|
return ret;
|
|
4180
4218
|
};
|
|
4181
|
-
imports.wbg.
|
|
4182
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4219
|
+
imports.wbg.__wbindgen_closure_wrapper74925 = function(arg0, arg1, arg2) {
|
|
4220
|
+
const ret = makeMutClosure(arg0, arg1, 55016, __wbg_adapter_84);
|
|
4183
4221
|
return ret;
|
|
4184
4222
|
};
|
|
4185
|
-
imports.wbg.
|
|
4186
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4223
|
+
imports.wbg.__wbindgen_closure_wrapper77165 = function(arg0, arg1, arg2) {
|
|
4224
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4187
4225
|
return ret;
|
|
4188
4226
|
};
|
|
4189
|
-
imports.wbg.
|
|
4190
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4227
|
+
imports.wbg.__wbindgen_closure_wrapper77167 = function(arg0, arg1, arg2) {
|
|
4228
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4191
4229
|
return ret;
|
|
4192
4230
|
};
|
|
4193
|
-
imports.wbg.
|
|
4194
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4231
|
+
imports.wbg.__wbindgen_closure_wrapper77169 = function(arg0, arg1, arg2) {
|
|
4232
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4195
4233
|
return ret;
|
|
4196
4234
|
};
|
|
4197
|
-
imports.wbg.
|
|
4198
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4235
|
+
imports.wbg.__wbindgen_closure_wrapper77171 = function(arg0, arg1, arg2) {
|
|
4236
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4199
4237
|
return ret;
|
|
4200
4238
|
};
|
|
4201
|
-
imports.wbg.
|
|
4202
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4239
|
+
imports.wbg.__wbindgen_closure_wrapper77173 = function(arg0, arg1, arg2) {
|
|
4240
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4203
4241
|
return ret;
|
|
4204
4242
|
};
|
|
4205
|
-
imports.wbg.
|
|
4206
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4243
|
+
imports.wbg.__wbindgen_closure_wrapper77175 = function(arg0, arg1, arg2) {
|
|
4244
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_98);
|
|
4207
4245
|
return ret;
|
|
4208
4246
|
};
|
|
4209
|
-
imports.wbg.
|
|
4210
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4247
|
+
imports.wbg.__wbindgen_closure_wrapper77177 = function(arg0, arg1, arg2) {
|
|
4248
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4211
4249
|
return ret;
|
|
4212
4250
|
};
|
|
4213
|
-
imports.wbg.
|
|
4214
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4251
|
+
imports.wbg.__wbindgen_closure_wrapper77179 = function(arg0, arg1, arg2) {
|
|
4252
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_87);
|
|
4215
4253
|
return ret;
|
|
4216
4254
|
};
|
|
4217
|
-
imports.wbg.
|
|
4218
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4255
|
+
imports.wbg.__wbindgen_closure_wrapper77181 = function(arg0, arg1, arg2) {
|
|
4256
|
+
const ret = makeMutClosure(arg0, arg1, 56517, __wbg_adapter_105);
|
|
4219
4257
|
return ret;
|
|
4220
4258
|
};
|
|
4221
4259
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const engine_init: () => any;
|
|
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) => void;
|
|
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
6
|
export const op_webstorage_length: (a: number) => number;
|
|
7
7
|
export const op_webstorage_key: (a: number, b: number) => [number, number];
|
|
@@ -76,6 +76,8 @@ export const op_set_permanent_permission: (a: number, b: number, c: number, d: n
|
|
|
76
76
|
export const op_get_permanent_permissions: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
77
77
|
export const op_get_permission_types: (a: number) => any;
|
|
78
78
|
export const op_set_interactable_area: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
79
|
+
export const op_get_mic_state: (a: number) => any;
|
|
80
|
+
export const op_set_mic_enabled: (a: number, b: number) => any;
|
|
79
81
|
export const op_testing_enabled: (a: number) => number;
|
|
80
82
|
export const op_log_test_plan: (a: number, b: any) => void;
|
|
81
83
|
export const op_log_test_result: (a: number, b: any) => void;
|
|
@@ -100,18 +102,18 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
100
102
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
101
103
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
102
104
|
export const __externref_table_dealloc: (a: number) => void;
|
|
103
|
-
export const
|
|
104
|
-
export const
|
|
105
|
+
export const closure15251_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
106
|
+
export const closure47651_externref_shim: (a: number, b: number, c: any) => void;
|
|
105
107
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf6d1d6eca19ebd1: (a: number, b: number) => void;
|
|
106
108
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88ef16e697def3fb: (a: number, b: number) => void;
|
|
107
|
-
export const
|
|
109
|
+
export const closure51473_externref_shim: (a: number, b: number, c: any) => void;
|
|
108
110
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9bfa50ac2770910f: (a: number, b: number) => void;
|
|
109
111
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heedd0a6395901798: (a: number, b: number) => void;
|
|
110
|
-
export const
|
|
112
|
+
export const closure56516_externref_shim: (a: number, b: number, c: any) => void;
|
|
111
113
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0c78161a9a71767b: (a: number, b: number) => void;
|
|
112
|
-
export const
|
|
113
|
-
export const
|
|
114
|
-
export const
|
|
115
|
-
export const
|
|
114
|
+
export const closure56529_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
115
|
+
export const closure116689_externref_shim: (a: number, b: number, c: any) => void;
|
|
116
|
+
export const closure131720_externref_shim: (a: number, b: number, c: any) => void;
|
|
117
|
+
export const closure134624_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
116
118
|
export const __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
117
119
|
export const __wbindgen_start: (a: number) => void;
|