@octoseq/visualiser 0.1.0-main.2b93a77 → 0.1.0-main.31a01e5
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/package.json +1 -1
- package/pkg/visualiser.d.ts +56 -31
- package/pkg/visualiser.js +546 -415
- package/pkg/visualiser_bg.wasm +0 -0
- package/pkg/visualiser_bg.wasm.d.ts +32 -31
package/pkg/visualiser.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
function addHeapObject(obj) {
|
|
4
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
5
|
+
const idx = heap_next;
|
|
6
|
+
heap_next = heap[idx];
|
|
7
|
+
|
|
8
|
+
heap[idx] = obj;
|
|
6
9
|
return idx;
|
|
7
10
|
}
|
|
8
11
|
|
|
@@ -75,6 +78,12 @@ function debugString(val) {
|
|
|
75
78
|
return className;
|
|
76
79
|
}
|
|
77
80
|
|
|
81
|
+
function dropObject(idx) {
|
|
82
|
+
if (idx < 132) return;
|
|
83
|
+
heap[idx] = heap_next;
|
|
84
|
+
heap_next = idx;
|
|
85
|
+
}
|
|
86
|
+
|
|
78
87
|
function getArrayF32FromWasm0(ptr, len) {
|
|
79
88
|
ptr = ptr >>> 0;
|
|
80
89
|
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
@@ -127,15 +136,21 @@ function getUint8ArrayMemory0() {
|
|
|
127
136
|
return cachedUint8ArrayMemory0;
|
|
128
137
|
}
|
|
129
138
|
|
|
139
|
+
function getObject(idx) { return heap[idx]; }
|
|
140
|
+
|
|
130
141
|
function handleError(f, args) {
|
|
131
142
|
try {
|
|
132
143
|
return f.apply(this, args);
|
|
133
144
|
} catch (e) {
|
|
134
|
-
|
|
135
|
-
wasm.__wbindgen_exn_store(idx);
|
|
145
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
136
146
|
}
|
|
137
147
|
}
|
|
138
148
|
|
|
149
|
+
let heap = new Array(128).fill(undefined);
|
|
150
|
+
heap.push(undefined, null, true, false);
|
|
151
|
+
|
|
152
|
+
let heap_next = heap.length;
|
|
153
|
+
|
|
139
154
|
function isLikeNone(x) {
|
|
140
155
|
return x === undefined || x === null;
|
|
141
156
|
}
|
|
@@ -212,6 +227,12 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
212
227
|
return ptr;
|
|
213
228
|
}
|
|
214
229
|
|
|
230
|
+
function takeObject(idx) {
|
|
231
|
+
const ret = getObject(idx);
|
|
232
|
+
dropObject(idx);
|
|
233
|
+
return ret;
|
|
234
|
+
}
|
|
235
|
+
|
|
215
236
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
216
237
|
cachedTextDecoder.decode();
|
|
217
238
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
@@ -241,16 +262,16 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
241
262
|
|
|
242
263
|
let WASM_VECTOR_LEN = 0;
|
|
243
264
|
|
|
244
|
-
function
|
|
245
|
-
wasm.
|
|
265
|
+
function __wasm_bindgen_func_elem_11338(arg0, arg1, arg2) {
|
|
266
|
+
wasm.__wasm_bindgen_func_elem_11338(arg0, arg1, addHeapObject(arg2));
|
|
246
267
|
}
|
|
247
268
|
|
|
248
|
-
function
|
|
249
|
-
wasm.
|
|
269
|
+
function __wasm_bindgen_func_elem_10256(arg0, arg1, arg2) {
|
|
270
|
+
wasm.__wasm_bindgen_func_elem_10256(arg0, arg1, addHeapObject(arg2));
|
|
250
271
|
}
|
|
251
272
|
|
|
252
|
-
function
|
|
253
|
-
wasm.
|
|
273
|
+
function __wasm_bindgen_func_elem_11945(arg0, arg1, arg2, arg3) {
|
|
274
|
+
wasm.__wasm_bindgen_func_elem_11945(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
254
275
|
}
|
|
255
276
|
|
|
256
277
|
const __wbindgen_enum_GpuCompilationMessageType = ["error", "warning", "info"];
|
|
@@ -299,7 +320,7 @@ export class WasmVisualiser {
|
|
|
299
320
|
* @returns {boolean}
|
|
300
321
|
*/
|
|
301
322
|
has_signal(name) {
|
|
302
|
-
const ptr0 = passStringToWasm0(name, wasm.
|
|
323
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
303
324
|
const len0 = WASM_VECTOR_LEN;
|
|
304
325
|
const ret = wasm.wasmvisualiser_has_signal(this.__wbg_ptr, ptr0, len0);
|
|
305
326
|
return ret !== 0;
|
|
@@ -311,7 +332,7 @@ export class WasmVisualiser {
|
|
|
311
332
|
* @returns {boolean}
|
|
312
333
|
*/
|
|
313
334
|
load_script(script) {
|
|
314
|
-
const ptr0 = passStringToWasm0(script, wasm.
|
|
335
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
315
336
|
const len0 = WASM_VECTOR_LEN;
|
|
316
337
|
const ret = wasm.wasmvisualiser_load_script(this.__wbg_ptr, ptr0, len0);
|
|
317
338
|
return ret !== 0;
|
|
@@ -324,9 +345,9 @@ export class WasmVisualiser {
|
|
|
324
345
|
* @param {number} sample_rate
|
|
325
346
|
*/
|
|
326
347
|
push_signal(name, samples, sample_rate) {
|
|
327
|
-
const ptr0 = passStringToWasm0(name, wasm.
|
|
348
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
328
349
|
const len0 = WASM_VECTOR_LEN;
|
|
329
|
-
const ptr1 = passArrayF32ToWasm0(samples, wasm.
|
|
350
|
+
const ptr1 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
330
351
|
const len1 = WASM_VECTOR_LEN;
|
|
331
352
|
wasm.wasmvisualiser_push_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, sample_rate);
|
|
332
353
|
}
|
|
@@ -346,14 +367,18 @@ export class WasmVisualiser {
|
|
|
346
367
|
let deferred2_0;
|
|
347
368
|
let deferred2_1;
|
|
348
369
|
try {
|
|
349
|
-
const
|
|
370
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
371
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
350
372
|
const len0 = WASM_VECTOR_LEN;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
373
|
+
wasm.wasmvisualiser_run_analysis(retptr, this.__wbg_ptr, ptr0, len0, duration, time_step);
|
|
374
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
375
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
376
|
+
deferred2_0 = r0;
|
|
377
|
+
deferred2_1 = r1;
|
|
378
|
+
return getStringFromWasm0(r0, r1);
|
|
355
379
|
} finally {
|
|
356
|
-
wasm.
|
|
380
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
381
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
357
382
|
}
|
|
358
383
|
}
|
|
359
384
|
/**
|
|
@@ -381,7 +406,7 @@ export class WasmVisualiser {
|
|
|
381
406
|
* @param {number} sample_rate
|
|
382
407
|
*/
|
|
383
408
|
push_zoom_data(samples, sample_rate) {
|
|
384
|
-
const ptr0 = passArrayF32ToWasm0(samples, wasm.
|
|
409
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
385
410
|
const len0 = WASM_VECTOR_LEN;
|
|
386
411
|
wasm.wasmvisualiser_push_zoom_data(this.__wbg_ptr, ptr0, len0, sample_rate);
|
|
387
412
|
}
|
|
@@ -397,23 +422,37 @@ export class WasmVisualiser {
|
|
|
397
422
|
* @returns {Float32Array}
|
|
398
423
|
*/
|
|
399
424
|
get_current_vals() {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
425
|
+
try {
|
|
426
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
427
|
+
wasm.wasmvisualiser_get_current_vals(retptr, this.__wbg_ptr);
|
|
428
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
429
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
430
|
+
var v1 = getArrayF32FromWasm0(r0, r1).slice();
|
|
431
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
432
|
+
return v1;
|
|
433
|
+
} finally {
|
|
434
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
435
|
+
}
|
|
404
436
|
}
|
|
405
437
|
/**
|
|
406
438
|
* Get the last script error message, if any.
|
|
407
439
|
* @returns {string | undefined}
|
|
408
440
|
*/
|
|
409
441
|
get_script_error() {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
442
|
+
try {
|
|
443
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
444
|
+
wasm.wasmvisualiser_get_script_error(retptr, this.__wbg_ptr);
|
|
445
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
446
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
447
|
+
let v1;
|
|
448
|
+
if (r0 !== 0) {
|
|
449
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
450
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
451
|
+
}
|
|
452
|
+
return v1;
|
|
453
|
+
} finally {
|
|
454
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
415
455
|
}
|
|
416
|
-
return v1;
|
|
417
456
|
}
|
|
418
457
|
/**
|
|
419
458
|
* Get the list of available signal names.
|
|
@@ -424,12 +463,16 @@ export class WasmVisualiser {
|
|
|
424
463
|
let deferred1_0;
|
|
425
464
|
let deferred1_1;
|
|
426
465
|
try {
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
466
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
467
|
+
wasm.wasmvisualiser_get_signal_names(retptr, this.__wbg_ptr);
|
|
468
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
469
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
470
|
+
deferred1_0 = r0;
|
|
471
|
+
deferred1_1 = r1;
|
|
472
|
+
return getStringFromWasm0(r0, r1);
|
|
431
473
|
} finally {
|
|
432
|
-
wasm.
|
|
474
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
475
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
433
476
|
}
|
|
434
477
|
}
|
|
435
478
|
/**
|
|
@@ -441,12 +484,16 @@ export class WasmVisualiser {
|
|
|
441
484
|
let deferred1_0;
|
|
442
485
|
let deferred1_1;
|
|
443
486
|
try {
|
|
444
|
-
const
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
487
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
488
|
+
wasm.wasmvisualiser_list_mesh_assets(retptr, this.__wbg_ptr);
|
|
489
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
490
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
491
|
+
deferred1_0 = r0;
|
|
492
|
+
deferred1_1 = r1;
|
|
493
|
+
return getStringFromWasm0(r0, r1);
|
|
448
494
|
} finally {
|
|
449
|
-
wasm.
|
|
495
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
496
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
450
497
|
}
|
|
451
498
|
}
|
|
452
499
|
/**
|
|
@@ -468,9 +515,9 @@ export class WasmVisualiser {
|
|
|
468
515
|
* @returns {boolean}
|
|
469
516
|
*/
|
|
470
517
|
push_band_events(band_id, events_json) {
|
|
471
|
-
const ptr0 = passStringToWasm0(band_id, wasm.
|
|
518
|
+
const ptr0 = passStringToWasm0(band_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
472
519
|
const len0 = WASM_VECTOR_LEN;
|
|
473
|
-
const ptr1 = passStringToWasm0(events_json, wasm.
|
|
520
|
+
const ptr1 = passStringToWasm0(events_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
474
521
|
const len1 = WASM_VECTOR_LEN;
|
|
475
522
|
const ret = wasm.wasmvisualiser_push_band_events(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
476
523
|
return ret !== 0;
|
|
@@ -492,13 +539,13 @@ export class WasmVisualiser {
|
|
|
492
539
|
* @param {number} sample_rate
|
|
493
540
|
*/
|
|
494
541
|
push_band_signal(band_id, band_label, feature, samples, sample_rate) {
|
|
495
|
-
const ptr0 = passStringToWasm0(band_id, wasm.
|
|
542
|
+
const ptr0 = passStringToWasm0(band_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
496
543
|
const len0 = WASM_VECTOR_LEN;
|
|
497
|
-
const ptr1 = passStringToWasm0(band_label, wasm.
|
|
544
|
+
const ptr1 = passStringToWasm0(band_label, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
498
545
|
const len1 = WASM_VECTOR_LEN;
|
|
499
|
-
const ptr2 = passStringToWasm0(feature, wasm.
|
|
546
|
+
const ptr2 = passStringToWasm0(feature, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
500
547
|
const len2 = WASM_VECTOR_LEN;
|
|
501
|
-
const ptr3 = passArrayF32ToWasm0(samples, wasm.
|
|
548
|
+
const ptr3 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
502
549
|
const len3 = WASM_VECTOR_LEN;
|
|
503
550
|
wasm.wasmvisualiser_push_band_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, sample_rate);
|
|
504
551
|
}
|
|
@@ -519,13 +566,13 @@ export class WasmVisualiser {
|
|
|
519
566
|
* @param {number} sample_rate
|
|
520
567
|
*/
|
|
521
568
|
push_stem_signal(stem_id, stem_label, feature, samples, sample_rate) {
|
|
522
|
-
const ptr0 = passStringToWasm0(stem_id, wasm.
|
|
569
|
+
const ptr0 = passStringToWasm0(stem_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
523
570
|
const len0 = WASM_VECTOR_LEN;
|
|
524
|
-
const ptr1 = passStringToWasm0(stem_label, wasm.
|
|
571
|
+
const ptr1 = passStringToWasm0(stem_label, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
525
572
|
const len1 = WASM_VECTOR_LEN;
|
|
526
|
-
const ptr2 = passStringToWasm0(feature, wasm.
|
|
573
|
+
const ptr2 = passStringToWasm0(feature, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
527
574
|
const len2 = WASM_VECTOR_LEN;
|
|
528
|
-
const ptr3 = passArrayF32ToWasm0(samples, wasm.
|
|
575
|
+
const ptr3 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
529
576
|
const len3 = WASM_VECTOR_LEN;
|
|
530
577
|
wasm.wasmvisualiser_push_stem_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, sample_rate);
|
|
531
578
|
}
|
|
@@ -537,7 +584,7 @@ export class WasmVisualiser {
|
|
|
537
584
|
* @returns {boolean}
|
|
538
585
|
*/
|
|
539
586
|
set_musical_time(json) {
|
|
540
|
-
const ptr0 = passStringToWasm0(json, wasm.
|
|
587
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
541
588
|
const len0 = WASM_VECTOR_LEN;
|
|
542
589
|
const ret = wasm.wasmvisualiser_set_musical_time(this.__wbg_ptr, ptr0, len0);
|
|
543
590
|
return ret !== 0;
|
|
@@ -567,9 +614,9 @@ export class WasmVisualiser {
|
|
|
567
614
|
* @returns {boolean}
|
|
568
615
|
*/
|
|
569
616
|
push_event_stream(name, events_json) {
|
|
570
|
-
const ptr0 = passStringToWasm0(name, wasm.
|
|
617
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
571
618
|
const len0 = WASM_VECTOR_LEN;
|
|
572
|
-
const ptr1 = passStringToWasm0(events_json, wasm.
|
|
619
|
+
const ptr1 = passStringToWasm0(events_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
573
620
|
const len1 = WASM_VECTOR_LEN;
|
|
574
621
|
const ret = wasm.wasmvisualiser_push_event_stream(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
575
622
|
return ret !== 0;
|
|
@@ -611,12 +658,16 @@ export class WasmVisualiser {
|
|
|
611
658
|
let deferred1_0;
|
|
612
659
|
let deferred1_1;
|
|
613
660
|
try {
|
|
614
|
-
const
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
661
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
662
|
+
wasm.wasmvisualiser_get_band_bounds_at(retptr, this.__wbg_ptr, time);
|
|
663
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
664
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
665
|
+
deferred1_0 = r0;
|
|
666
|
+
deferred1_1 = r1;
|
|
667
|
+
return getStringFromWasm0(r0, r1);
|
|
618
668
|
} finally {
|
|
619
|
-
wasm.
|
|
669
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
670
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
620
671
|
}
|
|
621
672
|
}
|
|
622
673
|
/**
|
|
@@ -628,12 +679,16 @@ export class WasmVisualiser {
|
|
|
628
679
|
let deferred1_0;
|
|
629
680
|
let deferred1_1;
|
|
630
681
|
try {
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
682
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
683
|
+
wasm.wasmvisualiser_get_script_signals(retptr, this.__wbg_ptr);
|
|
684
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
685
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
686
|
+
deferred1_0 = r0;
|
|
687
|
+
deferred1_1 = r1;
|
|
688
|
+
return getStringFromWasm0(r0, r1);
|
|
635
689
|
} finally {
|
|
636
|
-
wasm.
|
|
690
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
691
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
637
692
|
}
|
|
638
693
|
}
|
|
639
694
|
/**
|
|
@@ -650,11 +705,11 @@ export class WasmVisualiser {
|
|
|
650
705
|
* @param {number} sample_rate
|
|
651
706
|
*/
|
|
652
707
|
push_custom_signal(signal_id, label, samples, sample_rate) {
|
|
653
|
-
const ptr0 = passStringToWasm0(signal_id, wasm.
|
|
708
|
+
const ptr0 = passStringToWasm0(signal_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
654
709
|
const len0 = WASM_VECTOR_LEN;
|
|
655
|
-
const ptr1 = passStringToWasm0(label, wasm.
|
|
710
|
+
const ptr1 = passStringToWasm0(label, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
656
711
|
const len1 = WASM_VECTOR_LEN;
|
|
657
|
-
const ptr2 = passArrayF32ToWasm0(samples, wasm.
|
|
712
|
+
const ptr2 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
658
713
|
const len2 = WASM_VECTOR_LEN;
|
|
659
714
|
wasm.wasmvisualiser_push_custom_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, sample_rate);
|
|
660
715
|
}
|
|
@@ -663,9 +718,9 @@ export class WasmVisualiser {
|
|
|
663
718
|
* @param {number} sample_rate
|
|
664
719
|
*/
|
|
665
720
|
push_rotation_data(samples, sample_rate) {
|
|
666
|
-
const ptr0 = passArrayF32ToWasm0(samples, wasm.
|
|
721
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
667
722
|
const len0 = WASM_VECTOR_LEN;
|
|
668
|
-
wasm.
|
|
723
|
+
wasm.wasmvisualiser_push_rotation_data(this.__wbg_ptr, ptr0, len0, sample_rate);
|
|
669
724
|
}
|
|
670
725
|
/**
|
|
671
726
|
* Render with a frame budget timeout.
|
|
@@ -705,9 +760,9 @@ export class WasmVisualiser {
|
|
|
705
760
|
* @returns {boolean}
|
|
706
761
|
*/
|
|
707
762
|
register_mesh_asset(asset_id, obj_content) {
|
|
708
|
-
const ptr0 = passStringToWasm0(asset_id, wasm.
|
|
763
|
+
const ptr0 = passStringToWasm0(asset_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
709
764
|
const len0 = WASM_VECTOR_LEN;
|
|
710
|
-
const ptr1 = passStringToWasm0(obj_content, wasm.
|
|
765
|
+
const ptr1 = passStringToWasm0(obj_content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
711
766
|
const len1 = WASM_VECTOR_LEN;
|
|
712
767
|
const ret = wasm.wasmvisualiser_register_mesh_asset(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
713
768
|
return ret !== 0;
|
|
@@ -725,7 +780,7 @@ export class WasmVisualiser {
|
|
|
725
780
|
* @returns {boolean}
|
|
726
781
|
*/
|
|
727
782
|
set_available_stems(json) {
|
|
728
|
-
const ptr0 = passStringToWasm0(json, wasm.
|
|
783
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
729
784
|
const len0 = WASM_VECTOR_LEN;
|
|
730
785
|
const ret = wasm.wasmvisualiser_set_available_stems(this.__wbg_ptr, ptr0, len0);
|
|
731
786
|
return ret !== 0;
|
|
@@ -738,7 +793,7 @@ export class WasmVisualiser {
|
|
|
738
793
|
* @returns {boolean}
|
|
739
794
|
*/
|
|
740
795
|
set_frequency_bands(json) {
|
|
741
|
-
const ptr0 = passStringToWasm0(json, wasm.
|
|
796
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
742
797
|
const len0 = WASM_VECTOR_LEN;
|
|
743
798
|
const ret = wasm.wasmvisualiser_set_frequency_bands(this.__wbg_ptr, ptr0, len0);
|
|
744
799
|
return ret !== 0;
|
|
@@ -765,14 +820,18 @@ export class WasmVisualiser {
|
|
|
765
820
|
let deferred2_0;
|
|
766
821
|
let deferred2_1;
|
|
767
822
|
try {
|
|
768
|
-
const
|
|
823
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
824
|
+
const ptr0 = passStringToWasm0(signal_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
769
825
|
const len0 = WASM_VECTOR_LEN;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
826
|
+
wasm.wasmvisualiser_analyze_signal_chain(retptr, this.__wbg_ptr, ptr0, len0, center_time, window_beats, sample_count);
|
|
827
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
828
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
829
|
+
deferred2_0 = r0;
|
|
830
|
+
deferred2_1 = r1;
|
|
831
|
+
return getStringFromWasm0(r0, r1);
|
|
774
832
|
} finally {
|
|
775
|
-
wasm.
|
|
833
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
834
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
776
835
|
}
|
|
777
836
|
}
|
|
778
837
|
/**
|
|
@@ -788,7 +847,7 @@ export class WasmVisualiser {
|
|
|
788
847
|
* @returns {number}
|
|
789
848
|
*/
|
|
790
849
|
get_band_event_count(band_id) {
|
|
791
|
-
const ptr0 = passStringToWasm0(band_id, wasm.
|
|
850
|
+
const ptr0 = passStringToWasm0(band_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
792
851
|
const len0 = WASM_VECTOR_LEN;
|
|
793
852
|
const ret = wasm.wasmvisualiser_get_band_event_count(this.__wbg_ptr, ptr0, len0);
|
|
794
853
|
return ret >>> 0;
|
|
@@ -802,12 +861,16 @@ export class WasmVisualiser {
|
|
|
802
861
|
let deferred1_0;
|
|
803
862
|
let deferred1_1;
|
|
804
863
|
try {
|
|
805
|
-
const
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
864
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
865
|
+
wasm.wasmvisualiser_get_band_signal_keys(retptr, this.__wbg_ptr);
|
|
866
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
867
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
868
|
+
deferred1_0 = r0;
|
|
869
|
+
deferred1_1 = r1;
|
|
870
|
+
return getStringFromWasm0(r0, r1);
|
|
809
871
|
} finally {
|
|
810
|
-
wasm.
|
|
872
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
873
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
811
874
|
}
|
|
812
875
|
}
|
|
813
876
|
/**
|
|
@@ -819,12 +882,16 @@ export class WasmVisualiser {
|
|
|
819
882
|
let deferred1_0;
|
|
820
883
|
let deferred1_1;
|
|
821
884
|
try {
|
|
822
|
-
const
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
885
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
886
|
+
wasm.wasmvisualiser_get_stem_signal_keys(retptr, this.__wbg_ptr);
|
|
887
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
888
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
889
|
+
deferred1_0 = r0;
|
|
890
|
+
deferred1_1 = r1;
|
|
891
|
+
return getStringFromWasm0(r0, r1);
|
|
826
892
|
} finally {
|
|
827
|
-
wasm.
|
|
893
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
894
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
828
895
|
}
|
|
829
896
|
}
|
|
830
897
|
/**
|
|
@@ -835,6 +902,24 @@ export class WasmVisualiser {
|
|
|
835
902
|
const ret = wasm.wasmvisualiser_is_profiling_enabled(this.__wbg_ptr);
|
|
836
903
|
return ret !== 0;
|
|
837
904
|
}
|
|
905
|
+
/**
|
|
906
|
+
* Push a composed signal for use in scripts.
|
|
907
|
+
* The signal will be available as `inputs.composedSignals["name"]` in Rhai scripts.
|
|
908
|
+
*
|
|
909
|
+
* - `name`: The composed signal name (composed signals are keyed by name only).
|
|
910
|
+
* - `samples`: Signal data.
|
|
911
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
912
|
+
* @param {string} name
|
|
913
|
+
* @param {Float32Array} samples
|
|
914
|
+
* @param {number} sample_rate
|
|
915
|
+
*/
|
|
916
|
+
push_composed_signal(name, samples, sample_rate) {
|
|
917
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
918
|
+
const len0 = WASM_VECTOR_LEN;
|
|
919
|
+
const ptr1 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
920
|
+
const len1 = WASM_VECTOR_LEN;
|
|
921
|
+
wasm.wasmvisualiser_push_composed_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, sample_rate);
|
|
922
|
+
}
|
|
838
923
|
/**
|
|
839
924
|
* Clear the frequency band structure.
|
|
840
925
|
*/
|
|
@@ -850,12 +935,16 @@ export class WasmVisualiser {
|
|
|
850
935
|
let deferred1_0;
|
|
851
936
|
let deferred1_1;
|
|
852
937
|
try {
|
|
853
|
-
const
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
938
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
939
|
+
wasm.wasmvisualiser_get_camera_state_json(retptr, this.__wbg_ptr);
|
|
940
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
941
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
942
|
+
deferred1_0 = r0;
|
|
943
|
+
deferred1_1 = r1;
|
|
944
|
+
return getStringFromWasm0(r0, r1);
|
|
857
945
|
} finally {
|
|
858
|
-
wasm.
|
|
946
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
947
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
859
948
|
}
|
|
860
949
|
}
|
|
861
950
|
/**
|
|
@@ -873,11 +962,17 @@ export class WasmVisualiser {
|
|
|
873
962
|
* @returns {boolean}
|
|
874
963
|
*/
|
|
875
964
|
unregister_mesh_asset(asset_id) {
|
|
876
|
-
const ptr0 = passStringToWasm0(asset_id, wasm.
|
|
965
|
+
const ptr0 = passStringToWasm0(asset_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
877
966
|
const len0 = WASM_VECTOR_LEN;
|
|
878
967
|
const ret = wasm.wasmvisualiser_unregister_mesh_asset(this.__wbg_ptr, ptr0, len0);
|
|
879
968
|
return ret !== 0;
|
|
880
969
|
}
|
|
970
|
+
/**
|
|
971
|
+
* Clear all composed signals.
|
|
972
|
+
*/
|
|
973
|
+
clear_composed_signals() {
|
|
974
|
+
wasm.wasmvisualiser_clear_composed_signals(this.__wbg_ptr);
|
|
975
|
+
}
|
|
881
976
|
/**
|
|
882
977
|
* Get list of custom signal keys (IDs and labels).
|
|
883
978
|
* Returns a JSON array of strings.
|
|
@@ -887,12 +982,16 @@ export class WasmVisualiser {
|
|
|
887
982
|
let deferred1_0;
|
|
888
983
|
let deferred1_1;
|
|
889
984
|
try {
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
985
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
986
|
+
wasm.wasmvisualiser_get_custom_signal_keys(retptr, this.__wbg_ptr);
|
|
987
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
988
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
989
|
+
deferred1_0 = r0;
|
|
990
|
+
deferred1_1 = r1;
|
|
991
|
+
return getStringFromWasm0(r0, r1);
|
|
894
992
|
} finally {
|
|
895
|
-
wasm.
|
|
993
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
994
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
896
995
|
}
|
|
897
996
|
}
|
|
898
997
|
/**
|
|
@@ -902,7 +1001,7 @@ export class WasmVisualiser {
|
|
|
902
1001
|
* @returns {number}
|
|
903
1002
|
*/
|
|
904
1003
|
get_event_stream_count(name) {
|
|
905
|
-
const ptr0 = passStringToWasm0(name, wasm.
|
|
1004
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
906
1005
|
const len0 = WASM_VECTOR_LEN;
|
|
907
1006
|
const ret = wasm.wasmvisualiser_get_event_stream_count(this.__wbg_ptr, ptr0, len0);
|
|
908
1007
|
return ret >>> 0;
|
|
@@ -932,14 +1031,18 @@ export class WasmVisualiser {
|
|
|
932
1031
|
let deferred2_0;
|
|
933
1032
|
let deferred2_1;
|
|
934
1033
|
try {
|
|
935
|
-
const
|
|
1034
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1035
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
936
1036
|
const len0 = WASM_VECTOR_LEN;
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
1037
|
+
wasm.wasmvisualiser_run_analysis_with_events(retptr, this.__wbg_ptr, ptr0, len0, duration, time_step);
|
|
1038
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1039
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1040
|
+
deferred2_0 = r0;
|
|
1041
|
+
deferred2_1 = r1;
|
|
1042
|
+
return getStringFromWasm0(r0, r1);
|
|
941
1043
|
} finally {
|
|
942
|
-
wasm.
|
|
1044
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1045
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
943
1046
|
}
|
|
944
1047
|
}
|
|
945
1048
|
/**
|
|
@@ -951,12 +1054,16 @@ export class WasmVisualiser {
|
|
|
951
1054
|
let deferred1_0;
|
|
952
1055
|
let deferred1_1;
|
|
953
1056
|
try {
|
|
954
|
-
const
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
1057
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1058
|
+
wasm.wasmvisualiser_get_entity_positions_json(retptr, this.__wbg_ptr);
|
|
1059
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1060
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1061
|
+
deferred1_0 = r0;
|
|
1062
|
+
deferred1_1 = r1;
|
|
1063
|
+
return getStringFromWasm0(r0, r1);
|
|
958
1064
|
} finally {
|
|
959
|
-
wasm.
|
|
1065
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1066
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
960
1067
|
}
|
|
961
1068
|
}
|
|
962
1069
|
/**
|
|
@@ -978,9 +1085,9 @@ export class WasmVisualiser {
|
|
|
978
1085
|
* @returns {boolean}
|
|
979
1086
|
*/
|
|
980
1087
|
push_authored_event_stream(name, events_json) {
|
|
981
|
-
const ptr0 = passStringToWasm0(name, wasm.
|
|
1088
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
982
1089
|
const len0 = WASM_VECTOR_LEN;
|
|
983
|
-
const ptr1 = passStringToWasm0(events_json, wasm.
|
|
1090
|
+
const ptr1 = passStringToWasm0(events_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
984
1091
|
const len1 = WASM_VECTOR_LEN;
|
|
985
1092
|
const ret = wasm.wasmvisualiser_push_authored_event_stream(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
986
1093
|
return ret !== 0;
|
|
@@ -1004,7 +1111,7 @@ export class WasmVisualiser {
|
|
|
1004
1111
|
* @returns {boolean}
|
|
1005
1112
|
*/
|
|
1006
1113
|
set_available_custom_signals(json) {
|
|
1007
|
-
const ptr0 = passStringToWasm0(json, wasm.
|
|
1114
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1008
1115
|
const len0 = WASM_VECTOR_LEN;
|
|
1009
1116
|
const ret = wasm.wasmvisualiser_set_available_custom_signals(this.__wbg_ptr, ptr0, len0);
|
|
1010
1117
|
return ret !== 0;
|
|
@@ -1020,14 +1127,36 @@ export class WasmVisualiser {
|
|
|
1020
1127
|
let deferred1_0;
|
|
1021
1128
|
let deferred1_1;
|
|
1022
1129
|
try {
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1130
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1131
|
+
wasm.wasmvisualiser_take_script_diagnostics_json(retptr, this.__wbg_ptr);
|
|
1132
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1133
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1134
|
+
deferred1_0 = r0;
|
|
1135
|
+
deferred1_1 = r1;
|
|
1136
|
+
return getStringFromWasm0(r0, r1);
|
|
1027
1137
|
} finally {
|
|
1028
|
-
wasm.
|
|
1138
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1139
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1029
1140
|
}
|
|
1030
1141
|
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Set available composed signals for script namespace generation.
|
|
1144
|
+
* This registers composed signal IDs and labels so the script engine can generate
|
|
1145
|
+
* `inputs.composedSignals["name"]` accessors.
|
|
1146
|
+
*
|
|
1147
|
+
* The JSON format should be an array of [id, label] pairs:
|
|
1148
|
+
* `[["intensity", "intensity"], ["buildup", "buildup"]]`
|
|
1149
|
+
*
|
|
1150
|
+
* Returns true if successful, false if parsing failed.
|
|
1151
|
+
* @param {string} json
|
|
1152
|
+
* @returns {boolean}
|
|
1153
|
+
*/
|
|
1154
|
+
set_available_composed_signals(json) {
|
|
1155
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1156
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1157
|
+
const ret = wasm.wasmvisualiser_set_available_composed_signals(this.__wbg_ptr, ptr0, len0);
|
|
1158
|
+
return ret !== 0;
|
|
1159
|
+
}
|
|
1031
1160
|
/**
|
|
1032
1161
|
* Get the number of events in an authored event stream.
|
|
1033
1162
|
* Returns 0 if no events are stored for this name.
|
|
@@ -1035,7 +1164,7 @@ export class WasmVisualiser {
|
|
|
1035
1164
|
* @returns {number}
|
|
1036
1165
|
*/
|
|
1037
1166
|
get_authored_event_stream_count(name) {
|
|
1038
|
-
const ptr0 = passStringToWasm0(name, wasm.
|
|
1167
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1039
1168
|
const len0 = WASM_VECTOR_LEN;
|
|
1040
1169
|
const ret = wasm.wasmvisualiser_get_authored_event_stream_count(this.__wbg_ptr, ptr0, len0);
|
|
1041
1170
|
return ret >>> 0;
|
|
@@ -1070,7 +1199,7 @@ export class WasmVisualiser {
|
|
|
1070
1199
|
* @param {number} sample_rate
|
|
1071
1200
|
*/
|
|
1072
1201
|
push_data(samples, sample_rate) {
|
|
1073
|
-
const ptr0 = passArrayF32ToWasm0(samples, wasm.
|
|
1202
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_export);
|
|
1074
1203
|
const len0 = WASM_VECTOR_LEN;
|
|
1075
1204
|
wasm.wasmvisualiser_push_data(this.__wbg_ptr, ptr0, len0, sample_rate);
|
|
1076
1205
|
}
|
|
@@ -1082,8 +1211,8 @@ if (Symbol.dispose) WasmVisualiser.prototype[Symbol.dispose] = WasmVisualiser.pr
|
|
|
1082
1211
|
* @returns {Promise<WasmVisualiser>}
|
|
1083
1212
|
*/
|
|
1084
1213
|
export function create_visualiser(canvas) {
|
|
1085
|
-
const ret = wasm.create_visualiser(canvas);
|
|
1086
|
-
return ret;
|
|
1214
|
+
const ret = wasm.create_visualiser(addHeapObject(canvas));
|
|
1215
|
+
return takeObject(ret);
|
|
1087
1216
|
}
|
|
1088
1217
|
|
|
1089
1218
|
/**
|
|
@@ -1098,12 +1227,16 @@ export function get_script_api_metadata_json() {
|
|
|
1098
1227
|
let deferred1_0;
|
|
1099
1228
|
let deferred1_1;
|
|
1100
1229
|
try {
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1230
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1231
|
+
wasm.get_script_api_metadata_json(retptr);
|
|
1232
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1233
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1234
|
+
deferred1_0 = r0;
|
|
1235
|
+
deferred1_1 = r1;
|
|
1236
|
+
return getStringFromWasm0(r0, r1);
|
|
1105
1237
|
} finally {
|
|
1106
|
-
wasm.
|
|
1238
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1239
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1107
1240
|
}
|
|
1108
1241
|
}
|
|
1109
1242
|
|
|
@@ -1147,41 +1280,41 @@ function __wbg_get_imports() {
|
|
|
1147
1280
|
const imports = {};
|
|
1148
1281
|
imports.wbg = {};
|
|
1149
1282
|
imports.wbg.__wbg_Window_cf5b693340a7c469 = function(arg0) {
|
|
1150
|
-
const ret = arg0.Window;
|
|
1151
|
-
return ret;
|
|
1283
|
+
const ret = getObject(arg0).Window;
|
|
1284
|
+
return addHeapObject(ret);
|
|
1152
1285
|
};
|
|
1153
1286
|
imports.wbg.__wbg_WorkerGlobalScope_354364d1b0bd06e5 = function(arg0) {
|
|
1154
|
-
const ret = arg0.WorkerGlobalScope;
|
|
1155
|
-
return ret;
|
|
1287
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
1288
|
+
return addHeapObject(ret);
|
|
1156
1289
|
};
|
|
1157
1290
|
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
1158
|
-
const ret = debugString(arg1);
|
|
1159
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1291
|
+
const ret = debugString(getObject(arg1));
|
|
1292
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1160
1293
|
const len1 = WASM_VECTOR_LEN;
|
|
1161
1294
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1162
1295
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1163
1296
|
};
|
|
1164
1297
|
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
1165
|
-
const ret = typeof(arg0) === 'function';
|
|
1298
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
1166
1299
|
return ret;
|
|
1167
1300
|
};
|
|
1168
1301
|
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
1169
|
-
const ret = arg0 === null;
|
|
1302
|
+
const ret = getObject(arg0) === null;
|
|
1170
1303
|
return ret;
|
|
1171
1304
|
};
|
|
1172
1305
|
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
1173
|
-
const val = arg0;
|
|
1306
|
+
const val = getObject(arg0);
|
|
1174
1307
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1175
1308
|
return ret;
|
|
1176
1309
|
};
|
|
1177
1310
|
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
1178
|
-
const ret = arg0 === undefined;
|
|
1311
|
+
const ret = getObject(arg0) === undefined;
|
|
1179
1312
|
return ret;
|
|
1180
1313
|
};
|
|
1181
1314
|
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
1182
|
-
const obj = arg1;
|
|
1315
|
+
const obj = getObject(arg1);
|
|
1183
1316
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1184
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
1317
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1185
1318
|
var len1 = WASM_VECTOR_LEN;
|
|
1186
1319
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1187
1320
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
@@ -1190,155 +1323,155 @@ function __wbg_get_imports() {
|
|
|
1190
1323
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1191
1324
|
};
|
|
1192
1325
|
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
1193
|
-
arg0._wbg_cb_unref();
|
|
1326
|
+
getObject(arg0)._wbg_cb_unref();
|
|
1194
1327
|
};
|
|
1195
1328
|
imports.wbg.__wbg_beginComputePass_90d5303e604970cb = function(arg0, arg1) {
|
|
1196
|
-
const ret = arg0.beginComputePass(arg1);
|
|
1197
|
-
return ret;
|
|
1329
|
+
const ret = getObject(arg0).beginComputePass(getObject(arg1));
|
|
1330
|
+
return addHeapObject(ret);
|
|
1198
1331
|
};
|
|
1199
1332
|
imports.wbg.__wbg_beginRenderPass_9739520c601001c3 = function(arg0, arg1) {
|
|
1200
|
-
const ret = arg0.beginRenderPass(arg1);
|
|
1201
|
-
return ret;
|
|
1333
|
+
const ret = getObject(arg0).beginRenderPass(getObject(arg1));
|
|
1334
|
+
return addHeapObject(ret);
|
|
1202
1335
|
};
|
|
1203
1336
|
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
|
|
1204
|
-
const ret = arg0.buffer;
|
|
1205
|
-
return ret;
|
|
1337
|
+
const ret = getObject(arg0).buffer;
|
|
1338
|
+
return addHeapObject(ret);
|
|
1206
1339
|
};
|
|
1207
1340
|
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1208
|
-
const ret = arg0.call(arg1, arg2);
|
|
1209
|
-
return ret;
|
|
1341
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1342
|
+
return addHeapObject(ret);
|
|
1210
1343
|
}, arguments) };
|
|
1211
1344
|
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
1212
|
-
const ret = arg0.call(arg1);
|
|
1213
|
-
return ret;
|
|
1345
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
1346
|
+
return addHeapObject(ret);
|
|
1214
1347
|
}, arguments) };
|
|
1215
1348
|
imports.wbg.__wbg_clearBuffer_6164fc25d22b25cc = function(arg0, arg1, arg2, arg3) {
|
|
1216
|
-
arg0.clearBuffer(arg1, arg2, arg3);
|
|
1349
|
+
getObject(arg0).clearBuffer(getObject(arg1), arg2, arg3);
|
|
1217
1350
|
};
|
|
1218
1351
|
imports.wbg.__wbg_clearBuffer_cfcaaf1fb2baa885 = function(arg0, arg1, arg2) {
|
|
1219
|
-
arg0.clearBuffer(arg1, arg2);
|
|
1352
|
+
getObject(arg0).clearBuffer(getObject(arg1), arg2);
|
|
1220
1353
|
};
|
|
1221
1354
|
imports.wbg.__wbg_configure_2414aed971d368cd = function(arg0, arg1) {
|
|
1222
|
-
arg0.configure(arg1);
|
|
1355
|
+
getObject(arg0).configure(getObject(arg1));
|
|
1223
1356
|
};
|
|
1224
1357
|
imports.wbg.__wbg_copyBufferToBuffer_1ba67191114656a1 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1225
|
-
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
1358
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
1226
1359
|
};
|
|
1227
1360
|
imports.wbg.__wbg_copyBufferToTexture_878d31d479e48f28 = function(arg0, arg1, arg2, arg3) {
|
|
1228
|
-
arg0.copyBufferToTexture(arg1, arg2, arg3);
|
|
1361
|
+
getObject(arg0).copyBufferToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1229
1362
|
};
|
|
1230
1363
|
imports.wbg.__wbg_copyExternalImageToTexture_7878d196c0b60d39 = function(arg0, arg1, arg2, arg3) {
|
|
1231
|
-
arg0.copyExternalImageToTexture(arg1, arg2, arg3);
|
|
1364
|
+
getObject(arg0).copyExternalImageToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1232
1365
|
};
|
|
1233
1366
|
imports.wbg.__wbg_copyTextureToBuffer_6a8fe0e90f0a663d = function(arg0, arg1, arg2, arg3) {
|
|
1234
|
-
arg0.copyTextureToBuffer(arg1, arg2, arg3);
|
|
1367
|
+
getObject(arg0).copyTextureToBuffer(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1235
1368
|
};
|
|
1236
1369
|
imports.wbg.__wbg_copyTextureToTexture_0a06a393d6726b4a = function(arg0, arg1, arg2, arg3) {
|
|
1237
|
-
arg0.copyTextureToTexture(arg1, arg2, arg3);
|
|
1370
|
+
getObject(arg0).copyTextureToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1238
1371
|
};
|
|
1239
1372
|
imports.wbg.__wbg_createBindGroupLayout_1d93b6d41c87ba9d = function(arg0, arg1) {
|
|
1240
|
-
const ret = arg0.createBindGroupLayout(arg1);
|
|
1241
|
-
return ret;
|
|
1373
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
1374
|
+
return addHeapObject(ret);
|
|
1242
1375
|
};
|
|
1243
1376
|
imports.wbg.__wbg_createBindGroup_61cd07ec9d423432 = function(arg0, arg1) {
|
|
1244
|
-
const ret = arg0.createBindGroup(arg1);
|
|
1245
|
-
return ret;
|
|
1377
|
+
const ret = getObject(arg0).createBindGroup(getObject(arg1));
|
|
1378
|
+
return addHeapObject(ret);
|
|
1246
1379
|
};
|
|
1247
1380
|
imports.wbg.__wbg_createBuffer_963aa00d5fe859e4 = function(arg0, arg1) {
|
|
1248
|
-
const ret = arg0.createBuffer(arg1);
|
|
1249
|
-
return ret;
|
|
1381
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
1382
|
+
return addHeapObject(ret);
|
|
1250
1383
|
};
|
|
1251
1384
|
imports.wbg.__wbg_createCommandEncoder_f0e1613e9a2dc1eb = function(arg0, arg1) {
|
|
1252
|
-
const ret = arg0.createCommandEncoder(arg1);
|
|
1253
|
-
return ret;
|
|
1385
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
1386
|
+
return addHeapObject(ret);
|
|
1254
1387
|
};
|
|
1255
1388
|
imports.wbg.__wbg_createComputePipeline_b9616b9fe2f4eb2f = function(arg0, arg1) {
|
|
1256
|
-
const ret = arg0.createComputePipeline(arg1);
|
|
1257
|
-
return ret;
|
|
1389
|
+
const ret = getObject(arg0).createComputePipeline(getObject(arg1));
|
|
1390
|
+
return addHeapObject(ret);
|
|
1258
1391
|
};
|
|
1259
1392
|
imports.wbg.__wbg_createPipelineLayout_56c6cf983f892d2b = function(arg0, arg1) {
|
|
1260
|
-
const ret = arg0.createPipelineLayout(arg1);
|
|
1261
|
-
return ret;
|
|
1393
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
1394
|
+
return addHeapObject(ret);
|
|
1262
1395
|
};
|
|
1263
1396
|
imports.wbg.__wbg_createQuerySet_c14be802adf7c207 = function(arg0, arg1) {
|
|
1264
|
-
const ret = arg0.createQuerySet(arg1);
|
|
1265
|
-
return ret;
|
|
1397
|
+
const ret = getObject(arg0).createQuerySet(getObject(arg1));
|
|
1398
|
+
return addHeapObject(ret);
|
|
1266
1399
|
};
|
|
1267
1400
|
imports.wbg.__wbg_createRenderBundleEncoder_8e4bdffea72f8c1f = function(arg0, arg1) {
|
|
1268
|
-
const ret = arg0.createRenderBundleEncoder(arg1);
|
|
1269
|
-
return ret;
|
|
1401
|
+
const ret = getObject(arg0).createRenderBundleEncoder(getObject(arg1));
|
|
1402
|
+
return addHeapObject(ret);
|
|
1270
1403
|
};
|
|
1271
1404
|
imports.wbg.__wbg_createRenderPipeline_079a88a0601fcce1 = function(arg0, arg1) {
|
|
1272
|
-
const ret = arg0.createRenderPipeline(arg1);
|
|
1273
|
-
return ret;
|
|
1405
|
+
const ret = getObject(arg0).createRenderPipeline(getObject(arg1));
|
|
1406
|
+
return addHeapObject(ret);
|
|
1274
1407
|
};
|
|
1275
1408
|
imports.wbg.__wbg_createSampler_ef5578990df3baf7 = function(arg0, arg1) {
|
|
1276
|
-
const ret = arg0.createSampler(arg1);
|
|
1277
|
-
return ret;
|
|
1409
|
+
const ret = getObject(arg0).createSampler(getObject(arg1));
|
|
1410
|
+
return addHeapObject(ret);
|
|
1278
1411
|
};
|
|
1279
1412
|
imports.wbg.__wbg_createShaderModule_17f451ea25cae47c = function(arg0, arg1) {
|
|
1280
|
-
const ret = arg0.createShaderModule(arg1);
|
|
1281
|
-
return ret;
|
|
1413
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
1414
|
+
return addHeapObject(ret);
|
|
1282
1415
|
};
|
|
1283
1416
|
imports.wbg.__wbg_createTexture_01cc1cd2fea732d9 = function(arg0, arg1) {
|
|
1284
|
-
const ret = arg0.createTexture(arg1);
|
|
1285
|
-
return ret;
|
|
1417
|
+
const ret = getObject(arg0).createTexture(getObject(arg1));
|
|
1418
|
+
return addHeapObject(ret);
|
|
1286
1419
|
};
|
|
1287
1420
|
imports.wbg.__wbg_createView_04701884291e1ccc = function(arg0, arg1) {
|
|
1288
|
-
const ret = arg0.createView(arg1);
|
|
1289
|
-
return ret;
|
|
1421
|
+
const ret = getObject(arg0).createView(getObject(arg1));
|
|
1422
|
+
return addHeapObject(ret);
|
|
1290
1423
|
};
|
|
1291
1424
|
imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function(arg0) {
|
|
1292
|
-
console.debug(arg0);
|
|
1425
|
+
console.debug(getObject(arg0));
|
|
1293
1426
|
};
|
|
1294
1427
|
imports.wbg.__wbg_destroy_35f94012e5bb9c17 = function(arg0) {
|
|
1295
|
-
arg0.destroy();
|
|
1428
|
+
getObject(arg0).destroy();
|
|
1296
1429
|
};
|
|
1297
1430
|
imports.wbg.__wbg_destroy_767d9dde1008e293 = function(arg0) {
|
|
1298
|
-
arg0.destroy();
|
|
1431
|
+
getObject(arg0).destroy();
|
|
1299
1432
|
};
|
|
1300
1433
|
imports.wbg.__wbg_destroy_c6af4226dda95dbd = function(arg0) {
|
|
1301
|
-
arg0.destroy();
|
|
1434
|
+
getObject(arg0).destroy();
|
|
1302
1435
|
};
|
|
1303
1436
|
imports.wbg.__wbg_dispatchWorkgroupsIndirect_8b25efab93a7a433 = function(arg0, arg1, arg2) {
|
|
1304
|
-
arg0.dispatchWorkgroupsIndirect(arg1, arg2);
|
|
1437
|
+
getObject(arg0).dispatchWorkgroupsIndirect(getObject(arg1), arg2);
|
|
1305
1438
|
};
|
|
1306
1439
|
imports.wbg.__wbg_dispatchWorkgroups_c102fa81b955935d = function(arg0, arg1, arg2, arg3) {
|
|
1307
|
-
arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
1440
|
+
getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
1308
1441
|
};
|
|
1309
1442
|
imports.wbg.__wbg_document_5b745e82ba551ca5 = function(arg0) {
|
|
1310
|
-
const ret = arg0.document;
|
|
1311
|
-
return isLikeNone(ret) ? 0 :
|
|
1443
|
+
const ret = getObject(arg0).document;
|
|
1444
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1312
1445
|
};
|
|
1313
1446
|
imports.wbg.__wbg_drawIndexedIndirect_34484fc6227c7bc8 = function(arg0, arg1, arg2) {
|
|
1314
|
-
arg0.drawIndexedIndirect(arg1, arg2);
|
|
1447
|
+
getObject(arg0).drawIndexedIndirect(getObject(arg1), arg2);
|
|
1315
1448
|
};
|
|
1316
1449
|
imports.wbg.__wbg_drawIndexedIndirect_5a7c30bb5f1d5b67 = function(arg0, arg1, arg2) {
|
|
1317
|
-
arg0.drawIndexedIndirect(arg1, arg2);
|
|
1450
|
+
getObject(arg0).drawIndexedIndirect(getObject(arg1), arg2);
|
|
1318
1451
|
};
|
|
1319
1452
|
imports.wbg.__wbg_drawIndexed_115af1449b52a948 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1320
|
-
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1453
|
+
getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1321
1454
|
};
|
|
1322
1455
|
imports.wbg.__wbg_drawIndexed_a587cce4c317791f = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1323
|
-
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1456
|
+
getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1324
1457
|
};
|
|
1325
1458
|
imports.wbg.__wbg_drawIndirect_036d71498a21f1a3 = function(arg0, arg1, arg2) {
|
|
1326
|
-
arg0.drawIndirect(arg1, arg2);
|
|
1459
|
+
getObject(arg0).drawIndirect(getObject(arg1), arg2);
|
|
1327
1460
|
};
|
|
1328
1461
|
imports.wbg.__wbg_drawIndirect_a1d7c5e893aa5756 = function(arg0, arg1, arg2) {
|
|
1329
|
-
arg0.drawIndirect(arg1, arg2);
|
|
1462
|
+
getObject(arg0).drawIndirect(getObject(arg1), arg2);
|
|
1330
1463
|
};
|
|
1331
1464
|
imports.wbg.__wbg_draw_5351b12033166aca = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1332
|
-
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1465
|
+
getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1333
1466
|
};
|
|
1334
1467
|
imports.wbg.__wbg_draw_e2a7c5d66fb2d244 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1335
|
-
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1468
|
+
getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1336
1469
|
};
|
|
1337
1470
|
imports.wbg.__wbg_end_0ac71677a5c1717a = function(arg0) {
|
|
1338
|
-
arg0.end();
|
|
1471
|
+
getObject(arg0).end();
|
|
1339
1472
|
};
|
|
1340
1473
|
imports.wbg.__wbg_end_6f776519f1faa582 = function(arg0) {
|
|
1341
|
-
arg0.end();
|
|
1474
|
+
getObject(arg0).end();
|
|
1342
1475
|
};
|
|
1343
1476
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
1344
1477
|
let deferred0_0;
|
|
@@ -1348,109 +1481,109 @@ function __wbg_get_imports() {
|
|
|
1348
1481
|
deferred0_1 = arg1;
|
|
1349
1482
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1350
1483
|
} finally {
|
|
1351
|
-
wasm.
|
|
1484
|
+
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
1352
1485
|
}
|
|
1353
1486
|
};
|
|
1354
1487
|
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
1355
|
-
console.error(arg0);
|
|
1488
|
+
console.error(getObject(arg0));
|
|
1356
1489
|
};
|
|
1357
1490
|
imports.wbg.__wbg_error_e98e6aadd08e0b94 = function(arg0) {
|
|
1358
|
-
const ret = arg0.error;
|
|
1359
|
-
return ret;
|
|
1491
|
+
const ret = getObject(arg0).error;
|
|
1492
|
+
return addHeapObject(ret);
|
|
1360
1493
|
};
|
|
1361
1494
|
imports.wbg.__wbg_executeBundles_8e6c0614da2805d4 = function(arg0, arg1) {
|
|
1362
|
-
arg0.executeBundles(arg1);
|
|
1495
|
+
getObject(arg0).executeBundles(getObject(arg1));
|
|
1363
1496
|
};
|
|
1364
1497
|
imports.wbg.__wbg_features_1b464383ea8a7691 = function(arg0) {
|
|
1365
|
-
const ret = arg0.features;
|
|
1366
|
-
return ret;
|
|
1498
|
+
const ret = getObject(arg0).features;
|
|
1499
|
+
return addHeapObject(ret);
|
|
1367
1500
|
};
|
|
1368
1501
|
imports.wbg.__wbg_features_e5fbbc2760867852 = function(arg0) {
|
|
1369
|
-
const ret = arg0.features;
|
|
1370
|
-
return ret;
|
|
1502
|
+
const ret = getObject(arg0).features;
|
|
1503
|
+
return addHeapObject(ret);
|
|
1371
1504
|
};
|
|
1372
1505
|
imports.wbg.__wbg_finish_20711371c58df61c = function(arg0) {
|
|
1373
|
-
const ret = arg0.finish();
|
|
1374
|
-
return ret;
|
|
1506
|
+
const ret = getObject(arg0).finish();
|
|
1507
|
+
return addHeapObject(ret);
|
|
1375
1508
|
};
|
|
1376
1509
|
imports.wbg.__wbg_finish_34b2c54329c8719f = function(arg0, arg1) {
|
|
1377
|
-
const ret = arg0.finish(arg1);
|
|
1378
|
-
return ret;
|
|
1510
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
1511
|
+
return addHeapObject(ret);
|
|
1379
1512
|
};
|
|
1380
1513
|
imports.wbg.__wbg_finish_a9ab917e756ea00c = function(arg0, arg1) {
|
|
1381
|
-
const ret = arg0.finish(arg1);
|
|
1382
|
-
return ret;
|
|
1514
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
1515
|
+
return addHeapObject(ret);
|
|
1383
1516
|
};
|
|
1384
1517
|
imports.wbg.__wbg_finish_e0a6c97c0622f843 = function(arg0) {
|
|
1385
|
-
const ret = arg0.finish();
|
|
1386
|
-
return ret;
|
|
1518
|
+
const ret = getObject(arg0).finish();
|
|
1519
|
+
return addHeapObject(ret);
|
|
1387
1520
|
};
|
|
1388
1521
|
imports.wbg.__wbg_getBindGroupLayout_4a94df6108ac6667 = function(arg0, arg1) {
|
|
1389
|
-
const ret = arg0.getBindGroupLayout(arg1 >>> 0);
|
|
1390
|
-
return ret;
|
|
1522
|
+
const ret = getObject(arg0).getBindGroupLayout(arg1 >>> 0);
|
|
1523
|
+
return addHeapObject(ret);
|
|
1391
1524
|
};
|
|
1392
1525
|
imports.wbg.__wbg_getBindGroupLayout_80e803d942962f6a = function(arg0, arg1) {
|
|
1393
|
-
const ret = arg0.getBindGroupLayout(arg1 >>> 0);
|
|
1394
|
-
return ret;
|
|
1526
|
+
const ret = getObject(arg0).getBindGroupLayout(arg1 >>> 0);
|
|
1527
|
+
return addHeapObject(ret);
|
|
1395
1528
|
};
|
|
1396
1529
|
imports.wbg.__wbg_getCompilationInfo_2af3ecdfeda551a3 = function(arg0) {
|
|
1397
|
-
const ret = arg0.getCompilationInfo();
|
|
1398
|
-
return ret;
|
|
1530
|
+
const ret = getObject(arg0).getCompilationInfo();
|
|
1531
|
+
return addHeapObject(ret);
|
|
1399
1532
|
};
|
|
1400
1533
|
imports.wbg.__wbg_getContext_01f42b234e833f0a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1401
|
-
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1402
|
-
return isLikeNone(ret) ? 0 :
|
|
1534
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
|
1535
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1403
1536
|
}, arguments) };
|
|
1404
1537
|
imports.wbg.__wbg_getContext_2f210d0a58d43d95 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1405
|
-
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1406
|
-
return isLikeNone(ret) ? 0 :
|
|
1538
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
|
1539
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1407
1540
|
}, arguments) };
|
|
1408
1541
|
imports.wbg.__wbg_getCurrentTexture_5a79cda2ff36e1ee = function(arg0) {
|
|
1409
|
-
const ret = arg0.getCurrentTexture();
|
|
1410
|
-
return ret;
|
|
1542
|
+
const ret = getObject(arg0).getCurrentTexture();
|
|
1543
|
+
return addHeapObject(ret);
|
|
1411
1544
|
};
|
|
1412
1545
|
imports.wbg.__wbg_getMappedRange_932dd043ae22ee0a = function(arg0, arg1, arg2) {
|
|
1413
|
-
const ret = arg0.getMappedRange(arg1, arg2);
|
|
1414
|
-
return ret;
|
|
1546
|
+
const ret = getObject(arg0).getMappedRange(arg1, arg2);
|
|
1547
|
+
return addHeapObject(ret);
|
|
1415
1548
|
};
|
|
1416
1549
|
imports.wbg.__wbg_getPreferredCanvasFormat_de73c02773a5209e = function(arg0) {
|
|
1417
|
-
const ret = arg0.getPreferredCanvasFormat();
|
|
1550
|
+
const ret = getObject(arg0).getPreferredCanvasFormat();
|
|
1418
1551
|
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
1419
1552
|
};
|
|
1420
1553
|
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1421
1554
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1422
1555
|
}, arguments) };
|
|
1423
1556
|
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1424
|
-
const ret = arg0[arg1 >>> 0];
|
|
1425
|
-
return ret;
|
|
1557
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1558
|
+
return addHeapObject(ret);
|
|
1426
1559
|
};
|
|
1427
1560
|
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1428
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1429
|
-
return ret;
|
|
1561
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1562
|
+
return addHeapObject(ret);
|
|
1430
1563
|
}, arguments) };
|
|
1431
1564
|
imports.wbg.__wbg_get_c53d381635aa3929 = function(arg0, arg1) {
|
|
1432
|
-
const ret = arg0[arg1 >>> 0];
|
|
1433
|
-
return isLikeNone(ret) ? 0 :
|
|
1565
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1566
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1434
1567
|
};
|
|
1435
1568
|
imports.wbg.__wbg_gpu_87871e8f7ace8fee = function(arg0) {
|
|
1436
|
-
const ret = arg0.gpu;
|
|
1437
|
-
return ret;
|
|
1569
|
+
const ret = getObject(arg0).gpu;
|
|
1570
|
+
return addHeapObject(ret);
|
|
1438
1571
|
};
|
|
1439
1572
|
imports.wbg.__wbg_has_624cbf0451d880e8 = function(arg0, arg1, arg2) {
|
|
1440
|
-
const ret = arg0.has(getStringFromWasm0(arg1, arg2));
|
|
1573
|
+
const ret = getObject(arg0).has(getStringFromWasm0(arg1, arg2));
|
|
1441
1574
|
return ret;
|
|
1442
1575
|
};
|
|
1443
1576
|
imports.wbg.__wbg_height_a07787f693c253d2 = function(arg0) {
|
|
1444
|
-
const ret = arg0.height;
|
|
1577
|
+
const ret = getObject(arg0).height;
|
|
1445
1578
|
return ret;
|
|
1446
1579
|
};
|
|
1447
1580
|
imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function(arg0) {
|
|
1448
|
-
console.info(arg0);
|
|
1581
|
+
console.info(getObject(arg0));
|
|
1449
1582
|
};
|
|
1450
1583
|
imports.wbg.__wbg_instanceof_GpuAdapter_0731153d2b08720b = function(arg0) {
|
|
1451
1584
|
let result;
|
|
1452
1585
|
try {
|
|
1453
|
-
result = arg0 instanceof GPUAdapter;
|
|
1586
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
1454
1587
|
} catch (_) {
|
|
1455
1588
|
result = false;
|
|
1456
1589
|
}
|
|
@@ -1460,7 +1593,7 @@ function __wbg_get_imports() {
|
|
|
1460
1593
|
imports.wbg.__wbg_instanceof_GpuCanvasContext_d14121c7bd72fcef = function(arg0) {
|
|
1461
1594
|
let result;
|
|
1462
1595
|
try {
|
|
1463
|
-
result = arg0 instanceof GPUCanvasContext;
|
|
1596
|
+
result = getObject(arg0) instanceof GPUCanvasContext;
|
|
1464
1597
|
} catch (_) {
|
|
1465
1598
|
result = false;
|
|
1466
1599
|
}
|
|
@@ -1470,7 +1603,7 @@ function __wbg_get_imports() {
|
|
|
1470
1603
|
imports.wbg.__wbg_instanceof_GpuDeviceLostInfo_a3677ebb8241d800 = function(arg0) {
|
|
1471
1604
|
let result;
|
|
1472
1605
|
try {
|
|
1473
|
-
result = arg0 instanceof GPUDeviceLostInfo;
|
|
1606
|
+
result = getObject(arg0) instanceof GPUDeviceLostInfo;
|
|
1474
1607
|
} catch (_) {
|
|
1475
1608
|
result = false;
|
|
1476
1609
|
}
|
|
@@ -1480,7 +1613,7 @@ function __wbg_get_imports() {
|
|
|
1480
1613
|
imports.wbg.__wbg_instanceof_GpuOutOfMemoryError_391d9a08edbfa04b = function(arg0) {
|
|
1481
1614
|
let result;
|
|
1482
1615
|
try {
|
|
1483
|
-
result = arg0 instanceof GPUOutOfMemoryError;
|
|
1616
|
+
result = getObject(arg0) instanceof GPUOutOfMemoryError;
|
|
1484
1617
|
} catch (_) {
|
|
1485
1618
|
result = false;
|
|
1486
1619
|
}
|
|
@@ -1490,7 +1623,7 @@ function __wbg_get_imports() {
|
|
|
1490
1623
|
imports.wbg.__wbg_instanceof_GpuValidationError_f4d803c383da3c92 = function(arg0) {
|
|
1491
1624
|
let result;
|
|
1492
1625
|
try {
|
|
1493
|
-
result = arg0 instanceof GPUValidationError;
|
|
1626
|
+
result = getObject(arg0) instanceof GPUValidationError;
|
|
1494
1627
|
} catch (_) {
|
|
1495
1628
|
result = false;
|
|
1496
1629
|
}
|
|
@@ -1500,7 +1633,7 @@ function __wbg_get_imports() {
|
|
|
1500
1633
|
imports.wbg.__wbg_instanceof_Object_577e21051f7bcb79 = function(arg0) {
|
|
1501
1634
|
let result;
|
|
1502
1635
|
try {
|
|
1503
|
-
result = arg0 instanceof Object;
|
|
1636
|
+
result = getObject(arg0) instanceof Object;
|
|
1504
1637
|
} catch (_) {
|
|
1505
1638
|
result = false;
|
|
1506
1639
|
}
|
|
@@ -1510,7 +1643,7 @@ function __wbg_get_imports() {
|
|
|
1510
1643
|
imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
|
|
1511
1644
|
let result;
|
|
1512
1645
|
try {
|
|
1513
|
-
result = arg0 instanceof Window;
|
|
1646
|
+
result = getObject(arg0) instanceof Window;
|
|
1514
1647
|
} catch (_) {
|
|
1515
1648
|
result = false;
|
|
1516
1649
|
}
|
|
@@ -1518,207 +1651,207 @@ function __wbg_get_imports() {
|
|
|
1518
1651
|
return ret;
|
|
1519
1652
|
};
|
|
1520
1653
|
imports.wbg.__wbg_label_2082ab37d2ad170d = function(arg0, arg1) {
|
|
1521
|
-
const ret = arg1.label;
|
|
1522
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1654
|
+
const ret = getObject(arg1).label;
|
|
1655
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1523
1656
|
const len1 = WASM_VECTOR_LEN;
|
|
1524
1657
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1525
1658
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1526
1659
|
};
|
|
1527
1660
|
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1528
|
-
const ret = arg0.length;
|
|
1661
|
+
const ret = getObject(arg0).length;
|
|
1529
1662
|
return ret;
|
|
1530
1663
|
};
|
|
1531
1664
|
imports.wbg.__wbg_length_9df32f7add647235 = function(arg0) {
|
|
1532
|
-
const ret = arg0.length;
|
|
1665
|
+
const ret = getObject(arg0).length;
|
|
1533
1666
|
return ret;
|
|
1534
1667
|
};
|
|
1535
1668
|
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1536
|
-
const ret = arg0.length;
|
|
1669
|
+
const ret = getObject(arg0).length;
|
|
1537
1670
|
return ret;
|
|
1538
1671
|
};
|
|
1539
1672
|
imports.wbg.__wbg_limits_2dd632c891786ddf = function(arg0) {
|
|
1540
|
-
const ret = arg0.limits;
|
|
1541
|
-
return ret;
|
|
1673
|
+
const ret = getObject(arg0).limits;
|
|
1674
|
+
return addHeapObject(ret);
|
|
1542
1675
|
};
|
|
1543
1676
|
imports.wbg.__wbg_limits_f6411f884b0b2d62 = function(arg0) {
|
|
1544
|
-
const ret = arg0.limits;
|
|
1545
|
-
return ret;
|
|
1677
|
+
const ret = getObject(arg0).limits;
|
|
1678
|
+
return addHeapObject(ret);
|
|
1546
1679
|
};
|
|
1547
1680
|
imports.wbg.__wbg_lineNum_0246de1e072ffe19 = function(arg0) {
|
|
1548
|
-
const ret = arg0.lineNum;
|
|
1681
|
+
const ret = getObject(arg0).lineNum;
|
|
1549
1682
|
return ret;
|
|
1550
1683
|
};
|
|
1551
1684
|
imports.wbg.__wbg_log_1d990106d99dacb7 = function(arg0) {
|
|
1552
|
-
console.log(arg0);
|
|
1685
|
+
console.log(getObject(arg0));
|
|
1553
1686
|
};
|
|
1554
1687
|
imports.wbg.__wbg_lost_6e4d29847ce2a34a = function(arg0) {
|
|
1555
|
-
const ret = arg0.lost;
|
|
1556
|
-
return ret;
|
|
1688
|
+
const ret = getObject(arg0).lost;
|
|
1689
|
+
return addHeapObject(ret);
|
|
1557
1690
|
};
|
|
1558
1691
|
imports.wbg.__wbg_mapAsync_37f5e03edf2e1352 = function(arg0, arg1, arg2, arg3) {
|
|
1559
|
-
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1560
|
-
return ret;
|
|
1692
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1693
|
+
return addHeapObject(ret);
|
|
1561
1694
|
};
|
|
1562
1695
|
imports.wbg.__wbg_maxBindGroups_768ca5e8623bf450 = function(arg0) {
|
|
1563
|
-
const ret = arg0.maxBindGroups;
|
|
1696
|
+
const ret = getObject(arg0).maxBindGroups;
|
|
1564
1697
|
return ret;
|
|
1565
1698
|
};
|
|
1566
1699
|
imports.wbg.__wbg_maxBindingsPerBindGroup_057972d600d69719 = function(arg0) {
|
|
1567
|
-
const ret = arg0.maxBindingsPerBindGroup;
|
|
1700
|
+
const ret = getObject(arg0).maxBindingsPerBindGroup;
|
|
1568
1701
|
return ret;
|
|
1569
1702
|
};
|
|
1570
1703
|
imports.wbg.__wbg_maxBufferSize_e237b44f19a5a62b = function(arg0) {
|
|
1571
|
-
const ret = arg0.maxBufferSize;
|
|
1704
|
+
const ret = getObject(arg0).maxBufferSize;
|
|
1572
1705
|
return ret;
|
|
1573
1706
|
};
|
|
1574
1707
|
imports.wbg.__wbg_maxColorAttachmentBytesPerSample_d6c7b4051d22c6d6 = function(arg0) {
|
|
1575
|
-
const ret = arg0.maxColorAttachmentBytesPerSample;
|
|
1708
|
+
const ret = getObject(arg0).maxColorAttachmentBytesPerSample;
|
|
1576
1709
|
return ret;
|
|
1577
1710
|
};
|
|
1578
1711
|
imports.wbg.__wbg_maxColorAttachments_7a18ba24c05edcfd = function(arg0) {
|
|
1579
|
-
const ret = arg0.maxColorAttachments;
|
|
1712
|
+
const ret = getObject(arg0).maxColorAttachments;
|
|
1580
1713
|
return ret;
|
|
1581
1714
|
};
|
|
1582
1715
|
imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_b99c2f3611633992 = function(arg0) {
|
|
1583
|
-
const ret = arg0.maxComputeInvocationsPerWorkgroup;
|
|
1716
|
+
const ret = getObject(arg0).maxComputeInvocationsPerWorkgroup;
|
|
1584
1717
|
return ret;
|
|
1585
1718
|
};
|
|
1586
1719
|
imports.wbg.__wbg_maxComputeWorkgroupSizeX_adb26da9ed7f77f7 = function(arg0) {
|
|
1587
|
-
const ret = arg0.maxComputeWorkgroupSizeX;
|
|
1720
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeX;
|
|
1588
1721
|
return ret;
|
|
1589
1722
|
};
|
|
1590
1723
|
imports.wbg.__wbg_maxComputeWorkgroupSizeY_cc217559c98be33b = function(arg0) {
|
|
1591
|
-
const ret = arg0.maxComputeWorkgroupSizeY;
|
|
1724
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeY;
|
|
1592
1725
|
return ret;
|
|
1593
1726
|
};
|
|
1594
1727
|
imports.wbg.__wbg_maxComputeWorkgroupSizeZ_66606a80e2cf2309 = function(arg0) {
|
|
1595
|
-
const ret = arg0.maxComputeWorkgroupSizeZ;
|
|
1728
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeZ;
|
|
1596
1729
|
return ret;
|
|
1597
1730
|
};
|
|
1598
1731
|
imports.wbg.__wbg_maxComputeWorkgroupStorageSize_cb6235497b8c4997 = function(arg0) {
|
|
1599
|
-
const ret = arg0.maxComputeWorkgroupStorageSize;
|
|
1732
|
+
const ret = getObject(arg0).maxComputeWorkgroupStorageSize;
|
|
1600
1733
|
return ret;
|
|
1601
1734
|
};
|
|
1602
1735
|
imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_6bf550b5f21d57cf = function(arg0) {
|
|
1603
|
-
const ret = arg0.maxComputeWorkgroupsPerDimension;
|
|
1736
|
+
const ret = getObject(arg0).maxComputeWorkgroupsPerDimension;
|
|
1604
1737
|
return ret;
|
|
1605
1738
|
};
|
|
1606
1739
|
imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_c6ac20334e328b47 = function(arg0) {
|
|
1607
|
-
const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
|
|
1740
|
+
const ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout;
|
|
1608
1741
|
return ret;
|
|
1609
1742
|
};
|
|
1610
1743
|
imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_aa8f14a74b440f01 = function(arg0) {
|
|
1611
|
-
const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
|
|
1744
|
+
const ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout;
|
|
1612
1745
|
return ret;
|
|
1613
1746
|
};
|
|
1614
1747
|
imports.wbg.__wbg_maxSampledTexturesPerShaderStage_db7c4922cc60144a = function(arg0) {
|
|
1615
|
-
const ret = arg0.maxSampledTexturesPerShaderStage;
|
|
1748
|
+
const ret = getObject(arg0).maxSampledTexturesPerShaderStage;
|
|
1616
1749
|
return ret;
|
|
1617
1750
|
};
|
|
1618
1751
|
imports.wbg.__wbg_maxSamplersPerShaderStage_538705fe2263e710 = function(arg0) {
|
|
1619
|
-
const ret = arg0.maxSamplersPerShaderStage;
|
|
1752
|
+
const ret = getObject(arg0).maxSamplersPerShaderStage;
|
|
1620
1753
|
return ret;
|
|
1621
1754
|
};
|
|
1622
1755
|
imports.wbg.__wbg_maxStorageBufferBindingSize_32178c0f5f7f85cb = function(arg0) {
|
|
1623
|
-
const ret = arg0.maxStorageBufferBindingSize;
|
|
1756
|
+
const ret = getObject(arg0).maxStorageBufferBindingSize;
|
|
1624
1757
|
return ret;
|
|
1625
1758
|
};
|
|
1626
1759
|
imports.wbg.__wbg_maxStorageBuffersPerShaderStage_9f67e9eae0089f77 = function(arg0) {
|
|
1627
|
-
const ret = arg0.maxStorageBuffersPerShaderStage;
|
|
1760
|
+
const ret = getObject(arg0).maxStorageBuffersPerShaderStage;
|
|
1628
1761
|
return ret;
|
|
1629
1762
|
};
|
|
1630
1763
|
imports.wbg.__wbg_maxStorageTexturesPerShaderStage_57239664936031cf = function(arg0) {
|
|
1631
|
-
const ret = arg0.maxStorageTexturesPerShaderStage;
|
|
1764
|
+
const ret = getObject(arg0).maxStorageTexturesPerShaderStage;
|
|
1632
1765
|
return ret;
|
|
1633
1766
|
};
|
|
1634
1767
|
imports.wbg.__wbg_maxTextureArrayLayers_db5d4e486c78ae04 = function(arg0) {
|
|
1635
|
-
const ret = arg0.maxTextureArrayLayers;
|
|
1768
|
+
const ret = getObject(arg0).maxTextureArrayLayers;
|
|
1636
1769
|
return ret;
|
|
1637
1770
|
};
|
|
1638
1771
|
imports.wbg.__wbg_maxTextureDimension1D_3475085ffacabbdc = function(arg0) {
|
|
1639
|
-
const ret = arg0.maxTextureDimension1D;
|
|
1772
|
+
const ret = getObject(arg0).maxTextureDimension1D;
|
|
1640
1773
|
return ret;
|
|
1641
1774
|
};
|
|
1642
1775
|
imports.wbg.__wbg_maxTextureDimension2D_7c8d5ecf09eb8519 = function(arg0) {
|
|
1643
|
-
const ret = arg0.maxTextureDimension2D;
|
|
1776
|
+
const ret = getObject(arg0).maxTextureDimension2D;
|
|
1644
1777
|
return ret;
|
|
1645
1778
|
};
|
|
1646
1779
|
imports.wbg.__wbg_maxTextureDimension3D_8bd976677a0f91d4 = function(arg0) {
|
|
1647
|
-
const ret = arg0.maxTextureDimension3D;
|
|
1780
|
+
const ret = getObject(arg0).maxTextureDimension3D;
|
|
1648
1781
|
return ret;
|
|
1649
1782
|
};
|
|
1650
1783
|
imports.wbg.__wbg_maxUniformBufferBindingSize_95b1a54e7e4a0f0f = function(arg0) {
|
|
1651
|
-
const ret = arg0.maxUniformBufferBindingSize;
|
|
1784
|
+
const ret = getObject(arg0).maxUniformBufferBindingSize;
|
|
1652
1785
|
return ret;
|
|
1653
1786
|
};
|
|
1654
1787
|
imports.wbg.__wbg_maxUniformBuffersPerShaderStage_5f475d9a453af14d = function(arg0) {
|
|
1655
|
-
const ret = arg0.maxUniformBuffersPerShaderStage;
|
|
1788
|
+
const ret = getObject(arg0).maxUniformBuffersPerShaderStage;
|
|
1656
1789
|
return ret;
|
|
1657
1790
|
};
|
|
1658
1791
|
imports.wbg.__wbg_maxVertexAttributes_4c48ca2f5d32f860 = function(arg0) {
|
|
1659
|
-
const ret = arg0.maxVertexAttributes;
|
|
1792
|
+
const ret = getObject(arg0).maxVertexAttributes;
|
|
1660
1793
|
return ret;
|
|
1661
1794
|
};
|
|
1662
1795
|
imports.wbg.__wbg_maxVertexBufferArrayStride_2233f6933ecc5a16 = function(arg0) {
|
|
1663
|
-
const ret = arg0.maxVertexBufferArrayStride;
|
|
1796
|
+
const ret = getObject(arg0).maxVertexBufferArrayStride;
|
|
1664
1797
|
return ret;
|
|
1665
1798
|
};
|
|
1666
1799
|
imports.wbg.__wbg_maxVertexBuffers_c47e508cd7348554 = function(arg0) {
|
|
1667
|
-
const ret = arg0.maxVertexBuffers;
|
|
1800
|
+
const ret = getObject(arg0).maxVertexBuffers;
|
|
1668
1801
|
return ret;
|
|
1669
1802
|
};
|
|
1670
1803
|
imports.wbg.__wbg_message_0762358e59db7ed6 = function(arg0, arg1) {
|
|
1671
|
-
const ret = arg1.message;
|
|
1672
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1804
|
+
const ret = getObject(arg1).message;
|
|
1805
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1673
1806
|
const len1 = WASM_VECTOR_LEN;
|
|
1674
1807
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1675
1808
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1676
1809
|
};
|
|
1677
1810
|
imports.wbg.__wbg_message_7957ab09f64c6822 = function(arg0, arg1) {
|
|
1678
|
-
const ret = arg1.message;
|
|
1679
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1811
|
+
const ret = getObject(arg1).message;
|
|
1812
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1680
1813
|
const len1 = WASM_VECTOR_LEN;
|
|
1681
1814
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1682
1815
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1683
1816
|
};
|
|
1684
1817
|
imports.wbg.__wbg_message_b163994503433c9e = function(arg0, arg1) {
|
|
1685
|
-
const ret = arg1.message;
|
|
1686
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1818
|
+
const ret = getObject(arg1).message;
|
|
1819
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1687
1820
|
const len1 = WASM_VECTOR_LEN;
|
|
1688
1821
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1689
1822
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1690
1823
|
};
|
|
1691
1824
|
imports.wbg.__wbg_messages_da071582f72bc978 = function(arg0) {
|
|
1692
|
-
const ret = arg0.messages;
|
|
1693
|
-
return ret;
|
|
1825
|
+
const ret = getObject(arg0).messages;
|
|
1826
|
+
return addHeapObject(ret);
|
|
1694
1827
|
};
|
|
1695
1828
|
imports.wbg.__wbg_minStorageBufferOffsetAlignment_51b4801fac3a58de = function(arg0) {
|
|
1696
|
-
const ret = arg0.minStorageBufferOffsetAlignment;
|
|
1829
|
+
const ret = getObject(arg0).minStorageBufferOffsetAlignment;
|
|
1697
1830
|
return ret;
|
|
1698
1831
|
};
|
|
1699
1832
|
imports.wbg.__wbg_minUniformBufferOffsetAlignment_5d62a77924b2335f = function(arg0) {
|
|
1700
|
-
const ret = arg0.minUniformBufferOffsetAlignment;
|
|
1833
|
+
const ret = getObject(arg0).minUniformBufferOffsetAlignment;
|
|
1701
1834
|
return ret;
|
|
1702
1835
|
};
|
|
1703
1836
|
imports.wbg.__wbg_navigator_11b7299bb7886507 = function(arg0) {
|
|
1704
|
-
const ret = arg0.navigator;
|
|
1705
|
-
return ret;
|
|
1837
|
+
const ret = getObject(arg0).navigator;
|
|
1838
|
+
return addHeapObject(ret);
|
|
1706
1839
|
};
|
|
1707
1840
|
imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
|
|
1708
|
-
const ret = arg0.navigator;
|
|
1709
|
-
return ret;
|
|
1841
|
+
const ret = getObject(arg0).navigator;
|
|
1842
|
+
return addHeapObject(ret);
|
|
1710
1843
|
};
|
|
1711
1844
|
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
1712
1845
|
const ret = new Object();
|
|
1713
|
-
return ret;
|
|
1846
|
+
return addHeapObject(ret);
|
|
1714
1847
|
};
|
|
1715
1848
|
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
1716
1849
|
const ret = new Array();
|
|
1717
|
-
return ret;
|
|
1850
|
+
return addHeapObject(ret);
|
|
1718
1851
|
};
|
|
1719
1852
|
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1720
1853
|
const ret = new Error();
|
|
1721
|
-
return ret;
|
|
1854
|
+
return addHeapObject(ret);
|
|
1722
1855
|
};
|
|
1723
1856
|
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1724
1857
|
try {
|
|
@@ -1727,211 +1860,211 @@ function __wbg_get_imports() {
|
|
|
1727
1860
|
const a = state0.a;
|
|
1728
1861
|
state0.a = 0;
|
|
1729
1862
|
try {
|
|
1730
|
-
return
|
|
1863
|
+
return __wasm_bindgen_func_elem_11945(a, state0.b, arg0, arg1);
|
|
1731
1864
|
} finally {
|
|
1732
1865
|
state0.a = a;
|
|
1733
1866
|
}
|
|
1734
1867
|
};
|
|
1735
1868
|
const ret = new Promise(cb0);
|
|
1736
|
-
return ret;
|
|
1869
|
+
return addHeapObject(ret);
|
|
1737
1870
|
} finally {
|
|
1738
1871
|
state0.a = state0.b = 0;
|
|
1739
1872
|
}
|
|
1740
1873
|
};
|
|
1741
1874
|
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1742
1875
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1743
|
-
return ret;
|
|
1876
|
+
return addHeapObject(ret);
|
|
1744
1877
|
};
|
|
1745
1878
|
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1746
1879
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1747
|
-
return ret;
|
|
1880
|
+
return addHeapObject(ret);
|
|
1748
1881
|
};
|
|
1749
1882
|
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
|
|
1750
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1751
|
-
return ret;
|
|
1883
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1884
|
+
return addHeapObject(ret);
|
|
1752
1885
|
};
|
|
1753
1886
|
imports.wbg.__wbg_now_8cf15d6e317793e1 = function(arg0) {
|
|
1754
|
-
const ret = arg0.now();
|
|
1887
|
+
const ret = getObject(arg0).now();
|
|
1755
1888
|
return ret;
|
|
1756
1889
|
};
|
|
1757
1890
|
imports.wbg.__wbg_offset_336f14c993863b76 = function(arg0) {
|
|
1758
|
-
const ret = arg0.offset;
|
|
1891
|
+
const ret = getObject(arg0).offset;
|
|
1759
1892
|
return ret;
|
|
1760
1893
|
};
|
|
1761
1894
|
imports.wbg.__wbg_performance_c77a440eff2efd9b = function(arg0) {
|
|
1762
|
-
const ret = arg0.performance;
|
|
1763
|
-
return isLikeNone(ret) ? 0 :
|
|
1895
|
+
const ret = getObject(arg0).performance;
|
|
1896
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1764
1897
|
};
|
|
1765
1898
|
imports.wbg.__wbg_popErrorScope_af0b22f136a861d6 = function(arg0) {
|
|
1766
|
-
const ret = arg0.popErrorScope();
|
|
1767
|
-
return ret;
|
|
1899
|
+
const ret = getObject(arg0).popErrorScope();
|
|
1900
|
+
return addHeapObject(ret);
|
|
1768
1901
|
};
|
|
1769
1902
|
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1770
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1903
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1771
1904
|
};
|
|
1772
1905
|
imports.wbg.__wbg_pushErrorScope_b52914ff10ba6ce3 = function(arg0, arg1) {
|
|
1773
|
-
arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
|
|
1906
|
+
getObject(arg0).pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
|
|
1774
1907
|
};
|
|
1775
1908
|
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1776
|
-
const ret = arg0.push(arg1);
|
|
1909
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
1777
1910
|
return ret;
|
|
1778
1911
|
};
|
|
1779
1912
|
imports.wbg.__wbg_querySelectorAll_aa1048eae18f6f1a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1780
|
-
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1781
|
-
return ret;
|
|
1913
|
+
const ret = getObject(arg0).querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1914
|
+
return addHeapObject(ret);
|
|
1782
1915
|
}, arguments) };
|
|
1783
1916
|
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1784
|
-
const ret = arg0.queueMicrotask;
|
|
1785
|
-
return ret;
|
|
1917
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
1918
|
+
return addHeapObject(ret);
|
|
1786
1919
|
};
|
|
1787
1920
|
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1788
|
-
queueMicrotask(arg0);
|
|
1921
|
+
queueMicrotask(getObject(arg0));
|
|
1789
1922
|
};
|
|
1790
1923
|
imports.wbg.__wbg_queue_bea4017efaaf9904 = function(arg0) {
|
|
1791
|
-
const ret = arg0.queue;
|
|
1792
|
-
return ret;
|
|
1924
|
+
const ret = getObject(arg0).queue;
|
|
1925
|
+
return addHeapObject(ret);
|
|
1793
1926
|
};
|
|
1794
1927
|
imports.wbg.__wbg_reason_43acd39cce242b50 = function(arg0) {
|
|
1795
|
-
const ret = arg0.reason;
|
|
1928
|
+
const ret = getObject(arg0).reason;
|
|
1796
1929
|
return (__wbindgen_enum_GpuDeviceLostReason.indexOf(ret) + 1 || 3) - 1;
|
|
1797
1930
|
};
|
|
1798
1931
|
imports.wbg.__wbg_requestAdapter_e6dcfac497cafa7a = function(arg0, arg1) {
|
|
1799
|
-
const ret = arg0.requestAdapter(arg1);
|
|
1800
|
-
return ret;
|
|
1932
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
1933
|
+
return addHeapObject(ret);
|
|
1801
1934
|
};
|
|
1802
1935
|
imports.wbg.__wbg_requestDevice_03b802707d5a382c = function(arg0, arg1) {
|
|
1803
|
-
const ret = arg0.requestDevice(arg1);
|
|
1804
|
-
return ret;
|
|
1936
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
1937
|
+
return addHeapObject(ret);
|
|
1805
1938
|
};
|
|
1806
1939
|
imports.wbg.__wbg_resolveQuerySet_811661fb23f3b699 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1807
|
-
arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1940
|
+
getObject(arg0).resolveQuerySet(getObject(arg1), arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5 >>> 0);
|
|
1808
1941
|
};
|
|
1809
1942
|
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1810
|
-
const ret = Promise.resolve(arg0);
|
|
1811
|
-
return ret;
|
|
1943
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
1944
|
+
return addHeapObject(ret);
|
|
1812
1945
|
};
|
|
1813
1946
|
imports.wbg.__wbg_setBindGroup_62a3045b0921e429 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1814
|
-
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1947
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1815
1948
|
};
|
|
1816
1949
|
imports.wbg.__wbg_setBindGroup_6c0fd18e9a53a945 = function(arg0, arg1, arg2) {
|
|
1817
|
-
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1950
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
1818
1951
|
};
|
|
1819
1952
|
imports.wbg.__wbg_setBindGroup_7f3b61f1f482133b = function(arg0, arg1, arg2) {
|
|
1820
|
-
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1953
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
1821
1954
|
};
|
|
1822
1955
|
imports.wbg.__wbg_setBindGroup_bf767a5aa46a33ce = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1823
|
-
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1956
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1824
1957
|
};
|
|
1825
1958
|
imports.wbg.__wbg_setBindGroup_c4aaff14063226b4 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1826
|
-
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1959
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1827
1960
|
};
|
|
1828
1961
|
imports.wbg.__wbg_setBindGroup_f82e771dc1b69093 = function(arg0, arg1, arg2) {
|
|
1829
|
-
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1962
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
1830
1963
|
};
|
|
1831
1964
|
imports.wbg.__wbg_setBlendConstant_016723821cfb3aa4 = function(arg0, arg1) {
|
|
1832
|
-
arg0.setBlendConstant(arg1);
|
|
1965
|
+
getObject(arg0).setBlendConstant(getObject(arg1));
|
|
1833
1966
|
};
|
|
1834
1967
|
imports.wbg.__wbg_setIndexBuffer_286a40afdff411b7 = function(arg0, arg1, arg2, arg3) {
|
|
1835
|
-
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1968
|
+
getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1836
1969
|
};
|
|
1837
1970
|
imports.wbg.__wbg_setIndexBuffer_7efd0b7a40c65fb9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1838
|
-
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1971
|
+
getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1839
1972
|
};
|
|
1840
1973
|
imports.wbg.__wbg_setIndexBuffer_e091a9673bb575e2 = function(arg0, arg1, arg2, arg3) {
|
|
1841
|
-
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1974
|
+
getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1842
1975
|
};
|
|
1843
1976
|
imports.wbg.__wbg_setIndexBuffer_f0759f00036f615f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1844
|
-
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1977
|
+
getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1845
1978
|
};
|
|
1846
1979
|
imports.wbg.__wbg_setPipeline_ba92070b8ee81cf9 = function(arg0, arg1) {
|
|
1847
|
-
arg0.setPipeline(arg1);
|
|
1980
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
1848
1981
|
};
|
|
1849
1982
|
imports.wbg.__wbg_setPipeline_c344f76bae58c4d6 = function(arg0, arg1) {
|
|
1850
|
-
arg0.setPipeline(arg1);
|
|
1983
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
1851
1984
|
};
|
|
1852
1985
|
imports.wbg.__wbg_setPipeline_d76451c50a121598 = function(arg0, arg1) {
|
|
1853
|
-
arg0.setPipeline(arg1);
|
|
1986
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
1854
1987
|
};
|
|
1855
1988
|
imports.wbg.__wbg_setScissorRect_0b6ee0852ef0b6b9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1856
|
-
arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1989
|
+
getObject(arg0).setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1857
1990
|
};
|
|
1858
1991
|
imports.wbg.__wbg_setStencilReference_34fd3d59673a5a9d = function(arg0, arg1) {
|
|
1859
|
-
arg0.setStencilReference(arg1 >>> 0);
|
|
1992
|
+
getObject(arg0).setStencilReference(arg1 >>> 0);
|
|
1860
1993
|
};
|
|
1861
1994
|
imports.wbg.__wbg_setVertexBuffer_06a90dc78e1ad9c4 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1862
|
-
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1995
|
+
getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4);
|
|
1863
1996
|
};
|
|
1864
1997
|
imports.wbg.__wbg_setVertexBuffer_1540e9118b6c451d = function(arg0, arg1, arg2, arg3) {
|
|
1865
|
-
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1998
|
+
getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3);
|
|
1866
1999
|
};
|
|
1867
2000
|
imports.wbg.__wbg_setVertexBuffer_5166eedc06450701 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1868
|
-
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
2001
|
+
getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4);
|
|
1869
2002
|
};
|
|
1870
2003
|
imports.wbg.__wbg_setVertexBuffer_8621784e5014065b = function(arg0, arg1, arg2, arg3) {
|
|
1871
|
-
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
2004
|
+
getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3);
|
|
1872
2005
|
};
|
|
1873
2006
|
imports.wbg.__wbg_setViewport_731ad30abb13f744 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1874
|
-
arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
2007
|
+
getObject(arg0).setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
1875
2008
|
};
|
|
1876
2009
|
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1877
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
2010
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1878
2011
|
return ret;
|
|
1879
2012
|
}, arguments) };
|
|
1880
2013
|
imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
|
|
1881
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
2014
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
1882
2015
|
};
|
|
1883
2016
|
imports.wbg.__wbg_set_height_6f8f8ef4cb40e496 = function(arg0, arg1) {
|
|
1884
|
-
arg0.height = arg1 >>> 0;
|
|
2017
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1885
2018
|
};
|
|
1886
2019
|
imports.wbg.__wbg_set_height_afe09c24165867f7 = function(arg0, arg1) {
|
|
1887
|
-
arg0.height = arg1 >>> 0;
|
|
2020
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1888
2021
|
};
|
|
1889
2022
|
imports.wbg.__wbg_set_onuncapturederror_19541466822d790b = function(arg0, arg1) {
|
|
1890
|
-
arg0.onuncapturederror = arg1;
|
|
2023
|
+
getObject(arg0).onuncapturederror = getObject(arg1);
|
|
1891
2024
|
};
|
|
1892
2025
|
imports.wbg.__wbg_set_width_0a22c810f06a5152 = function(arg0, arg1) {
|
|
1893
|
-
arg0.width = arg1 >>> 0;
|
|
2026
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1894
2027
|
};
|
|
1895
2028
|
imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
|
|
1896
|
-
arg0.width = arg1 >>> 0;
|
|
2029
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1897
2030
|
};
|
|
1898
2031
|
imports.wbg.__wbg_size_661bddb3f9898121 = function(arg0) {
|
|
1899
|
-
const ret = arg0.size;
|
|
2032
|
+
const ret = getObject(arg0).size;
|
|
1900
2033
|
return ret;
|
|
1901
2034
|
};
|
|
1902
2035
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1903
|
-
const ret = arg1.stack;
|
|
1904
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
2036
|
+
const ret = getObject(arg1).stack;
|
|
2037
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1905
2038
|
const len1 = WASM_VECTOR_LEN;
|
|
1906
2039
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1907
2040
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1908
2041
|
};
|
|
1909
2042
|
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1910
2043
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1911
|
-
return isLikeNone(ret) ? 0 :
|
|
2044
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1912
2045
|
};
|
|
1913
2046
|
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1914
2047
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1915
|
-
return isLikeNone(ret) ? 0 :
|
|
2048
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1916
2049
|
};
|
|
1917
2050
|
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1918
2051
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1919
|
-
return isLikeNone(ret) ? 0 :
|
|
2052
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1920
2053
|
};
|
|
1921
2054
|
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1922
2055
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1923
|
-
return isLikeNone(ret) ? 0 :
|
|
2056
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1924
2057
|
};
|
|
1925
2058
|
imports.wbg.__wbg_submit_f635072bb3d05faa = function(arg0, arg1) {
|
|
1926
|
-
arg0.submit(arg1);
|
|
2059
|
+
getObject(arg0).submit(getObject(arg1));
|
|
1927
2060
|
};
|
|
1928
2061
|
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1929
|
-
const ret = arg0.then(arg1, arg2);
|
|
1930
|
-
return ret;
|
|
2062
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2063
|
+
return addHeapObject(ret);
|
|
1931
2064
|
};
|
|
1932
2065
|
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1933
|
-
const ret = arg0.then(arg1);
|
|
1934
|
-
return ret;
|
|
2066
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2067
|
+
return addHeapObject(ret);
|
|
1935
2068
|
};
|
|
1936
2069
|
imports.wbg.__wbg_timeEnd_46ed224117e5f2d2 = function(arg0, arg1) {
|
|
1937
2070
|
console.timeEnd(getStringFromWasm0(arg0, arg1));
|
|
@@ -1940,70 +2073,68 @@ function __wbg_get_imports() {
|
|
|
1940
2073
|
console.time(getStringFromWasm0(arg0, arg1));
|
|
1941
2074
|
};
|
|
1942
2075
|
imports.wbg.__wbg_type_c0d5d83032e9858a = function(arg0) {
|
|
1943
|
-
const ret = arg0.type;
|
|
2076
|
+
const ret = getObject(arg0).type;
|
|
1944
2077
|
return (__wbindgen_enum_GpuCompilationMessageType.indexOf(ret) + 1 || 4) - 1;
|
|
1945
2078
|
};
|
|
1946
2079
|
imports.wbg.__wbg_unmap_8c2e8131b2aaa844 = function(arg0) {
|
|
1947
|
-
arg0.unmap();
|
|
2080
|
+
getObject(arg0).unmap();
|
|
1948
2081
|
};
|
|
1949
2082
|
imports.wbg.__wbg_usage_13caa02888040e9f = function(arg0) {
|
|
1950
|
-
const ret = arg0.usage;
|
|
2083
|
+
const ret = getObject(arg0).usage;
|
|
1951
2084
|
return ret;
|
|
1952
2085
|
};
|
|
1953
2086
|
imports.wbg.__wbg_valueOf_663ea9f1ad0d6eda = function(arg0) {
|
|
1954
|
-
const ret = arg0.valueOf();
|
|
1955
|
-
return ret;
|
|
2087
|
+
const ret = getObject(arg0).valueOf();
|
|
2088
|
+
return addHeapObject(ret);
|
|
1956
2089
|
};
|
|
1957
2090
|
imports.wbg.__wbg_warn_6e567d0d926ff881 = function(arg0) {
|
|
1958
|
-
console.warn(arg0);
|
|
2091
|
+
console.warn(getObject(arg0));
|
|
1959
2092
|
};
|
|
1960
2093
|
imports.wbg.__wbg_wasmvisualiser_new = function(arg0) {
|
|
1961
2094
|
const ret = WasmVisualiser.__wrap(arg0);
|
|
1962
|
-
return ret;
|
|
2095
|
+
return addHeapObject(ret);
|
|
1963
2096
|
};
|
|
1964
2097
|
imports.wbg.__wbg_width_dd0cfe94d42f5143 = function(arg0) {
|
|
1965
|
-
const ret = arg0.width;
|
|
2098
|
+
const ret = getObject(arg0).width;
|
|
1966
2099
|
return ret;
|
|
1967
2100
|
};
|
|
1968
2101
|
imports.wbg.__wbg_writeBuffer_5ca4981365eb5ac0 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1969
|
-
arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
2102
|
+
getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
1970
2103
|
};
|
|
1971
2104
|
imports.wbg.__wbg_writeTexture_246118eb2f5a1592 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1972
|
-
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
2105
|
+
getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
1973
2106
|
};
|
|
1974
2107
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1975
2108
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1976
2109
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1977
|
-
return ret;
|
|
2110
|
+
return addHeapObject(ret);
|
|
1978
2111
|
};
|
|
1979
|
-
imports.wbg.
|
|
1980
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1981
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1982
|
-
return ret;
|
|
2112
|
+
imports.wbg.__wbindgen_cast_4131bd36079921a0 = function(arg0, arg1) {
|
|
2113
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2988, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 2989, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2114
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_10192, __wasm_bindgen_func_elem_10256);
|
|
2115
|
+
return addHeapObject(ret);
|
|
2116
|
+
};
|
|
2117
|
+
imports.wbg.__wbindgen_cast_4ebfb3f8f53af193 = function(arg0, arg1) {
|
|
2118
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3193, function: Function { arguments: [Externref], shim_idx: 3194, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2119
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_11323, __wasm_bindgen_func_elem_11338);
|
|
2120
|
+
return addHeapObject(ret);
|
|
1983
2121
|
};
|
|
1984
2122
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1985
2123
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1986
2124
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1987
|
-
return ret;
|
|
2125
|
+
return addHeapObject(ret);
|
|
1988
2126
|
};
|
|
1989
2127
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1990
2128
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1991
2129
|
const ret = arg0;
|
|
1992
|
-
return ret;
|
|
2130
|
+
return addHeapObject(ret);
|
|
1993
2131
|
};
|
|
1994
|
-
imports.wbg.
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
return ret;
|
|
2132
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2133
|
+
const ret = getObject(arg0);
|
|
2134
|
+
return addHeapObject(ret);
|
|
1998
2135
|
};
|
|
1999
|
-
imports.wbg.
|
|
2000
|
-
|
|
2001
|
-
const offset = table.grow(4);
|
|
2002
|
-
table.set(0, undefined);
|
|
2003
|
-
table.set(offset + 0, undefined);
|
|
2004
|
-
table.set(offset + 1, null);
|
|
2005
|
-
table.set(offset + 2, true);
|
|
2006
|
-
table.set(offset + 3, false);
|
|
2136
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2137
|
+
takeObject(arg0);
|
|
2007
2138
|
};
|
|
2008
2139
|
|
|
2009
2140
|
return imports;
|
|
@@ -2018,7 +2149,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
2018
2149
|
cachedUint8ArrayMemory0 = null;
|
|
2019
2150
|
|
|
2020
2151
|
|
|
2021
|
-
|
|
2152
|
+
|
|
2022
2153
|
return wasm;
|
|
2023
2154
|
}
|
|
2024
2155
|
|