sci-form-wasm 0.10.1 → 0.10.5
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/sci_form_wasm.d.ts +63 -30
- package/sci_form_wasm.js +989 -63
- package/sci_form_wasm_bg.wasm +0 -0
package/sci_form_wasm.js
CHANGED
|
@@ -21,7 +21,7 @@ export function analyze_graph_features(smiles) {
|
|
|
21
21
|
return getStringFromWasm0(r0, r1);
|
|
22
22
|
} finally {
|
|
23
23
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
24
|
-
wasm.
|
|
24
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -51,7 +51,7 @@ export function analyze_stereo(smiles, coords_flat) {
|
|
|
51
51
|
return getStringFromWasm0(r0, r1);
|
|
52
52
|
} finally {
|
|
53
53
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
54
|
-
wasm.
|
|
54
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -87,7 +87,7 @@ export function assemble_framework(topology, metal, geometry, lattice_a, superce
|
|
|
87
87
|
return getStringFromWasm0(r0, r1);
|
|
88
88
|
} finally {
|
|
89
89
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
90
|
-
wasm.
|
|
90
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -115,7 +115,7 @@ export function butina_cluster(conformers_json, rmsd_cutoff) {
|
|
|
115
115
|
return getStringFromWasm0(r0, r1);
|
|
116
116
|
} finally {
|
|
117
117
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
118
|
-
wasm.
|
|
118
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -146,7 +146,7 @@ export function compare_methods(smiles, elements, coords_flat, allow_experimenta
|
|
|
146
146
|
return getStringFromWasm0(r0, r1);
|
|
147
147
|
} finally {
|
|
148
148
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
149
|
-
wasm.
|
|
149
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -173,7 +173,7 @@ export function compute_ani(elements_json, coords_flat_json) {
|
|
|
173
173
|
return getStringFromWasm0(r0, r1);
|
|
174
174
|
} finally {
|
|
175
175
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
176
|
-
wasm.
|
|
176
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -200,7 +200,7 @@ export function compute_bond_orders(elements, coords_flat) {
|
|
|
200
200
|
return getStringFromWasm0(r0, r1);
|
|
201
201
|
} finally {
|
|
202
202
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
203
|
-
wasm.
|
|
203
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
@@ -224,7 +224,7 @@ export function compute_charges(smiles) {
|
|
|
224
224
|
return getStringFromWasm0(r0, r1);
|
|
225
225
|
} finally {
|
|
226
226
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
227
|
-
wasm.
|
|
227
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -251,7 +251,7 @@ export function compute_dipole(elements, coords_flat) {
|
|
|
251
251
|
return getStringFromWasm0(r0, r1);
|
|
252
252
|
} finally {
|
|
253
253
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
254
|
-
wasm.
|
|
254
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
@@ -282,7 +282,7 @@ export function compute_dos(elements, coords_flat, sigma, e_min, e_max, n_points
|
|
|
282
282
|
return getStringFromWasm0(r0, r1);
|
|
283
283
|
} finally {
|
|
284
284
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
285
|
-
wasm.
|
|
285
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -310,7 +310,7 @@ export function compute_ecfp(smiles, radius, n_bits) {
|
|
|
310
310
|
return getStringFromWasm0(r0, r1);
|
|
311
311
|
} finally {
|
|
312
312
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
313
|
-
wasm.
|
|
313
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -334,7 +334,7 @@ export function compute_empirical_pka(smiles) {
|
|
|
334
334
|
return getStringFromWasm0(r0, r1);
|
|
335
335
|
} finally {
|
|
336
336
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
337
|
-
wasm.
|
|
337
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
|
|
@@ -363,10 +363,48 @@ export function compute_esp(elements, coords_flat, spacing, padding) {
|
|
|
363
363
|
return getStringFromWasm0(r0, r1);
|
|
364
364
|
} finally {
|
|
365
365
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
366
|
-
wasm.
|
|
366
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
/**
|
|
371
|
+
* @param {string} elements
|
|
372
|
+
* @param {string} coords_flat
|
|
373
|
+
* @param {number} spacing
|
|
374
|
+
* @param {number} padding
|
|
375
|
+
* @param {string} execution_mode
|
|
376
|
+
* @returns {Promise<string>}
|
|
377
|
+
*/
|
|
378
|
+
export function compute_esp_grid_accelerated(elements, coords_flat, spacing, padding, execution_mode) {
|
|
379
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
380
|
+
const len0 = WASM_VECTOR_LEN;
|
|
381
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
382
|
+
const len1 = WASM_VECTOR_LEN;
|
|
383
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
384
|
+
const len2 = WASM_VECTOR_LEN;
|
|
385
|
+
const ret = wasm.compute_esp_grid_accelerated(ptr0, len0, ptr1, len1, spacing, padding, ptr2, len2);
|
|
386
|
+
return takeObject(ret);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* @param {string} elements
|
|
391
|
+
* @param {string} coords_flat
|
|
392
|
+
* @param {number} spacing
|
|
393
|
+
* @param {number} padding
|
|
394
|
+
* @param {string} execution_mode
|
|
395
|
+
* @returns {Promise<Float64Array>}
|
|
396
|
+
*/
|
|
397
|
+
export function compute_esp_grid_accelerated_typed(elements, coords_flat, spacing, padding, execution_mode) {
|
|
398
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
399
|
+
const len0 = WASM_VECTOR_LEN;
|
|
400
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
401
|
+
const len1 = WASM_VECTOR_LEN;
|
|
402
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
403
|
+
const len2 = WASM_VECTOR_LEN;
|
|
404
|
+
const ret = wasm.compute_esp_grid_accelerated_typed(ptr0, len0, ptr1, len1, spacing, padding, ptr2, len2);
|
|
405
|
+
return takeObject(ret);
|
|
406
|
+
}
|
|
407
|
+
|
|
370
408
|
/**
|
|
371
409
|
* Get ESP grid metadata (origin, spacing, dimensions) as JSON.
|
|
372
410
|
* @param {string} elements
|
|
@@ -392,7 +430,7 @@ export function compute_esp_grid_info(elements, coords_flat, spacing, padding) {
|
|
|
392
430
|
return getStringFromWasm0(r0, r1);
|
|
393
431
|
} finally {
|
|
394
432
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
395
|
-
wasm.
|
|
433
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
396
434
|
}
|
|
397
435
|
}
|
|
398
436
|
|
|
@@ -436,7 +474,7 @@ export function compute_frontier_descriptors(elements, coords_flat) {
|
|
|
436
474
|
return getStringFromWasm0(r0, r1);
|
|
437
475
|
} finally {
|
|
438
476
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
439
|
-
wasm.
|
|
477
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
440
478
|
}
|
|
441
479
|
}
|
|
442
480
|
|
|
@@ -463,7 +501,7 @@ export function compute_fukui_descriptors(elements, coords_flat) {
|
|
|
463
501
|
return getStringFromWasm0(r0, r1);
|
|
464
502
|
} finally {
|
|
465
503
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
466
|
-
wasm.
|
|
504
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
467
505
|
}
|
|
468
506
|
}
|
|
469
507
|
|
|
@@ -499,7 +537,7 @@ export function compute_gb_solvation(elements, coords_flat, charges, solvent_die
|
|
|
499
537
|
return getStringFromWasm0(r0, r1);
|
|
500
538
|
} finally {
|
|
501
539
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
502
|
-
wasm.
|
|
540
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
503
541
|
}
|
|
504
542
|
}
|
|
505
543
|
|
|
@@ -526,7 +564,7 @@ export function compute_hf3c(elements_json, coords_flat_json) {
|
|
|
526
564
|
return getStringFromWasm0(r0, r1);
|
|
527
565
|
} finally {
|
|
528
566
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
529
|
-
wasm.
|
|
567
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
530
568
|
}
|
|
531
569
|
}
|
|
532
570
|
|
|
@@ -556,7 +594,7 @@ export function compute_hf3c_custom(elements_json, coords_flat_json, max_scf_ite
|
|
|
556
594
|
return getStringFromWasm0(r0, r1);
|
|
557
595
|
} finally {
|
|
558
596
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
559
|
-
wasm.
|
|
597
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
560
598
|
}
|
|
561
599
|
}
|
|
562
600
|
|
|
@@ -581,7 +619,7 @@ export function compute_hose_codes(smiles, max_radius) {
|
|
|
581
619
|
return getStringFromWasm0(r0, r1);
|
|
582
620
|
} finally {
|
|
583
621
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
584
|
-
wasm.
|
|
622
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
585
623
|
}
|
|
586
624
|
}
|
|
587
625
|
|
|
@@ -609,7 +647,7 @@ export function compute_ir_spectrum(analysis_json, gamma, wn_min, wn_max, n_poin
|
|
|
609
647
|
return getStringFromWasm0(r0, r1);
|
|
610
648
|
} finally {
|
|
611
649
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
612
|
-
wasm.
|
|
650
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
613
651
|
}
|
|
614
652
|
}
|
|
615
653
|
|
|
@@ -647,7 +685,7 @@ export function compute_md_trajectory(smiles, coords_json, n_steps, dt_fs, seed)
|
|
|
647
685
|
return getStringFromWasm0(r0, r1);
|
|
648
686
|
} finally {
|
|
649
687
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
650
|
-
wasm.
|
|
688
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
651
689
|
}
|
|
652
690
|
}
|
|
653
691
|
|
|
@@ -682,7 +720,7 @@ export function compute_md_trajectory_nvt(smiles, coords_json, n_steps, dt_fs, s
|
|
|
682
720
|
return getStringFromWasm0(r0, r1);
|
|
683
721
|
} finally {
|
|
684
722
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
685
|
-
wasm.
|
|
723
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
686
724
|
}
|
|
687
725
|
}
|
|
688
726
|
|
|
@@ -706,7 +744,7 @@ export function compute_ml_properties(smiles) {
|
|
|
706
744
|
return getStringFromWasm0(r0, r1);
|
|
707
745
|
} finally {
|
|
708
746
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
709
|
-
wasm.
|
|
747
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
710
748
|
}
|
|
711
749
|
}
|
|
712
750
|
|
|
@@ -733,7 +771,7 @@ export function compute_mmff94_energy(smiles, coords) {
|
|
|
733
771
|
return getStringFromWasm0(r0, r1);
|
|
734
772
|
} finally {
|
|
735
773
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
736
|
-
wasm.
|
|
774
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
737
775
|
}
|
|
738
776
|
}
|
|
739
777
|
|
|
@@ -757,7 +795,7 @@ export function compute_molecular_descriptors(smiles) {
|
|
|
757
795
|
return getStringFromWasm0(r0, r1);
|
|
758
796
|
} finally {
|
|
759
797
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
760
|
-
wasm.
|
|
798
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
761
799
|
}
|
|
762
800
|
}
|
|
763
801
|
|
|
@@ -790,7 +828,7 @@ export function compute_nmr_spectrum(smiles, nucleus, gamma, ppm_min, ppm_max, n
|
|
|
790
828
|
return getStringFromWasm0(r0, r1);
|
|
791
829
|
} finally {
|
|
792
830
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
793
|
-
wasm.
|
|
831
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
794
832
|
}
|
|
795
833
|
}
|
|
796
834
|
|
|
@@ -820,7 +858,7 @@ export function compute_nonpolar_solvation(elements, coords_flat, probe_radius)
|
|
|
820
858
|
return getStringFromWasm0(r0, r1);
|
|
821
859
|
} finally {
|
|
822
860
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
823
|
-
wasm.
|
|
861
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
824
862
|
}
|
|
825
863
|
}
|
|
826
864
|
|
|
@@ -861,10 +899,34 @@ export function compute_orbital_mesh(elements_json, coords_flat_json, method, mo
|
|
|
861
899
|
return getStringFromWasm0(r0, r1);
|
|
862
900
|
} finally {
|
|
863
901
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
864
|
-
wasm.
|
|
902
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
865
903
|
}
|
|
866
904
|
}
|
|
867
905
|
|
|
906
|
+
/**
|
|
907
|
+
* @param {string} elements_json
|
|
908
|
+
* @param {string} coords_flat_json
|
|
909
|
+
* @param {string} method
|
|
910
|
+
* @param {number} mo_index
|
|
911
|
+
* @param {number} spacing
|
|
912
|
+
* @param {number} padding
|
|
913
|
+
* @param {number} isovalue
|
|
914
|
+
* @param {string} execution_mode
|
|
915
|
+
* @returns {Promise<string>}
|
|
916
|
+
*/
|
|
917
|
+
export function compute_orbital_mesh_accelerated(elements_json, coords_flat_json, method, mo_index, spacing, padding, isovalue, execution_mode) {
|
|
918
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
919
|
+
const len0 = WASM_VECTOR_LEN;
|
|
920
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
921
|
+
const len1 = WASM_VECTOR_LEN;
|
|
922
|
+
const ptr2 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
923
|
+
const len2 = WASM_VECTOR_LEN;
|
|
924
|
+
const ptr3 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
925
|
+
const len3 = WASM_VECTOR_LEN;
|
|
926
|
+
const ret = wasm.compute_orbital_mesh_accelerated(ptr0, len0, ptr1, len1, ptr2, len2, mo_index, spacing, padding, isovalue, ptr3, len3);
|
|
927
|
+
return takeObject(ret);
|
|
928
|
+
}
|
|
929
|
+
|
|
868
930
|
/**
|
|
869
931
|
* Run a PM3 semi-empirical calculation.
|
|
870
932
|
* @param {string} elements_json
|
|
@@ -888,7 +950,7 @@ export function compute_pm3(elements_json, coords_flat_json) {
|
|
|
888
950
|
return getStringFromWasm0(r0, r1);
|
|
889
951
|
} finally {
|
|
890
952
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
891
|
-
wasm.
|
|
953
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
892
954
|
}
|
|
893
955
|
}
|
|
894
956
|
|
|
@@ -915,7 +977,7 @@ export function compute_population(elements, coords_flat) {
|
|
|
915
977
|
return getStringFromWasm0(r0, r1);
|
|
916
978
|
} finally {
|
|
917
979
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
918
|
-
wasm.
|
|
980
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
919
981
|
}
|
|
920
982
|
}
|
|
921
983
|
|
|
@@ -942,7 +1004,7 @@ export function compute_reactivity_ranking(elements, coords_flat) {
|
|
|
942
1004
|
return getStringFromWasm0(r0, r1);
|
|
943
1005
|
} finally {
|
|
944
1006
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
945
|
-
wasm.
|
|
1007
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
946
1008
|
}
|
|
947
1009
|
}
|
|
948
1010
|
|
|
@@ -969,7 +1031,7 @@ export function compute_rmsd(coords, reference) {
|
|
|
969
1031
|
return getStringFromWasm0(r0, r1);
|
|
970
1032
|
} finally {
|
|
971
1033
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
972
|
-
wasm.
|
|
1034
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
973
1035
|
}
|
|
974
1036
|
}
|
|
975
1037
|
|
|
@@ -995,7 +1057,7 @@ export function compute_rmsd_matrix(conformers_json) {
|
|
|
995
1057
|
return getStringFromWasm0(r0, r1);
|
|
996
1058
|
} finally {
|
|
997
1059
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
998
|
-
wasm.
|
|
1060
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
999
1061
|
}
|
|
1000
1062
|
}
|
|
1001
1063
|
|
|
@@ -1023,7 +1085,7 @@ export function compute_sasa(elements, coords_flat, probe_radius) {
|
|
|
1023
1085
|
return getStringFromWasm0(r0, r1);
|
|
1024
1086
|
} finally {
|
|
1025
1087
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1026
|
-
wasm.
|
|
1088
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1027
1089
|
}
|
|
1028
1090
|
}
|
|
1029
1091
|
|
|
@@ -1063,7 +1125,7 @@ export function compute_simplified_neb_path(smiles, start_coords_json, end_coord
|
|
|
1063
1125
|
return getStringFromWasm0(r0, r1);
|
|
1064
1126
|
} finally {
|
|
1065
1127
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1066
|
-
wasm.
|
|
1128
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1067
1129
|
}
|
|
1068
1130
|
}
|
|
1069
1131
|
|
|
@@ -1089,7 +1151,7 @@ export function compute_sssr(smiles) {
|
|
|
1089
1151
|
return getStringFromWasm0(r0, r1);
|
|
1090
1152
|
} finally {
|
|
1091
1153
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1092
|
-
wasm.
|
|
1154
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1093
1155
|
}
|
|
1094
1156
|
}
|
|
1095
1157
|
|
|
@@ -1123,7 +1185,7 @@ export function compute_stda_uvvis(elements_json, coords_flat_json, sigma, e_min
|
|
|
1123
1185
|
return getStringFromWasm0(r0, r1);
|
|
1124
1186
|
} finally {
|
|
1125
1187
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1126
|
-
wasm.
|
|
1188
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1127
1189
|
}
|
|
1128
1190
|
}
|
|
1129
1191
|
|
|
@@ -1152,7 +1214,7 @@ export function compute_tanimoto(fp1_json, fp2_json) {
|
|
|
1152
1214
|
return getStringFromWasm0(r0, r1);
|
|
1153
1215
|
} finally {
|
|
1154
1216
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1155
|
-
wasm.
|
|
1217
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1156
1218
|
}
|
|
1157
1219
|
}
|
|
1158
1220
|
|
|
@@ -1179,7 +1241,7 @@ export function compute_topology(elements, coords_flat) {
|
|
|
1179
1241
|
return getStringFromWasm0(r0, r1);
|
|
1180
1242
|
} finally {
|
|
1181
1243
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1182
|
-
wasm.
|
|
1244
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1183
1245
|
}
|
|
1184
1246
|
}
|
|
1185
1247
|
|
|
@@ -1206,7 +1268,7 @@ export function compute_uff_energy(smiles, coords) {
|
|
|
1206
1268
|
return getStringFromWasm0(r0, r1);
|
|
1207
1269
|
} finally {
|
|
1208
1270
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1209
|
-
wasm.
|
|
1271
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1210
1272
|
}
|
|
1211
1273
|
}
|
|
1212
1274
|
|
|
@@ -1233,7 +1295,7 @@ export function compute_uff_energy_with_aromatic_heuristics(smiles, coords) {
|
|
|
1233
1295
|
return getStringFromWasm0(r0, r1);
|
|
1234
1296
|
} finally {
|
|
1235
1297
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1236
|
-
wasm.
|
|
1298
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1237
1299
|
}
|
|
1238
1300
|
}
|
|
1239
1301
|
|
|
@@ -1264,7 +1326,7 @@ export function compute_uv_vis_spectrum(elements, coords_flat, sigma, e_min, e_m
|
|
|
1264
1326
|
return getStringFromWasm0(r0, r1);
|
|
1265
1327
|
} finally {
|
|
1266
1328
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1267
|
-
wasm.
|
|
1329
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1268
1330
|
}
|
|
1269
1331
|
}
|
|
1270
1332
|
|
|
@@ -1295,7 +1357,7 @@ export function compute_vibrational_analysis(elements_json, coords_flat_json, me
|
|
|
1295
1357
|
return getStringFromWasm0(r0, r1);
|
|
1296
1358
|
} finally {
|
|
1297
1359
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1298
|
-
wasm.
|
|
1360
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1299
1361
|
}
|
|
1300
1362
|
}
|
|
1301
1363
|
|
|
@@ -1322,7 +1384,7 @@ export function compute_xtb(elements_json, coords_flat_json) {
|
|
|
1322
1384
|
return getStringFromWasm0(r0, r1);
|
|
1323
1385
|
} finally {
|
|
1324
1386
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1325
|
-
wasm.
|
|
1387
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1326
1388
|
}
|
|
1327
1389
|
}
|
|
1328
1390
|
|
|
@@ -1349,7 +1411,7 @@ export function create_unit_cell(a, b, c, alpha, beta, gamma) {
|
|
|
1349
1411
|
return getStringFromWasm0(r0, r1);
|
|
1350
1412
|
} finally {
|
|
1351
1413
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1352
|
-
wasm.
|
|
1414
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1353
1415
|
}
|
|
1354
1416
|
}
|
|
1355
1417
|
|
|
@@ -1381,10 +1443,48 @@ export function eht_calculate(elements, coords_flat, k) {
|
|
|
1381
1443
|
return getStringFromWasm0(r0, r1);
|
|
1382
1444
|
} finally {
|
|
1383
1445
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1384
|
-
wasm.
|
|
1446
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1385
1447
|
}
|
|
1386
1448
|
}
|
|
1387
1449
|
|
|
1450
|
+
/**
|
|
1451
|
+
* @param {string} elements
|
|
1452
|
+
* @param {string} coords_flat
|
|
1453
|
+
* @param {number} spacing
|
|
1454
|
+
* @param {number} padding
|
|
1455
|
+
* @param {string} execution_mode
|
|
1456
|
+
* @returns {Promise<string>}
|
|
1457
|
+
*/
|
|
1458
|
+
export function eht_density_grid_accelerated(elements, coords_flat, spacing, padding, execution_mode) {
|
|
1459
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1460
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1461
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1462
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1463
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1464
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1465
|
+
const ret = wasm.eht_density_grid_accelerated(ptr0, len0, ptr1, len1, spacing, padding, ptr2, len2);
|
|
1466
|
+
return takeObject(ret);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* @param {string} elements
|
|
1471
|
+
* @param {string} coords_flat
|
|
1472
|
+
* @param {number} spacing
|
|
1473
|
+
* @param {number} padding
|
|
1474
|
+
* @param {string} execution_mode
|
|
1475
|
+
* @returns {Promise<Float32Array>}
|
|
1476
|
+
*/
|
|
1477
|
+
export function eht_density_grid_accelerated_typed(elements, coords_flat, spacing, padding, execution_mode) {
|
|
1478
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1479
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1480
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1481
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1482
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1483
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1484
|
+
const ret = wasm.eht_density_grid_accelerated_typed(ptr0, len0, ptr1, len1, spacing, padding, ptr2, len2);
|
|
1485
|
+
return takeObject(ret);
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1388
1488
|
/**
|
|
1389
1489
|
* Run EHT or route to UFF fallback based on support/confidence.
|
|
1390
1490
|
* @param {string} smiles
|
|
@@ -1412,10 +1512,50 @@ export function eht_or_uff_fallback(smiles, elements, coords_flat, allow_experim
|
|
|
1412
1512
|
return getStringFromWasm0(r0, r1);
|
|
1413
1513
|
} finally {
|
|
1414
1514
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1415
|
-
wasm.
|
|
1515
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1416
1516
|
}
|
|
1417
1517
|
}
|
|
1418
1518
|
|
|
1519
|
+
/**
|
|
1520
|
+
* @param {string} elements
|
|
1521
|
+
* @param {string} coords_flat
|
|
1522
|
+
* @param {number} mo_index
|
|
1523
|
+
* @param {number} spacing
|
|
1524
|
+
* @param {number} padding
|
|
1525
|
+
* @param {string} execution_mode
|
|
1526
|
+
* @returns {Promise<string>}
|
|
1527
|
+
*/
|
|
1528
|
+
export function eht_orbital_grid_accelerated(elements, coords_flat, mo_index, spacing, padding, execution_mode) {
|
|
1529
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1530
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1531
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1532
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1533
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1534
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1535
|
+
const ret = wasm.eht_orbital_grid_accelerated(ptr0, len0, ptr1, len1, mo_index, spacing, padding, ptr2, len2);
|
|
1536
|
+
return takeObject(ret);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* @param {string} elements
|
|
1541
|
+
* @param {string} coords_flat
|
|
1542
|
+
* @param {number} mo_index
|
|
1543
|
+
* @param {number} spacing
|
|
1544
|
+
* @param {number} padding
|
|
1545
|
+
* @param {string} execution_mode
|
|
1546
|
+
* @returns {Promise<Float32Array>}
|
|
1547
|
+
*/
|
|
1548
|
+
export function eht_orbital_grid_accelerated_typed(elements, coords_flat, mo_index, spacing, padding, execution_mode) {
|
|
1549
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1551
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1552
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1553
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1554
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1555
|
+
const ret = wasm.eht_orbital_grid_accelerated_typed(ptr0, len0, ptr1, len1, mo_index, spacing, padding, ptr2, len2);
|
|
1556
|
+
return takeObject(ret);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1419
1559
|
/**
|
|
1420
1560
|
* Compute orbital grid from precomputed EHT coefficients as Float32Array.
|
|
1421
1561
|
* @param {string} elements
|
|
@@ -1479,7 +1619,7 @@ export function eht_orbital_mesh(elements, coords_flat, mo_index, spacing, isova
|
|
|
1479
1619
|
return getStringFromWasm0(r0, r1);
|
|
1480
1620
|
} finally {
|
|
1481
1621
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1482
|
-
wasm.
|
|
1622
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1483
1623
|
}
|
|
1484
1624
|
}
|
|
1485
1625
|
|
|
@@ -1503,7 +1643,7 @@ export function eht_support(elements) {
|
|
|
1503
1643
|
return getStringFromWasm0(r0, r1);
|
|
1504
1644
|
} finally {
|
|
1505
1645
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1506
|
-
wasm.
|
|
1646
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1507
1647
|
}
|
|
1508
1648
|
}
|
|
1509
1649
|
|
|
@@ -1531,7 +1671,7 @@ export function eht_volumetric_grid_info(elements, coords_flat, spacing, padding
|
|
|
1531
1671
|
return getStringFromWasm0(r0, r1);
|
|
1532
1672
|
} finally {
|
|
1533
1673
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1534
|
-
wasm.
|
|
1674
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1535
1675
|
}
|
|
1536
1676
|
}
|
|
1537
1677
|
|
|
@@ -1558,7 +1698,7 @@ export function embed(smiles, seed) {
|
|
|
1558
1698
|
return getStringFromWasm0(r0, r1);
|
|
1559
1699
|
} finally {
|
|
1560
1700
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1561
|
-
wasm.
|
|
1701
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1562
1702
|
}
|
|
1563
1703
|
}
|
|
1564
1704
|
|
|
@@ -1585,7 +1725,7 @@ export function embed_batch(smiles_list, seed) {
|
|
|
1585
1725
|
return getStringFromWasm0(r0, r1);
|
|
1586
1726
|
} finally {
|
|
1587
1727
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1588
|
-
wasm.
|
|
1728
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1589
1729
|
}
|
|
1590
1730
|
}
|
|
1591
1731
|
|
|
@@ -1612,7 +1752,7 @@ export function embed_coords(smiles, seed) {
|
|
|
1612
1752
|
return getStringFromWasm0(r0, r1);
|
|
1613
1753
|
} finally {
|
|
1614
1754
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1615
|
-
wasm.
|
|
1755
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1616
1756
|
}
|
|
1617
1757
|
}
|
|
1618
1758
|
|
|
@@ -1651,6 +1791,14 @@ export function initThreadPool(num_threads) {
|
|
|
1651
1791
|
return takeObject(ret);
|
|
1652
1792
|
}
|
|
1653
1793
|
|
|
1794
|
+
/**
|
|
1795
|
+
* @returns {Promise<string>}
|
|
1796
|
+
*/
|
|
1797
|
+
export function init_webgpu() {
|
|
1798
|
+
const ret = wasm.init_webgpu();
|
|
1799
|
+
return takeObject(ret);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1654
1802
|
/**
|
|
1655
1803
|
* Pack a batch of conformer results into Arrow-compatible columnar format.
|
|
1656
1804
|
* @param {string} results_json
|
|
@@ -1671,7 +1819,7 @@ export function pack_batch_arrow(results_json) {
|
|
|
1671
1819
|
return getStringFromWasm0(r0, r1);
|
|
1672
1820
|
} finally {
|
|
1673
1821
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1674
|
-
wasm.
|
|
1822
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1675
1823
|
}
|
|
1676
1824
|
}
|
|
1677
1825
|
|
|
@@ -1695,7 +1843,7 @@ export function parse_smiles(smiles) {
|
|
|
1695
1843
|
return getStringFromWasm0(r0, r1);
|
|
1696
1844
|
} finally {
|
|
1697
1845
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1698
|
-
wasm.
|
|
1846
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1699
1847
|
}
|
|
1700
1848
|
}
|
|
1701
1849
|
|
|
@@ -1722,7 +1870,7 @@ export function predict_nmr_couplings(smiles, coords_flat_json) {
|
|
|
1722
1870
|
return getStringFromWasm0(r0, r1);
|
|
1723
1871
|
} finally {
|
|
1724
1872
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1725
|
-
wasm.
|
|
1873
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1726
1874
|
}
|
|
1727
1875
|
}
|
|
1728
1876
|
|
|
@@ -1746,7 +1894,7 @@ export function predict_nmr_shifts(smiles) {
|
|
|
1746
1894
|
return getStringFromWasm0(r0, r1);
|
|
1747
1895
|
} finally {
|
|
1748
1896
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1749
|
-
wasm.
|
|
1897
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1750
1898
|
}
|
|
1751
1899
|
}
|
|
1752
1900
|
|
|
@@ -1776,7 +1924,7 @@ export function search_conformers_with_uff(smiles, n_samples, seed, rmsd_thresho
|
|
|
1776
1924
|
return getStringFromWasm0(r0, r1);
|
|
1777
1925
|
} finally {
|
|
1778
1926
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1779
|
-
wasm.
|
|
1927
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1780
1928
|
}
|
|
1781
1929
|
}
|
|
1782
1930
|
|
|
@@ -1802,7 +1950,7 @@ export function split_worker_tasks(smiles_json, n_workers, seed) {
|
|
|
1802
1950
|
return getStringFromWasm0(r0, r1);
|
|
1803
1951
|
} finally {
|
|
1804
1952
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1805
|
-
wasm.
|
|
1953
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1806
1954
|
}
|
|
1807
1955
|
}
|
|
1808
1956
|
|
|
@@ -1826,7 +1974,7 @@ export function system_capabilities(elements) {
|
|
|
1826
1974
|
return getStringFromWasm0(r0, r1);
|
|
1827
1975
|
} finally {
|
|
1828
1976
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1829
|
-
wasm.
|
|
1977
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1830
1978
|
}
|
|
1831
1979
|
}
|
|
1832
1980
|
|
|
@@ -1850,7 +1998,7 @@ export function system_method_plan(elements) {
|
|
|
1850
1998
|
return getStringFromWasm0(r0, r1);
|
|
1851
1999
|
} finally {
|
|
1852
2000
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1853
|
-
wasm.
|
|
2001
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1854
2002
|
}
|
|
1855
2003
|
}
|
|
1856
2004
|
|
|
@@ -1871,7 +2019,7 @@ export function version() {
|
|
|
1871
2019
|
return getStringFromWasm0(r0, r1);
|
|
1872
2020
|
} finally {
|
|
1873
2021
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1874
|
-
wasm.
|
|
2022
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1875
2023
|
}
|
|
1876
2024
|
}
|
|
1877
2025
|
|
|
@@ -1920,9 +2068,52 @@ export function wbg_rayon_start_worker(receiver) {
|
|
|
1920
2068
|
wasm.wbg_rayon_start_worker(receiver);
|
|
1921
2069
|
}
|
|
1922
2070
|
|
|
2071
|
+
/**
|
|
2072
|
+
* @returns {string}
|
|
2073
|
+
*/
|
|
2074
|
+
export function webgpu_status() {
|
|
2075
|
+
let deferred1_0;
|
|
2076
|
+
let deferred1_1;
|
|
2077
|
+
try {
|
|
2078
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2079
|
+
wasm.webgpu_status(retptr);
|
|
2080
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2081
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2082
|
+
deferred1_0 = r0;
|
|
2083
|
+
deferred1_1 = r1;
|
|
2084
|
+
return getStringFromWasm0(r0, r1);
|
|
2085
|
+
} finally {
|
|
2086
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2087
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
1923
2091
|
function __wbg_get_imports(memory) {
|
|
1924
2092
|
const import0 = {
|
|
1925
2093
|
__proto__: null,
|
|
2094
|
+
__wbg_Window_43fb3fbc6e3ff9ae: function(arg0) {
|
|
2095
|
+
const ret = getObject(arg0).Window;
|
|
2096
|
+
return addHeapObject(ret);
|
|
2097
|
+
},
|
|
2098
|
+
__wbg_WorkerGlobalScope_63e2e0165cdd2553: function(arg0) {
|
|
2099
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
2100
|
+
return addHeapObject(ret);
|
|
2101
|
+
},
|
|
2102
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
2103
|
+
const ret = debugString(getObject(arg1));
|
|
2104
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2105
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2106
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2107
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2108
|
+
},
|
|
2109
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
2110
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2111
|
+
return ret;
|
|
2112
|
+
},
|
|
2113
|
+
__wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
|
|
2114
|
+
const ret = getObject(arg0) === null;
|
|
2115
|
+
return ret;
|
|
2116
|
+
},
|
|
1926
2117
|
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
1927
2118
|
const ret = getObject(arg0) === undefined;
|
|
1928
2119
|
return ret;
|
|
@@ -1935,9 +2126,109 @@ function __wbg_get_imports(memory) {
|
|
|
1935
2126
|
const ret = wasmModule;
|
|
1936
2127
|
return addHeapObject(ret);
|
|
1937
2128
|
},
|
|
2129
|
+
__wbg___wbindgen_rethrow_5d3a9250cec92549: function(arg0) {
|
|
2130
|
+
throw takeObject(arg0);
|
|
2131
|
+
},
|
|
1938
2132
|
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
1939
2133
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1940
2134
|
},
|
|
2135
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
2136
|
+
getObject(arg0)._wbg_cb_unref();
|
|
2137
|
+
},
|
|
2138
|
+
__wbg_async_b33e4cb28c6b2093: function(arg0) {
|
|
2139
|
+
const ret = getObject(arg0).async;
|
|
2140
|
+
return ret;
|
|
2141
|
+
},
|
|
2142
|
+
__wbg_beginComputePass_b47ce74250396195: function(arg0, arg1) {
|
|
2143
|
+
const ret = getObject(arg0).beginComputePass(getObject(arg1));
|
|
2144
|
+
return addHeapObject(ret);
|
|
2145
|
+
},
|
|
2146
|
+
__wbg_buffer_eb2779983eb67380: function(arg0) {
|
|
2147
|
+
const ret = getObject(arg0).buffer;
|
|
2148
|
+
return addHeapObject(ret);
|
|
2149
|
+
},
|
|
2150
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2151
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2152
|
+
return addHeapObject(ret);
|
|
2153
|
+
}, arguments); },
|
|
2154
|
+
__wbg_copyBufferToBuffer_cee30659bd9281d8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2155
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
2156
|
+
}, arguments); },
|
|
2157
|
+
__wbg_createBindGroupLayout_8434b2ca1c67ed7c: function() { return handleError(function (arg0, arg1) {
|
|
2158
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
2159
|
+
return addHeapObject(ret);
|
|
2160
|
+
}, arguments); },
|
|
2161
|
+
__wbg_createBindGroup_09a405d3732e552f: function(arg0, arg1) {
|
|
2162
|
+
const ret = getObject(arg0).createBindGroup(getObject(arg1));
|
|
2163
|
+
return addHeapObject(ret);
|
|
2164
|
+
},
|
|
2165
|
+
__wbg_createBuffer_4807623df15261fc: function() { return handleError(function (arg0, arg1) {
|
|
2166
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
2167
|
+
return addHeapObject(ret);
|
|
2168
|
+
}, arguments); },
|
|
2169
|
+
__wbg_createCommandEncoder_2cfb36a9df959430: function(arg0, arg1) {
|
|
2170
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
2171
|
+
return addHeapObject(ret);
|
|
2172
|
+
},
|
|
2173
|
+
__wbg_createComputePipeline_c1a3073a083fe452: function(arg0, arg1) {
|
|
2174
|
+
const ret = getObject(arg0).createComputePipeline(getObject(arg1));
|
|
2175
|
+
return addHeapObject(ret);
|
|
2176
|
+
},
|
|
2177
|
+
__wbg_createPipelineLayout_01da5651e0e87bbc: function(arg0, arg1) {
|
|
2178
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
2179
|
+
return addHeapObject(ret);
|
|
2180
|
+
},
|
|
2181
|
+
__wbg_createShaderModule_6484fb70fcc8846c: function(arg0, arg1) {
|
|
2182
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
2183
|
+
return addHeapObject(ret);
|
|
2184
|
+
},
|
|
2185
|
+
__wbg_data_a3d9ff9cdd801002: function(arg0) {
|
|
2186
|
+
const ret = getObject(arg0).data;
|
|
2187
|
+
return addHeapObject(ret);
|
|
2188
|
+
},
|
|
2189
|
+
__wbg_description_6531d48120ea7980: function(arg0, arg1) {
|
|
2190
|
+
const ret = getObject(arg1).description;
|
|
2191
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2192
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2193
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2194
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2195
|
+
},
|
|
2196
|
+
__wbg_dispatchWorkgroups_e286bc6ef3ee71db: function(arg0, arg1, arg2, arg3) {
|
|
2197
|
+
getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
2198
|
+
},
|
|
2199
|
+
__wbg_end_ed15855c4474ee1b: function(arg0) {
|
|
2200
|
+
getObject(arg0).end();
|
|
2201
|
+
},
|
|
2202
|
+
__wbg_finish_0d19d3fe39e7b92a: function(arg0, arg1) {
|
|
2203
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
2204
|
+
return addHeapObject(ret);
|
|
2205
|
+
},
|
|
2206
|
+
__wbg_finish_86dd5d4e76c839ce: function(arg0) {
|
|
2207
|
+
const ret = getObject(arg0).finish();
|
|
2208
|
+
return addHeapObject(ret);
|
|
2209
|
+
},
|
|
2210
|
+
__wbg_getMappedRange_8b2e2c9ca9eead6b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2211
|
+
const ret = getObject(arg0).getMappedRange(arg1, arg2);
|
|
2212
|
+
return addHeapObject(ret);
|
|
2213
|
+
}, arguments); },
|
|
2214
|
+
__wbg_gpu_e85436d24e893506: function(arg0) {
|
|
2215
|
+
const ret = getObject(arg0).gpu;
|
|
2216
|
+
return addHeapObject(ret);
|
|
2217
|
+
},
|
|
2218
|
+
__wbg_info_522be603710e00d9: function(arg0) {
|
|
2219
|
+
const ret = getObject(arg0).info;
|
|
2220
|
+
return addHeapObject(ret);
|
|
2221
|
+
},
|
|
2222
|
+
__wbg_instanceof_GpuAdapter_32c51925d44640f8: function(arg0) {
|
|
2223
|
+
let result;
|
|
2224
|
+
try {
|
|
2225
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
2226
|
+
} catch (_) {
|
|
2227
|
+
result = false;
|
|
2228
|
+
}
|
|
2229
|
+
const ret = result;
|
|
2230
|
+
return ret;
|
|
2231
|
+
},
|
|
1941
2232
|
__wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
|
|
1942
2233
|
let result;
|
|
1943
2234
|
try {
|
|
@@ -1948,6 +2239,13 @@ function __wbg_get_imports(memory) {
|
|
|
1948
2239
|
const ret = result;
|
|
1949
2240
|
return ret;
|
|
1950
2241
|
},
|
|
2242
|
+
__wbg_label_0bf5e1333615f5b4: function(arg0, arg1) {
|
|
2243
|
+
const ret = getObject(arg1).label;
|
|
2244
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2245
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2246
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2247
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2248
|
+
},
|
|
1951
2249
|
__wbg_length_259ee9d041e381ad: function(arg0) {
|
|
1952
2250
|
const ret = getObject(arg0).length;
|
|
1953
2251
|
return ret;
|
|
@@ -1956,6 +2254,202 @@ function __wbg_get_imports(memory) {
|
|
|
1956
2254
|
const ret = getObject(arg0).length;
|
|
1957
2255
|
return ret;
|
|
1958
2256
|
},
|
|
2257
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
2258
|
+
const ret = getObject(arg0).length;
|
|
2259
|
+
return ret;
|
|
2260
|
+
},
|
|
2261
|
+
__wbg_limits_c2df107734892a62: function(arg0) {
|
|
2262
|
+
const ret = getObject(arg0).limits;
|
|
2263
|
+
return addHeapObject(ret);
|
|
2264
|
+
},
|
|
2265
|
+
__wbg_mapAsync_2d462d9ad761b9f5: function(arg0, arg1, arg2, arg3) {
|
|
2266
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
2267
|
+
return addHeapObject(ret);
|
|
2268
|
+
},
|
|
2269
|
+
__wbg_maxBindGroups_73bb601586efc569: function(arg0) {
|
|
2270
|
+
const ret = getObject(arg0).maxBindGroups;
|
|
2271
|
+
return ret;
|
|
2272
|
+
},
|
|
2273
|
+
__wbg_maxBindingsPerBindGroup_13b2d0eec1dc2840: function(arg0) {
|
|
2274
|
+
const ret = getObject(arg0).maxBindingsPerBindGroup;
|
|
2275
|
+
return ret;
|
|
2276
|
+
},
|
|
2277
|
+
__wbg_maxBufferSize_7a685b6dac99fa57: function(arg0) {
|
|
2278
|
+
const ret = getObject(arg0).maxBufferSize;
|
|
2279
|
+
return ret;
|
|
2280
|
+
},
|
|
2281
|
+
__wbg_maxColorAttachmentBytesPerSample_bc1f830de8a908f2: function(arg0) {
|
|
2282
|
+
const ret = getObject(arg0).maxColorAttachmentBytesPerSample;
|
|
2283
|
+
return ret;
|
|
2284
|
+
},
|
|
2285
|
+
__wbg_maxColorAttachments_4952c282fa06607a: function(arg0) {
|
|
2286
|
+
const ret = getObject(arg0).maxColorAttachments;
|
|
2287
|
+
return ret;
|
|
2288
|
+
},
|
|
2289
|
+
__wbg_maxComputeInvocationsPerWorkgroup_b5bab4657d018738: function(arg0) {
|
|
2290
|
+
const ret = getObject(arg0).maxComputeInvocationsPerWorkgroup;
|
|
2291
|
+
return ret;
|
|
2292
|
+
},
|
|
2293
|
+
__wbg_maxComputeWorkgroupSizeX_eeeb0ea3d50b451c: function(arg0) {
|
|
2294
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeX;
|
|
2295
|
+
return ret;
|
|
2296
|
+
},
|
|
2297
|
+
__wbg_maxComputeWorkgroupSizeY_7f1c108f97d8843e: function(arg0) {
|
|
2298
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeY;
|
|
2299
|
+
return ret;
|
|
2300
|
+
},
|
|
2301
|
+
__wbg_maxComputeWorkgroupSizeZ_ec4ea5ceb6f6159e: function(arg0) {
|
|
2302
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeZ;
|
|
2303
|
+
return ret;
|
|
2304
|
+
},
|
|
2305
|
+
__wbg_maxComputeWorkgroupStorageSize_eca5a75f6a193b3d: function(arg0) {
|
|
2306
|
+
const ret = getObject(arg0).maxComputeWorkgroupStorageSize;
|
|
2307
|
+
return ret;
|
|
2308
|
+
},
|
|
2309
|
+
__wbg_maxComputeWorkgroupsPerDimension_6f970b8641b48f2b: function(arg0) {
|
|
2310
|
+
const ret = getObject(arg0).maxComputeWorkgroupsPerDimension;
|
|
2311
|
+
return ret;
|
|
2312
|
+
},
|
|
2313
|
+
__wbg_maxDynamicStorageBuffersPerPipelineLayout_52981da83da6ee2a: function(arg0) {
|
|
2314
|
+
const ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout;
|
|
2315
|
+
return ret;
|
|
2316
|
+
},
|
|
2317
|
+
__wbg_maxDynamicUniformBuffersPerPipelineLayout_8baeebbb1490ea1b: function(arg0) {
|
|
2318
|
+
const ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout;
|
|
2319
|
+
return ret;
|
|
2320
|
+
},
|
|
2321
|
+
__wbg_maxInterStageShaderVariables_33483c2d54ed9046: function(arg0) {
|
|
2322
|
+
const ret = getObject(arg0).maxInterStageShaderVariables;
|
|
2323
|
+
return ret;
|
|
2324
|
+
},
|
|
2325
|
+
__wbg_maxSampledTexturesPerShaderStage_62df33342aa2935a: function(arg0) {
|
|
2326
|
+
const ret = getObject(arg0).maxSampledTexturesPerShaderStage;
|
|
2327
|
+
return ret;
|
|
2328
|
+
},
|
|
2329
|
+
__wbg_maxSamplersPerShaderStage_a7bb066c3bf95792: function(arg0) {
|
|
2330
|
+
const ret = getObject(arg0).maxSamplersPerShaderStage;
|
|
2331
|
+
return ret;
|
|
2332
|
+
},
|
|
2333
|
+
__wbg_maxStorageBufferBindingSize_90befc286ec9ece4: function(arg0) {
|
|
2334
|
+
const ret = getObject(arg0).maxStorageBufferBindingSize;
|
|
2335
|
+
return ret;
|
|
2336
|
+
},
|
|
2337
|
+
__wbg_maxStorageBuffersPerShaderStage_8cd401ba4b99b087: function(arg0) {
|
|
2338
|
+
const ret = getObject(arg0).maxStorageBuffersPerShaderStage;
|
|
2339
|
+
return ret;
|
|
2340
|
+
},
|
|
2341
|
+
__wbg_maxStorageTexturesPerShaderStage_d2366b9b555fa5cd: function(arg0) {
|
|
2342
|
+
const ret = getObject(arg0).maxStorageTexturesPerShaderStage;
|
|
2343
|
+
return ret;
|
|
2344
|
+
},
|
|
2345
|
+
__wbg_maxTextureArrayLayers_d384b7674555c83f: function(arg0) {
|
|
2346
|
+
const ret = getObject(arg0).maxTextureArrayLayers;
|
|
2347
|
+
return ret;
|
|
2348
|
+
},
|
|
2349
|
+
__wbg_maxTextureDimension1D_d3d7845385623778: function(arg0) {
|
|
2350
|
+
const ret = getObject(arg0).maxTextureDimension1D;
|
|
2351
|
+
return ret;
|
|
2352
|
+
},
|
|
2353
|
+
__wbg_maxTextureDimension2D_107643b652f4c695: function(arg0) {
|
|
2354
|
+
const ret = getObject(arg0).maxTextureDimension2D;
|
|
2355
|
+
return ret;
|
|
2356
|
+
},
|
|
2357
|
+
__wbg_maxTextureDimension3D_b75b271327248bb5: function(arg0) {
|
|
2358
|
+
const ret = getObject(arg0).maxTextureDimension3D;
|
|
2359
|
+
return ret;
|
|
2360
|
+
},
|
|
2361
|
+
__wbg_maxUniformBufferBindingSize_fff1cb2289fffb24: function(arg0) {
|
|
2362
|
+
const ret = getObject(arg0).maxUniformBufferBindingSize;
|
|
2363
|
+
return ret;
|
|
2364
|
+
},
|
|
2365
|
+
__wbg_maxUniformBuffersPerShaderStage_cf8c13bbacf6d32e: function(arg0) {
|
|
2366
|
+
const ret = getObject(arg0).maxUniformBuffersPerShaderStage;
|
|
2367
|
+
return ret;
|
|
2368
|
+
},
|
|
2369
|
+
__wbg_maxVertexAttributes_4d013cbf345396a7: function(arg0) {
|
|
2370
|
+
const ret = getObject(arg0).maxVertexAttributes;
|
|
2371
|
+
return ret;
|
|
2372
|
+
},
|
|
2373
|
+
__wbg_maxVertexBufferArrayStride_e1c7379e9c120e54: function(arg0) {
|
|
2374
|
+
const ret = getObject(arg0).maxVertexBufferArrayStride;
|
|
2375
|
+
return ret;
|
|
2376
|
+
},
|
|
2377
|
+
__wbg_maxVertexBuffers_2168867fc5dd28f6: function(arg0) {
|
|
2378
|
+
const ret = getObject(arg0).maxVertexBuffers;
|
|
2379
|
+
return ret;
|
|
2380
|
+
},
|
|
2381
|
+
__wbg_minStorageBufferOffsetAlignment_7ce34b5bdf38450b: function(arg0) {
|
|
2382
|
+
const ret = getObject(arg0).minStorageBufferOffsetAlignment;
|
|
2383
|
+
return ret;
|
|
2384
|
+
},
|
|
2385
|
+
__wbg_minUniformBufferOffsetAlignment_3fed4cf7ea8b825e: function(arg0) {
|
|
2386
|
+
const ret = getObject(arg0).minUniformBufferOffsetAlignment;
|
|
2387
|
+
return ret;
|
|
2388
|
+
},
|
|
2389
|
+
__wbg_navigator_583ffd4fc14c0f7a: function(arg0) {
|
|
2390
|
+
const ret = getObject(arg0).navigator;
|
|
2391
|
+
return addHeapObject(ret);
|
|
2392
|
+
},
|
|
2393
|
+
__wbg_navigator_9cebf56f28aa719b: function(arg0) {
|
|
2394
|
+
const ret = getObject(arg0).navigator;
|
|
2395
|
+
return addHeapObject(ret);
|
|
2396
|
+
},
|
|
2397
|
+
__wbg_new_3acd383af1655b5f: function() { return handleError(function (arg0, arg1) {
|
|
2398
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
2399
|
+
return addHeapObject(ret);
|
|
2400
|
+
}, arguments); },
|
|
2401
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
2402
|
+
const ret = new Object();
|
|
2403
|
+
return addHeapObject(ret);
|
|
2404
|
+
},
|
|
2405
|
+
__wbg_new_af04f4c3ed7fd887: function(arg0) {
|
|
2406
|
+
const ret = new Int32Array(getObject(arg0));
|
|
2407
|
+
return addHeapObject(ret);
|
|
2408
|
+
},
|
|
2409
|
+
__wbg_new_d098e265629cd10f: function(arg0, arg1) {
|
|
2410
|
+
try {
|
|
2411
|
+
var state0 = {a: arg0, b: arg1};
|
|
2412
|
+
var cb0 = (arg0, arg1) => {
|
|
2413
|
+
const a = state0.a;
|
|
2414
|
+
state0.a = 0;
|
|
2415
|
+
try {
|
|
2416
|
+
return __wasm_bindgen_func_elem_621(a, state0.b, arg0, arg1);
|
|
2417
|
+
} finally {
|
|
2418
|
+
state0.a = a;
|
|
2419
|
+
}
|
|
2420
|
+
};
|
|
2421
|
+
const ret = new Promise(cb0);
|
|
2422
|
+
return addHeapObject(ret);
|
|
2423
|
+
} finally {
|
|
2424
|
+
state0.a = state0.b = 0;
|
|
2425
|
+
}
|
|
2426
|
+
},
|
|
2427
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
2428
|
+
try {
|
|
2429
|
+
var state0 = {a: arg0, b: arg1};
|
|
2430
|
+
var cb0 = (arg0, arg1) => {
|
|
2431
|
+
const a = state0.a;
|
|
2432
|
+
state0.a = 0;
|
|
2433
|
+
try {
|
|
2434
|
+
return __wasm_bindgen_func_elem_621(a, state0.b, arg0, arg1);
|
|
2435
|
+
} finally {
|
|
2436
|
+
state0.a = a;
|
|
2437
|
+
}
|
|
2438
|
+
};
|
|
2439
|
+
const ret = new Promise(cb0);
|
|
2440
|
+
return addHeapObject(ret);
|
|
2441
|
+
} finally {
|
|
2442
|
+
state0.a = state0.b = 0;
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
__wbg_new_typed_bccac67128ed885a: function() {
|
|
2446
|
+
const ret = new Array();
|
|
2447
|
+
return addHeapObject(ret);
|
|
2448
|
+
},
|
|
2449
|
+
__wbg_new_with_byte_offset_and_length_b2ec5bf7b2f35743: function(arg0, arg1, arg2) {
|
|
2450
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2451
|
+
return addHeapObject(ret);
|
|
2452
|
+
},
|
|
1959
2453
|
__wbg_new_with_length_81c1c31d4432cb9f: function(arg0) {
|
|
1960
2454
|
const ret = new Float32Array(arg0 >>> 0);
|
|
1961
2455
|
return addHeapObject(ret);
|
|
@@ -1964,12 +2458,210 @@ function __wbg_get_imports(memory) {
|
|
|
1964
2458
|
const ret = new Float64Array(arg0 >>> 0);
|
|
1965
2459
|
return addHeapObject(ret);
|
|
1966
2460
|
},
|
|
2461
|
+
__wbg_of_8fd5dd402bc67165: function(arg0, arg1, arg2) {
|
|
2462
|
+
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2463
|
+
return addHeapObject(ret);
|
|
2464
|
+
},
|
|
2465
|
+
__wbg_onSubmittedWorkDone_bc9163429911b187: function(arg0) {
|
|
2466
|
+
const ret = getObject(arg0).onSubmittedWorkDone();
|
|
2467
|
+
return addHeapObject(ret);
|
|
2468
|
+
},
|
|
2469
|
+
__wbg_postMessage_edb4c90a528e5a8c: function() { return handleError(function (arg0, arg1) {
|
|
2470
|
+
getObject(arg0).postMessage(getObject(arg1));
|
|
2471
|
+
}, arguments); },
|
|
2472
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
2473
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
2474
|
+
},
|
|
2475
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
2476
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
2477
|
+
return ret;
|
|
2478
|
+
},
|
|
2479
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
2480
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2481
|
+
return addHeapObject(ret);
|
|
2482
|
+
},
|
|
2483
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
2484
|
+
queueMicrotask(getObject(arg0));
|
|
2485
|
+
},
|
|
2486
|
+
__wbg_queue_158ffabe7c457baf: function(arg0) {
|
|
2487
|
+
const ret = getObject(arg0).queue;
|
|
2488
|
+
return addHeapObject(ret);
|
|
2489
|
+
},
|
|
2490
|
+
__wbg_requestAdapter_4b256f8281d7b78e: function(arg0, arg1) {
|
|
2491
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
2492
|
+
return addHeapObject(ret);
|
|
2493
|
+
},
|
|
2494
|
+
__wbg_requestDevice_1fb9510af28cb532: function(arg0, arg1) {
|
|
2495
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
2496
|
+
return addHeapObject(ret);
|
|
2497
|
+
},
|
|
2498
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
2499
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
2500
|
+
return addHeapObject(ret);
|
|
2501
|
+
},
|
|
2502
|
+
__wbg_setBindGroup_fedcfdd4249a8326: function(arg0, arg1, arg2) {
|
|
2503
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
2504
|
+
},
|
|
2505
|
+
__wbg_setPipeline_aa90d1841c6c5e8c: function(arg0, arg1) {
|
|
2506
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
2507
|
+
},
|
|
1967
2508
|
__wbg_set_361bc2460da3016f: function(arg0, arg1, arg2) {
|
|
1968
2509
|
getObject(arg0).set(getArrayF32FromWasm0(arg1, arg2));
|
|
1969
2510
|
},
|
|
1970
2511
|
__wbg_set_636d1e3e4286e068: function(arg0, arg1, arg2) {
|
|
1971
2512
|
getObject(arg0).set(getArrayF64FromWasm0(arg1, arg2));
|
|
1972
2513
|
},
|
|
2514
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2515
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2516
|
+
return ret;
|
|
2517
|
+
}, arguments); },
|
|
2518
|
+
__wbg_set_access_e6549ed0394b3186: function(arg0, arg1) {
|
|
2519
|
+
getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
2520
|
+
},
|
|
2521
|
+
__wbg_set_bind_group_layouts_037e702baacec92b: function(arg0, arg1) {
|
|
2522
|
+
getObject(arg0).bindGroupLayouts = getObject(arg1);
|
|
2523
|
+
},
|
|
2524
|
+
__wbg_set_binding_2c231dc30f53772c: function(arg0, arg1) {
|
|
2525
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2526
|
+
},
|
|
2527
|
+
__wbg_set_binding_4d75e2c48237c20d: function(arg0, arg1) {
|
|
2528
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2529
|
+
},
|
|
2530
|
+
__wbg_set_buffer_624248e3445a6915: function(arg0, arg1) {
|
|
2531
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2532
|
+
},
|
|
2533
|
+
__wbg_set_buffer_c113f581e90e0fea: function(arg0, arg1) {
|
|
2534
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2535
|
+
},
|
|
2536
|
+
__wbg_set_code_7ce96875d99b3504: function(arg0, arg1, arg2) {
|
|
2537
|
+
getObject(arg0).code = getStringFromWasm0(arg1, arg2);
|
|
2538
|
+
},
|
|
2539
|
+
__wbg_set_compute_50bda9f73a1b1e27: function(arg0, arg1) {
|
|
2540
|
+
getObject(arg0).compute = getObject(arg1);
|
|
2541
|
+
},
|
|
2542
|
+
__wbg_set_e80615d7a9a43981: function(arg0, arg1, arg2) {
|
|
2543
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2544
|
+
},
|
|
2545
|
+
__wbg_set_entries_3551eb34e7984a92: function(arg0, arg1) {
|
|
2546
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2547
|
+
},
|
|
2548
|
+
__wbg_set_entries_f295aad70825c831: function(arg0, arg1) {
|
|
2549
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2550
|
+
},
|
|
2551
|
+
__wbg_set_entry_point_30a36ef90529d3b2: function(arg0, arg1, arg2) {
|
|
2552
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
2553
|
+
},
|
|
2554
|
+
__wbg_set_external_texture_0098d52860366e58: function(arg0, arg1) {
|
|
2555
|
+
getObject(arg0).externalTexture = getObject(arg1);
|
|
2556
|
+
},
|
|
2557
|
+
__wbg_set_format_0f43d8c4627b77a3: function(arg0, arg1) {
|
|
2558
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2559
|
+
},
|
|
2560
|
+
__wbg_set_has_dynamic_offset_63f032652fa863e1: function(arg0, arg1) {
|
|
2561
|
+
getObject(arg0).hasDynamicOffset = arg1 !== 0;
|
|
2562
|
+
},
|
|
2563
|
+
__wbg_set_label_10f8fd3c496a5be4: function(arg0, arg1, arg2) {
|
|
2564
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2565
|
+
},
|
|
2566
|
+
__wbg_set_label_1e9198e93eca4299: function(arg0, arg1, arg2) {
|
|
2567
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2568
|
+
},
|
|
2569
|
+
__wbg_set_label_35f8b595e4123cde: function(arg0, arg1, arg2) {
|
|
2570
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2571
|
+
},
|
|
2572
|
+
__wbg_set_label_72adda54eba1f903: function(arg0, arg1, arg2) {
|
|
2573
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2574
|
+
},
|
|
2575
|
+
__wbg_set_label_91abab2693f4a3bc: function(arg0, arg1, arg2) {
|
|
2576
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2577
|
+
},
|
|
2578
|
+
__wbg_set_label_ac69ac3a9b1529b5: function(arg0, arg1, arg2) {
|
|
2579
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2580
|
+
},
|
|
2581
|
+
__wbg_set_label_c960b57fe8acc26e: function(arg0, arg1, arg2) {
|
|
2582
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2583
|
+
},
|
|
2584
|
+
__wbg_set_label_e30f49a4490fe0ac: function(arg0, arg1, arg2) {
|
|
2585
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2586
|
+
},
|
|
2587
|
+
__wbg_set_label_f6151f96c3741386: function(arg0, arg1, arg2) {
|
|
2588
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2589
|
+
},
|
|
2590
|
+
__wbg_set_label_ff04432bdc542ef2: function(arg0, arg1, arg2) {
|
|
2591
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2592
|
+
},
|
|
2593
|
+
__wbg_set_layout_01c7a0fb2622f0b5: function(arg0, arg1) {
|
|
2594
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2595
|
+
},
|
|
2596
|
+
__wbg_set_layout_d20d29205ea6861b: function(arg0, arg1) {
|
|
2597
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2598
|
+
},
|
|
2599
|
+
__wbg_set_mapped_at_creation_fc7e6d1b142fde5c: function(arg0, arg1) {
|
|
2600
|
+
getObject(arg0).mappedAtCreation = arg1 !== 0;
|
|
2601
|
+
},
|
|
2602
|
+
__wbg_set_min_binding_size_227fb264b01a43c0: function(arg0, arg1) {
|
|
2603
|
+
getObject(arg0).minBindingSize = arg1;
|
|
2604
|
+
},
|
|
2605
|
+
__wbg_set_module_6852719e66be3da3: function(arg0, arg1) {
|
|
2606
|
+
getObject(arg0).module = getObject(arg1);
|
|
2607
|
+
},
|
|
2608
|
+
__wbg_set_multisampled_fe73b8ab44272511: function(arg0, arg1) {
|
|
2609
|
+
getObject(arg0).multisampled = arg1 !== 0;
|
|
2610
|
+
},
|
|
2611
|
+
__wbg_set_offset_37cf2ca9f7f6ed91: function(arg0, arg1) {
|
|
2612
|
+
getObject(arg0).offset = arg1;
|
|
2613
|
+
},
|
|
2614
|
+
__wbg_set_onmessage_d5dc11c291025af6: function(arg0, arg1) {
|
|
2615
|
+
getObject(arg0).onmessage = getObject(arg1);
|
|
2616
|
+
},
|
|
2617
|
+
__wbg_set_power_preference_c127ee8023d65920: function(arg0, arg1) {
|
|
2618
|
+
getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
2619
|
+
},
|
|
2620
|
+
__wbg_set_required_features_56152ea832e0ee69: function(arg0, arg1) {
|
|
2621
|
+
getObject(arg0).requiredFeatures = getObject(arg1);
|
|
2622
|
+
},
|
|
2623
|
+
__wbg_set_required_limits_66aaa6d20888249e: function(arg0, arg1) {
|
|
2624
|
+
getObject(arg0).requiredLimits = getObject(arg1);
|
|
2625
|
+
},
|
|
2626
|
+
__wbg_set_resource_96c9dae6621d69cb: function(arg0, arg1) {
|
|
2627
|
+
getObject(arg0).resource = getObject(arg1);
|
|
2628
|
+
},
|
|
2629
|
+
__wbg_set_sample_type_a203784b364c5c95: function(arg0, arg1) {
|
|
2630
|
+
getObject(arg0).sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
2631
|
+
},
|
|
2632
|
+
__wbg_set_sampler_e66a438c05e728da: function(arg0, arg1) {
|
|
2633
|
+
getObject(arg0).sampler = getObject(arg1);
|
|
2634
|
+
},
|
|
2635
|
+
__wbg_set_size_a4cd4174004cf45a: function(arg0, arg1) {
|
|
2636
|
+
getObject(arg0).size = arg1;
|
|
2637
|
+
},
|
|
2638
|
+
__wbg_set_size_af36c7b7da8859a3: function(arg0, arg1) {
|
|
2639
|
+
getObject(arg0).size = arg1;
|
|
2640
|
+
},
|
|
2641
|
+
__wbg_set_storage_texture_b5ef0a1da3534b6e: function(arg0, arg1) {
|
|
2642
|
+
getObject(arg0).storageTexture = getObject(arg1);
|
|
2643
|
+
},
|
|
2644
|
+
__wbg_set_texture_b21945b2510902fd: function(arg0, arg1) {
|
|
2645
|
+
getObject(arg0).texture = getObject(arg1);
|
|
2646
|
+
},
|
|
2647
|
+
__wbg_set_type_159fa2c127742535: function(arg0, arg1) {
|
|
2648
|
+
getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2649
|
+
},
|
|
2650
|
+
__wbg_set_type_abc91e53f2eac241: function(arg0, arg1) {
|
|
2651
|
+
getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
2652
|
+
},
|
|
2653
|
+
__wbg_set_usage_1a33f708fe27dce8: function(arg0, arg1) {
|
|
2654
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2655
|
+
},
|
|
2656
|
+
__wbg_set_view_dimension_9b6ca209979000a1: function(arg0, arg1) {
|
|
2657
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2658
|
+
},
|
|
2659
|
+
__wbg_set_view_dimension_dfe70653a047d5ae: function(arg0, arg1) {
|
|
2660
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2661
|
+
},
|
|
2662
|
+
__wbg_set_visibility_73d7278cd803e736: function(arg0, arg1) {
|
|
2663
|
+
getObject(arg0).visibility = arg1 >>> 0;
|
|
2664
|
+
},
|
|
1973
2665
|
__wbg_startWorkers_8b582d57e92bd2d4: function(arg0, arg1, arg2) {
|
|
1974
2666
|
const ret = startWorkers(takeObject(arg0), takeObject(arg1), wbg_rayon_PoolBuilder.__wrap(arg2));
|
|
1975
2667
|
return addHeapObject(ret);
|
|
@@ -1990,6 +2682,84 @@ function __wbg_get_imports(memory) {
|
|
|
1990
2682
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1991
2683
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1992
2684
|
},
|
|
2685
|
+
__wbg_submit_32980074670fdf26: function(arg0, arg1) {
|
|
2686
|
+
getObject(arg0).submit(getObject(arg1));
|
|
2687
|
+
},
|
|
2688
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
2689
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2690
|
+
return addHeapObject(ret);
|
|
2691
|
+
},
|
|
2692
|
+
__wbg_then_1d7a5273811a5cea: function(arg0, arg1) {
|
|
2693
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2694
|
+
return addHeapObject(ret);
|
|
2695
|
+
},
|
|
2696
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
2697
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2698
|
+
return addHeapObject(ret);
|
|
2699
|
+
},
|
|
2700
|
+
__wbg_then_bc59d1943397ca4e: function(arg0, arg1, arg2) {
|
|
2701
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2702
|
+
return addHeapObject(ret);
|
|
2703
|
+
},
|
|
2704
|
+
__wbg_unmap_41b1894fd602a1d0: function(arg0) {
|
|
2705
|
+
getObject(arg0).unmap();
|
|
2706
|
+
},
|
|
2707
|
+
__wbg_value_a529cd2f781749fd: function(arg0) {
|
|
2708
|
+
const ret = getObject(arg0).value;
|
|
2709
|
+
return addHeapObject(ret);
|
|
2710
|
+
},
|
|
2711
|
+
__wbg_waitAsync_91ab9cf292b5ab15: function(arg0, arg1, arg2) {
|
|
2712
|
+
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
2713
|
+
return addHeapObject(ret);
|
|
2714
|
+
},
|
|
2715
|
+
__wbg_waitAsync_a4399d51368b6ce4: function() {
|
|
2716
|
+
const ret = Atomics.waitAsync;
|
|
2717
|
+
return addHeapObject(ret);
|
|
2718
|
+
},
|
|
2719
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2720
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 10, function: Function { arguments: [Externref], shim_idx: 11, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2721
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2416, __wasm_bindgen_func_elem_2422);
|
|
2722
|
+
return addHeapObject(ret);
|
|
2723
|
+
},
|
|
2724
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2725
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 10, function: Function { arguments: [Externref], shim_idx: 47, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2726
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2416, __wasm_bindgen_func_elem_707);
|
|
2727
|
+
return addHeapObject(ret);
|
|
2728
|
+
},
|
|
2729
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2730
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 10, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 11, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2731
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2416, __wasm_bindgen_func_elem_2422_2);
|
|
2732
|
+
return addHeapObject(ret);
|
|
2733
|
+
},
|
|
2734
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
2735
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
2736
|
+
const ret = arg0;
|
|
2737
|
+
return addHeapObject(ret);
|
|
2738
|
+
},
|
|
2739
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2740
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2741
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2742
|
+
return addHeapObject(ret);
|
|
2743
|
+
},
|
|
2744
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2745
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2746
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2747
|
+
return addHeapObject(ret);
|
|
2748
|
+
},
|
|
2749
|
+
__wbindgen_link_fcd7cf2a23e346d3: function(arg0) {
|
|
2750
|
+
const val = `onmessage = function (ev) {
|
|
2751
|
+
let [ia, index, value] = ev.data;
|
|
2752
|
+
ia = new Int32Array(ia.buffer);
|
|
2753
|
+
let result = Atomics.wait(ia, index, value);
|
|
2754
|
+
postMessage(result);
|
|
2755
|
+
};
|
|
2756
|
+
`;
|
|
2757
|
+
const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
|
|
2758
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2759
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2760
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2761
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2762
|
+
},
|
|
1993
2763
|
__wbindgen_object_clone_ref: function(arg0) {
|
|
1994
2764
|
const ret = getObject(arg0);
|
|
1995
2765
|
return addHeapObject(ret);
|
|
@@ -2005,6 +2775,52 @@ function __wbg_get_imports(memory) {
|
|
|
2005
2775
|
};
|
|
2006
2776
|
}
|
|
2007
2777
|
|
|
2778
|
+
function __wasm_bindgen_func_elem_2422(arg0, arg1, arg2) {
|
|
2779
|
+
wasm.__wasm_bindgen_func_elem_2422(arg0, arg1, addHeapObject(arg2));
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
function __wasm_bindgen_func_elem_2422_2(arg0, arg1, arg2) {
|
|
2783
|
+
wasm.__wasm_bindgen_func_elem_2422_2(arg0, arg1, addHeapObject(arg2));
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
function __wasm_bindgen_func_elem_707(arg0, arg1, arg2) {
|
|
2787
|
+
try {
|
|
2788
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2789
|
+
wasm.__wasm_bindgen_func_elem_707(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2790
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2791
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2792
|
+
if (r1) {
|
|
2793
|
+
throw takeObject(r0);
|
|
2794
|
+
}
|
|
2795
|
+
} finally {
|
|
2796
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
function __wasm_bindgen_func_elem_621(arg0, arg1, arg2, arg3) {
|
|
2801
|
+
wasm.__wasm_bindgen_func_elem_621(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
|
|
2805
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
2806
|
+
|
|
2807
|
+
|
|
2808
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
2809
|
+
|
|
2810
|
+
|
|
2811
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
2815
|
+
|
|
2816
|
+
|
|
2817
|
+
const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
2821
|
+
|
|
2822
|
+
|
|
2823
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
2008
2824
|
const wbg_rayon_PoolBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2009
2825
|
? { register: () => {}, unregister: () => {} }
|
|
2010
2826
|
: new FinalizationRegistry(ptr => wasm.__wbg_wbg_rayon_poolbuilder_free(ptr >>> 0, 1));
|
|
@@ -2018,6 +2834,75 @@ function addHeapObject(obj) {
|
|
|
2018
2834
|
return idx;
|
|
2019
2835
|
}
|
|
2020
2836
|
|
|
2837
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2838
|
+
? { register: () => {}, unregister: () => {} }
|
|
2839
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
2840
|
+
|
|
2841
|
+
function debugString(val) {
|
|
2842
|
+
// primitive types
|
|
2843
|
+
const type = typeof val;
|
|
2844
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
2845
|
+
return `${val}`;
|
|
2846
|
+
}
|
|
2847
|
+
if (type == 'string') {
|
|
2848
|
+
return `"${val}"`;
|
|
2849
|
+
}
|
|
2850
|
+
if (type == 'symbol') {
|
|
2851
|
+
const description = val.description;
|
|
2852
|
+
if (description == null) {
|
|
2853
|
+
return 'Symbol';
|
|
2854
|
+
} else {
|
|
2855
|
+
return `Symbol(${description})`;
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
if (type == 'function') {
|
|
2859
|
+
const name = val.name;
|
|
2860
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
2861
|
+
return `Function(${name})`;
|
|
2862
|
+
} else {
|
|
2863
|
+
return 'Function';
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
// objects
|
|
2867
|
+
if (Array.isArray(val)) {
|
|
2868
|
+
const length = val.length;
|
|
2869
|
+
let debug = '[';
|
|
2870
|
+
if (length > 0) {
|
|
2871
|
+
debug += debugString(val[0]);
|
|
2872
|
+
}
|
|
2873
|
+
for(let i = 1; i < length; i++) {
|
|
2874
|
+
debug += ', ' + debugString(val[i]);
|
|
2875
|
+
}
|
|
2876
|
+
debug += ']';
|
|
2877
|
+
return debug;
|
|
2878
|
+
}
|
|
2879
|
+
// Test for built-in
|
|
2880
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
2881
|
+
let className;
|
|
2882
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
2883
|
+
className = builtInMatches[1];
|
|
2884
|
+
} else {
|
|
2885
|
+
// Failed to match the standard '[object ClassName]'
|
|
2886
|
+
return toString.call(val);
|
|
2887
|
+
}
|
|
2888
|
+
if (className == 'Object') {
|
|
2889
|
+
// we're a user defined class or Object
|
|
2890
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
2891
|
+
// easier than looping through ownProperties of `val`.
|
|
2892
|
+
try {
|
|
2893
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
2894
|
+
} catch (_) {
|
|
2895
|
+
return 'Object';
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
// errors
|
|
2899
|
+
if (val instanceof Error) {
|
|
2900
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
2901
|
+
}
|
|
2902
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
2903
|
+
return className;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2021
2906
|
function dropObject(idx) {
|
|
2022
2907
|
if (idx < 1028) return;
|
|
2023
2908
|
heap[idx] = heap_next;
|
|
@@ -2034,6 +2919,11 @@ function getArrayF64FromWasm0(ptr, len) {
|
|
|
2034
2919
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
2035
2920
|
}
|
|
2036
2921
|
|
|
2922
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
2923
|
+
ptr = ptr >>> 0;
|
|
2924
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2037
2927
|
let cachedDataViewMemory0 = null;
|
|
2038
2928
|
function getDataViewMemory0() {
|
|
2039
2929
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
@@ -2073,6 +2963,14 @@ function getUint8ArrayMemory0() {
|
|
|
2073
2963
|
|
|
2074
2964
|
function getObject(idx) { return heap[idx]; }
|
|
2075
2965
|
|
|
2966
|
+
function handleError(f, args) {
|
|
2967
|
+
try {
|
|
2968
|
+
return f.apply(this, args);
|
|
2969
|
+
} catch (e) {
|
|
2970
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2076
2974
|
let heap = new Array(1024).fill(undefined);
|
|
2077
2975
|
heap.push(undefined, null, true, false);
|
|
2078
2976
|
|
|
@@ -2082,6 +2980,34 @@ function isLikeNone(x) {
|
|
|
2082
2980
|
return x === undefined || x === null;
|
|
2083
2981
|
}
|
|
2084
2982
|
|
|
2983
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
2984
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
2985
|
+
const real = (...args) => {
|
|
2986
|
+
|
|
2987
|
+
// First up with a closure we increment the internal reference
|
|
2988
|
+
// count. This ensures that the Rust closure environment won't
|
|
2989
|
+
// be deallocated while we're invoking it.
|
|
2990
|
+
state.cnt++;
|
|
2991
|
+
const a = state.a;
|
|
2992
|
+
state.a = 0;
|
|
2993
|
+
try {
|
|
2994
|
+
return f(a, state.b, ...args);
|
|
2995
|
+
} finally {
|
|
2996
|
+
state.a = a;
|
|
2997
|
+
real._wbg_cb_unref();
|
|
2998
|
+
}
|
|
2999
|
+
};
|
|
3000
|
+
real._wbg_cb_unref = () => {
|
|
3001
|
+
if (--state.cnt === 0) {
|
|
3002
|
+
state.dtor(state.a, state.b);
|
|
3003
|
+
state.a = 0;
|
|
3004
|
+
CLOSURE_DTORS.unregister(state);
|
|
3005
|
+
}
|
|
3006
|
+
};
|
|
3007
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
3008
|
+
return real;
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2085
3011
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
2086
3012
|
if (realloc === undefined) {
|
|
2087
3013
|
const buf = cachedTextEncoder.encode(arg);
|