sci-form-wasm 0.10.1 → 0.10.6
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 +87 -42
- package/sci_form_wasm.js +1054 -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,41 @@ 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);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Generate a complete NMR spectrum using optional 3D coordinates for ³J couplings.
|
|
837
|
+
* @param {string} smiles
|
|
838
|
+
* @param {string} coords_flat_json
|
|
839
|
+
* @param {string} nucleus
|
|
840
|
+
* @param {number} gamma
|
|
841
|
+
* @param {number} ppm_min
|
|
842
|
+
* @param {number} ppm_max
|
|
843
|
+
* @param {number} n_points
|
|
844
|
+
* @returns {string}
|
|
845
|
+
*/
|
|
846
|
+
export function compute_nmr_spectrum_with_coords(smiles, coords_flat_json, nucleus, gamma, ppm_min, ppm_max, n_points) {
|
|
847
|
+
let deferred4_0;
|
|
848
|
+
let deferred4_1;
|
|
849
|
+
try {
|
|
850
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
851
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
852
|
+
const len0 = WASM_VECTOR_LEN;
|
|
853
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
854
|
+
const len1 = WASM_VECTOR_LEN;
|
|
855
|
+
const ptr2 = passStringToWasm0(nucleus, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
856
|
+
const len2 = WASM_VECTOR_LEN;
|
|
857
|
+
wasm.compute_nmr_spectrum_with_coords(retptr, ptr0, len0, ptr1, len1, ptr2, len2, gamma, ppm_min, ppm_max, n_points);
|
|
858
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
859
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
860
|
+
deferred4_0 = r0;
|
|
861
|
+
deferred4_1 = r1;
|
|
862
|
+
return getStringFromWasm0(r0, r1);
|
|
863
|
+
} finally {
|
|
864
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
865
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
794
866
|
}
|
|
795
867
|
}
|
|
796
868
|
|
|
@@ -820,7 +892,7 @@ export function compute_nonpolar_solvation(elements, coords_flat, probe_radius)
|
|
|
820
892
|
return getStringFromWasm0(r0, r1);
|
|
821
893
|
} finally {
|
|
822
894
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
823
|
-
wasm.
|
|
895
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
824
896
|
}
|
|
825
897
|
}
|
|
826
898
|
|
|
@@ -861,10 +933,34 @@ export function compute_orbital_mesh(elements_json, coords_flat_json, method, mo
|
|
|
861
933
|
return getStringFromWasm0(r0, r1);
|
|
862
934
|
} finally {
|
|
863
935
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
864
|
-
wasm.
|
|
936
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
865
937
|
}
|
|
866
938
|
}
|
|
867
939
|
|
|
940
|
+
/**
|
|
941
|
+
* @param {string} elements_json
|
|
942
|
+
* @param {string} coords_flat_json
|
|
943
|
+
* @param {string} method
|
|
944
|
+
* @param {number} mo_index
|
|
945
|
+
* @param {number} spacing
|
|
946
|
+
* @param {number} padding
|
|
947
|
+
* @param {number} isovalue
|
|
948
|
+
* @param {string} execution_mode
|
|
949
|
+
* @returns {Promise<string>}
|
|
950
|
+
*/
|
|
951
|
+
export function compute_orbital_mesh_accelerated(elements_json, coords_flat_json, method, mo_index, spacing, padding, isovalue, execution_mode) {
|
|
952
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
953
|
+
const len0 = WASM_VECTOR_LEN;
|
|
954
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
955
|
+
const len1 = WASM_VECTOR_LEN;
|
|
956
|
+
const ptr2 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
957
|
+
const len2 = WASM_VECTOR_LEN;
|
|
958
|
+
const ptr3 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
959
|
+
const len3 = WASM_VECTOR_LEN;
|
|
960
|
+
const ret = wasm.compute_orbital_mesh_accelerated(ptr0, len0, ptr1, len1, ptr2, len2, mo_index, spacing, padding, isovalue, ptr3, len3);
|
|
961
|
+
return takeObject(ret);
|
|
962
|
+
}
|
|
963
|
+
|
|
868
964
|
/**
|
|
869
965
|
* Run a PM3 semi-empirical calculation.
|
|
870
966
|
* @param {string} elements_json
|
|
@@ -888,7 +984,7 @@ export function compute_pm3(elements_json, coords_flat_json) {
|
|
|
888
984
|
return getStringFromWasm0(r0, r1);
|
|
889
985
|
} finally {
|
|
890
986
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
891
|
-
wasm.
|
|
987
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
892
988
|
}
|
|
893
989
|
}
|
|
894
990
|
|
|
@@ -915,7 +1011,7 @@ export function compute_population(elements, coords_flat) {
|
|
|
915
1011
|
return getStringFromWasm0(r0, r1);
|
|
916
1012
|
} finally {
|
|
917
1013
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
918
|
-
wasm.
|
|
1014
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
919
1015
|
}
|
|
920
1016
|
}
|
|
921
1017
|
|
|
@@ -942,7 +1038,7 @@ export function compute_reactivity_ranking(elements, coords_flat) {
|
|
|
942
1038
|
return getStringFromWasm0(r0, r1);
|
|
943
1039
|
} finally {
|
|
944
1040
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
945
|
-
wasm.
|
|
1041
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
946
1042
|
}
|
|
947
1043
|
}
|
|
948
1044
|
|
|
@@ -969,7 +1065,7 @@ export function compute_rmsd(coords, reference) {
|
|
|
969
1065
|
return getStringFromWasm0(r0, r1);
|
|
970
1066
|
} finally {
|
|
971
1067
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
972
|
-
wasm.
|
|
1068
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
973
1069
|
}
|
|
974
1070
|
}
|
|
975
1071
|
|
|
@@ -995,7 +1091,7 @@ export function compute_rmsd_matrix(conformers_json) {
|
|
|
995
1091
|
return getStringFromWasm0(r0, r1);
|
|
996
1092
|
} finally {
|
|
997
1093
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
998
|
-
wasm.
|
|
1094
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
999
1095
|
}
|
|
1000
1096
|
}
|
|
1001
1097
|
|
|
@@ -1023,7 +1119,7 @@ export function compute_sasa(elements, coords_flat, probe_radius) {
|
|
|
1023
1119
|
return getStringFromWasm0(r0, r1);
|
|
1024
1120
|
} finally {
|
|
1025
1121
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1026
|
-
wasm.
|
|
1122
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1027
1123
|
}
|
|
1028
1124
|
}
|
|
1029
1125
|
|
|
@@ -1063,7 +1159,7 @@ export function compute_simplified_neb_path(smiles, start_coords_json, end_coord
|
|
|
1063
1159
|
return getStringFromWasm0(r0, r1);
|
|
1064
1160
|
} finally {
|
|
1065
1161
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1066
|
-
wasm.
|
|
1162
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1067
1163
|
}
|
|
1068
1164
|
}
|
|
1069
1165
|
|
|
@@ -1089,7 +1185,7 @@ export function compute_sssr(smiles) {
|
|
|
1089
1185
|
return getStringFromWasm0(r0, r1);
|
|
1090
1186
|
} finally {
|
|
1091
1187
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1092
|
-
wasm.
|
|
1188
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1093
1189
|
}
|
|
1094
1190
|
}
|
|
1095
1191
|
|
|
@@ -1123,7 +1219,7 @@ export function compute_stda_uvvis(elements_json, coords_flat_json, sigma, e_min
|
|
|
1123
1219
|
return getStringFromWasm0(r0, r1);
|
|
1124
1220
|
} finally {
|
|
1125
1221
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1126
|
-
wasm.
|
|
1222
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1127
1223
|
}
|
|
1128
1224
|
}
|
|
1129
1225
|
|
|
@@ -1152,7 +1248,7 @@ export function compute_tanimoto(fp1_json, fp2_json) {
|
|
|
1152
1248
|
return getStringFromWasm0(r0, r1);
|
|
1153
1249
|
} finally {
|
|
1154
1250
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1155
|
-
wasm.
|
|
1251
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1156
1252
|
}
|
|
1157
1253
|
}
|
|
1158
1254
|
|
|
@@ -1179,7 +1275,7 @@ export function compute_topology(elements, coords_flat) {
|
|
|
1179
1275
|
return getStringFromWasm0(r0, r1);
|
|
1180
1276
|
} finally {
|
|
1181
1277
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1182
|
-
wasm.
|
|
1278
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1183
1279
|
}
|
|
1184
1280
|
}
|
|
1185
1281
|
|
|
@@ -1206,7 +1302,7 @@ export function compute_uff_energy(smiles, coords) {
|
|
|
1206
1302
|
return getStringFromWasm0(r0, r1);
|
|
1207
1303
|
} finally {
|
|
1208
1304
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1209
|
-
wasm.
|
|
1305
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1210
1306
|
}
|
|
1211
1307
|
}
|
|
1212
1308
|
|
|
@@ -1233,7 +1329,7 @@ export function compute_uff_energy_with_aromatic_heuristics(smiles, coords) {
|
|
|
1233
1329
|
return getStringFromWasm0(r0, r1);
|
|
1234
1330
|
} finally {
|
|
1235
1331
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1236
|
-
wasm.
|
|
1332
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1237
1333
|
}
|
|
1238
1334
|
}
|
|
1239
1335
|
|
|
@@ -1264,7 +1360,7 @@ export function compute_uv_vis_spectrum(elements, coords_flat, sigma, e_min, e_m
|
|
|
1264
1360
|
return getStringFromWasm0(r0, r1);
|
|
1265
1361
|
} finally {
|
|
1266
1362
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1267
|
-
wasm.
|
|
1363
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1268
1364
|
}
|
|
1269
1365
|
}
|
|
1270
1366
|
|
|
@@ -1295,7 +1391,38 @@ export function compute_vibrational_analysis(elements_json, coords_flat_json, me
|
|
|
1295
1391
|
return getStringFromWasm0(r0, r1);
|
|
1296
1392
|
} finally {
|
|
1297
1393
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1298
|
-
wasm.
|
|
1394
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* Perform vibrational analysis using the fast UFF analytical Hessian path.
|
|
1400
|
+
* @param {string} smiles
|
|
1401
|
+
* @param {string} elements_json
|
|
1402
|
+
* @param {string} coords_flat_json
|
|
1403
|
+
* @param {number} step_size
|
|
1404
|
+
* @returns {string}
|
|
1405
|
+
*/
|
|
1406
|
+
export function compute_vibrational_analysis_uff(smiles, elements_json, coords_flat_json, step_size) {
|
|
1407
|
+
let deferred4_0;
|
|
1408
|
+
let deferred4_1;
|
|
1409
|
+
try {
|
|
1410
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1411
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1412
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1413
|
+
const ptr1 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1414
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1415
|
+
const ptr2 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1416
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1417
|
+
wasm.compute_vibrational_analysis_uff(retptr, ptr0, len0, ptr1, len1, ptr2, len2, step_size);
|
|
1418
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1419
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1420
|
+
deferred4_0 = r0;
|
|
1421
|
+
deferred4_1 = r1;
|
|
1422
|
+
return getStringFromWasm0(r0, r1);
|
|
1423
|
+
} finally {
|
|
1424
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1425
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1299
1426
|
}
|
|
1300
1427
|
}
|
|
1301
1428
|
|
|
@@ -1322,7 +1449,7 @@ export function compute_xtb(elements_json, coords_flat_json) {
|
|
|
1322
1449
|
return getStringFromWasm0(r0, r1);
|
|
1323
1450
|
} finally {
|
|
1324
1451
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1325
|
-
wasm.
|
|
1452
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1326
1453
|
}
|
|
1327
1454
|
}
|
|
1328
1455
|
|
|
@@ -1349,7 +1476,7 @@ export function create_unit_cell(a, b, c, alpha, beta, gamma) {
|
|
|
1349
1476
|
return getStringFromWasm0(r0, r1);
|
|
1350
1477
|
} finally {
|
|
1351
1478
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1352
|
-
wasm.
|
|
1479
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1353
1480
|
}
|
|
1354
1481
|
}
|
|
1355
1482
|
|
|
@@ -1381,10 +1508,48 @@ export function eht_calculate(elements, coords_flat, k) {
|
|
|
1381
1508
|
return getStringFromWasm0(r0, r1);
|
|
1382
1509
|
} finally {
|
|
1383
1510
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1384
|
-
wasm.
|
|
1511
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1385
1512
|
}
|
|
1386
1513
|
}
|
|
1387
1514
|
|
|
1515
|
+
/**
|
|
1516
|
+
* @param {string} elements
|
|
1517
|
+
* @param {string} coords_flat
|
|
1518
|
+
* @param {number} spacing
|
|
1519
|
+
* @param {number} padding
|
|
1520
|
+
* @param {string} execution_mode
|
|
1521
|
+
* @returns {Promise<string>}
|
|
1522
|
+
*/
|
|
1523
|
+
export function eht_density_grid_accelerated(elements, coords_flat, spacing, padding, execution_mode) {
|
|
1524
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1525
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1526
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1527
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1528
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1529
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1530
|
+
const ret = wasm.eht_density_grid_accelerated(ptr0, len0, ptr1, len1, spacing, padding, ptr2, len2);
|
|
1531
|
+
return takeObject(ret);
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* @param {string} elements
|
|
1536
|
+
* @param {string} coords_flat
|
|
1537
|
+
* @param {number} spacing
|
|
1538
|
+
* @param {number} padding
|
|
1539
|
+
* @param {string} execution_mode
|
|
1540
|
+
* @returns {Promise<Float32Array>}
|
|
1541
|
+
*/
|
|
1542
|
+
export function eht_density_grid_accelerated_typed(elements, coords_flat, spacing, padding, execution_mode) {
|
|
1543
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1544
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1545
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1546
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1547
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1548
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1549
|
+
const ret = wasm.eht_density_grid_accelerated_typed(ptr0, len0, ptr1, len1, spacing, padding, ptr2, len2);
|
|
1550
|
+
return takeObject(ret);
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1388
1553
|
/**
|
|
1389
1554
|
* Run EHT or route to UFF fallback based on support/confidence.
|
|
1390
1555
|
* @param {string} smiles
|
|
@@ -1412,10 +1577,50 @@ export function eht_or_uff_fallback(smiles, elements, coords_flat, allow_experim
|
|
|
1412
1577
|
return getStringFromWasm0(r0, r1);
|
|
1413
1578
|
} finally {
|
|
1414
1579
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1415
|
-
wasm.
|
|
1580
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1416
1581
|
}
|
|
1417
1582
|
}
|
|
1418
1583
|
|
|
1584
|
+
/**
|
|
1585
|
+
* @param {string} elements
|
|
1586
|
+
* @param {string} coords_flat
|
|
1587
|
+
* @param {number} mo_index
|
|
1588
|
+
* @param {number} spacing
|
|
1589
|
+
* @param {number} padding
|
|
1590
|
+
* @param {string} execution_mode
|
|
1591
|
+
* @returns {Promise<string>}
|
|
1592
|
+
*/
|
|
1593
|
+
export function eht_orbital_grid_accelerated(elements, coords_flat, mo_index, spacing, padding, execution_mode) {
|
|
1594
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1595
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1596
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1597
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1598
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1599
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1600
|
+
const ret = wasm.eht_orbital_grid_accelerated(ptr0, len0, ptr1, len1, mo_index, spacing, padding, ptr2, len2);
|
|
1601
|
+
return takeObject(ret);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* @param {string} elements
|
|
1606
|
+
* @param {string} coords_flat
|
|
1607
|
+
* @param {number} mo_index
|
|
1608
|
+
* @param {number} spacing
|
|
1609
|
+
* @param {number} padding
|
|
1610
|
+
* @param {string} execution_mode
|
|
1611
|
+
* @returns {Promise<Float32Array>}
|
|
1612
|
+
*/
|
|
1613
|
+
export function eht_orbital_grid_accelerated_typed(elements, coords_flat, mo_index, spacing, padding, execution_mode) {
|
|
1614
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1615
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1616
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1617
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1618
|
+
const ptr2 = passStringToWasm0(execution_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1619
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1620
|
+
const ret = wasm.eht_orbital_grid_accelerated_typed(ptr0, len0, ptr1, len1, mo_index, spacing, padding, ptr2, len2);
|
|
1621
|
+
return takeObject(ret);
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1419
1624
|
/**
|
|
1420
1625
|
* Compute orbital grid from precomputed EHT coefficients as Float32Array.
|
|
1421
1626
|
* @param {string} elements
|
|
@@ -1479,7 +1684,7 @@ export function eht_orbital_mesh(elements, coords_flat, mo_index, spacing, isova
|
|
|
1479
1684
|
return getStringFromWasm0(r0, r1);
|
|
1480
1685
|
} finally {
|
|
1481
1686
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1482
|
-
wasm.
|
|
1687
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1483
1688
|
}
|
|
1484
1689
|
}
|
|
1485
1690
|
|
|
@@ -1503,7 +1708,7 @@ export function eht_support(elements) {
|
|
|
1503
1708
|
return getStringFromWasm0(r0, r1);
|
|
1504
1709
|
} finally {
|
|
1505
1710
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1506
|
-
wasm.
|
|
1711
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1507
1712
|
}
|
|
1508
1713
|
}
|
|
1509
1714
|
|
|
@@ -1531,7 +1736,7 @@ export function eht_volumetric_grid_info(elements, coords_flat, spacing, padding
|
|
|
1531
1736
|
return getStringFromWasm0(r0, r1);
|
|
1532
1737
|
} finally {
|
|
1533
1738
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1534
|
-
wasm.
|
|
1739
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1535
1740
|
}
|
|
1536
1741
|
}
|
|
1537
1742
|
|
|
@@ -1558,7 +1763,7 @@ export function embed(smiles, seed) {
|
|
|
1558
1763
|
return getStringFromWasm0(r0, r1);
|
|
1559
1764
|
} finally {
|
|
1560
1765
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1561
|
-
wasm.
|
|
1766
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1562
1767
|
}
|
|
1563
1768
|
}
|
|
1564
1769
|
|
|
@@ -1585,7 +1790,7 @@ export function embed_batch(smiles_list, seed) {
|
|
|
1585
1790
|
return getStringFromWasm0(r0, r1);
|
|
1586
1791
|
} finally {
|
|
1587
1792
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1588
|
-
wasm.
|
|
1793
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1589
1794
|
}
|
|
1590
1795
|
}
|
|
1591
1796
|
|
|
@@ -1612,7 +1817,7 @@ export function embed_coords(smiles, seed) {
|
|
|
1612
1817
|
return getStringFromWasm0(r0, r1);
|
|
1613
1818
|
} finally {
|
|
1614
1819
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1615
|
-
wasm.
|
|
1820
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1616
1821
|
}
|
|
1617
1822
|
}
|
|
1618
1823
|
|
|
@@ -1651,6 +1856,14 @@ export function initThreadPool(num_threads) {
|
|
|
1651
1856
|
return takeObject(ret);
|
|
1652
1857
|
}
|
|
1653
1858
|
|
|
1859
|
+
/**
|
|
1860
|
+
* @returns {Promise<string>}
|
|
1861
|
+
*/
|
|
1862
|
+
export function init_webgpu() {
|
|
1863
|
+
const ret = wasm.init_webgpu();
|
|
1864
|
+
return takeObject(ret);
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1654
1867
|
/**
|
|
1655
1868
|
* Pack a batch of conformer results into Arrow-compatible columnar format.
|
|
1656
1869
|
* @param {string} results_json
|
|
@@ -1671,7 +1884,7 @@ export function pack_batch_arrow(results_json) {
|
|
|
1671
1884
|
return getStringFromWasm0(r0, r1);
|
|
1672
1885
|
} finally {
|
|
1673
1886
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1674
|
-
wasm.
|
|
1887
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1675
1888
|
}
|
|
1676
1889
|
}
|
|
1677
1890
|
|
|
@@ -1695,7 +1908,7 @@ export function parse_smiles(smiles) {
|
|
|
1695
1908
|
return getStringFromWasm0(r0, r1);
|
|
1696
1909
|
} finally {
|
|
1697
1910
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1698
|
-
wasm.
|
|
1911
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1699
1912
|
}
|
|
1700
1913
|
}
|
|
1701
1914
|
|
|
@@ -1722,7 +1935,7 @@ export function predict_nmr_couplings(smiles, coords_flat_json) {
|
|
|
1722
1935
|
return getStringFromWasm0(r0, r1);
|
|
1723
1936
|
} finally {
|
|
1724
1937
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1725
|
-
wasm.
|
|
1938
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
1726
1939
|
}
|
|
1727
1940
|
}
|
|
1728
1941
|
|
|
@@ -1746,7 +1959,7 @@ export function predict_nmr_shifts(smiles) {
|
|
|
1746
1959
|
return getStringFromWasm0(r0, r1);
|
|
1747
1960
|
} finally {
|
|
1748
1961
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1749
|
-
wasm.
|
|
1962
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1750
1963
|
}
|
|
1751
1964
|
}
|
|
1752
1965
|
|
|
@@ -1776,7 +1989,7 @@ export function search_conformers_with_uff(smiles, n_samples, seed, rmsd_thresho
|
|
|
1776
1989
|
return getStringFromWasm0(r0, r1);
|
|
1777
1990
|
} finally {
|
|
1778
1991
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1779
|
-
wasm.
|
|
1992
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1780
1993
|
}
|
|
1781
1994
|
}
|
|
1782
1995
|
|
|
@@ -1802,7 +2015,7 @@ export function split_worker_tasks(smiles_json, n_workers, seed) {
|
|
|
1802
2015
|
return getStringFromWasm0(r0, r1);
|
|
1803
2016
|
} finally {
|
|
1804
2017
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1805
|
-
wasm.
|
|
2018
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1806
2019
|
}
|
|
1807
2020
|
}
|
|
1808
2021
|
|
|
@@ -1826,7 +2039,7 @@ export function system_capabilities(elements) {
|
|
|
1826
2039
|
return getStringFromWasm0(r0, r1);
|
|
1827
2040
|
} finally {
|
|
1828
2041
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1829
|
-
wasm.
|
|
2042
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1830
2043
|
}
|
|
1831
2044
|
}
|
|
1832
2045
|
|
|
@@ -1850,7 +2063,7 @@ export function system_method_plan(elements) {
|
|
|
1850
2063
|
return getStringFromWasm0(r0, r1);
|
|
1851
2064
|
} finally {
|
|
1852
2065
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1853
|
-
wasm.
|
|
2066
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1854
2067
|
}
|
|
1855
2068
|
}
|
|
1856
2069
|
|
|
@@ -1871,7 +2084,7 @@ export function version() {
|
|
|
1871
2084
|
return getStringFromWasm0(r0, r1);
|
|
1872
2085
|
} finally {
|
|
1873
2086
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1874
|
-
wasm.
|
|
2087
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1875
2088
|
}
|
|
1876
2089
|
}
|
|
1877
2090
|
|
|
@@ -1920,9 +2133,52 @@ export function wbg_rayon_start_worker(receiver) {
|
|
|
1920
2133
|
wasm.wbg_rayon_start_worker(receiver);
|
|
1921
2134
|
}
|
|
1922
2135
|
|
|
2136
|
+
/**
|
|
2137
|
+
* @returns {string}
|
|
2138
|
+
*/
|
|
2139
|
+
export function webgpu_status() {
|
|
2140
|
+
let deferred1_0;
|
|
2141
|
+
let deferred1_1;
|
|
2142
|
+
try {
|
|
2143
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2144
|
+
wasm.webgpu_status(retptr);
|
|
2145
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2146
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2147
|
+
deferred1_0 = r0;
|
|
2148
|
+
deferred1_1 = r1;
|
|
2149
|
+
return getStringFromWasm0(r0, r1);
|
|
2150
|
+
} finally {
|
|
2151
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2152
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
|
|
1923
2156
|
function __wbg_get_imports(memory) {
|
|
1924
2157
|
const import0 = {
|
|
1925
2158
|
__proto__: null,
|
|
2159
|
+
__wbg_Window_43fb3fbc6e3ff9ae: function(arg0) {
|
|
2160
|
+
const ret = getObject(arg0).Window;
|
|
2161
|
+
return addHeapObject(ret);
|
|
2162
|
+
},
|
|
2163
|
+
__wbg_WorkerGlobalScope_63e2e0165cdd2553: function(arg0) {
|
|
2164
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
2165
|
+
return addHeapObject(ret);
|
|
2166
|
+
},
|
|
2167
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
2168
|
+
const ret = debugString(getObject(arg1));
|
|
2169
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2170
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2171
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2172
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2173
|
+
},
|
|
2174
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
2175
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2176
|
+
return ret;
|
|
2177
|
+
},
|
|
2178
|
+
__wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
|
|
2179
|
+
const ret = getObject(arg0) === null;
|
|
2180
|
+
return ret;
|
|
2181
|
+
},
|
|
1926
2182
|
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
1927
2183
|
const ret = getObject(arg0) === undefined;
|
|
1928
2184
|
return ret;
|
|
@@ -1935,9 +2191,109 @@ function __wbg_get_imports(memory) {
|
|
|
1935
2191
|
const ret = wasmModule;
|
|
1936
2192
|
return addHeapObject(ret);
|
|
1937
2193
|
},
|
|
2194
|
+
__wbg___wbindgen_rethrow_5d3a9250cec92549: function(arg0) {
|
|
2195
|
+
throw takeObject(arg0);
|
|
2196
|
+
},
|
|
1938
2197
|
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
1939
2198
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1940
2199
|
},
|
|
2200
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
2201
|
+
getObject(arg0)._wbg_cb_unref();
|
|
2202
|
+
},
|
|
2203
|
+
__wbg_async_b33e4cb28c6b2093: function(arg0) {
|
|
2204
|
+
const ret = getObject(arg0).async;
|
|
2205
|
+
return ret;
|
|
2206
|
+
},
|
|
2207
|
+
__wbg_beginComputePass_b47ce74250396195: function(arg0, arg1) {
|
|
2208
|
+
const ret = getObject(arg0).beginComputePass(getObject(arg1));
|
|
2209
|
+
return addHeapObject(ret);
|
|
2210
|
+
},
|
|
2211
|
+
__wbg_buffer_eb2779983eb67380: function(arg0) {
|
|
2212
|
+
const ret = getObject(arg0).buffer;
|
|
2213
|
+
return addHeapObject(ret);
|
|
2214
|
+
},
|
|
2215
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2216
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2217
|
+
return addHeapObject(ret);
|
|
2218
|
+
}, arguments); },
|
|
2219
|
+
__wbg_copyBufferToBuffer_cee30659bd9281d8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2220
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
2221
|
+
}, arguments); },
|
|
2222
|
+
__wbg_createBindGroupLayout_8434b2ca1c67ed7c: function() { return handleError(function (arg0, arg1) {
|
|
2223
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
2224
|
+
return addHeapObject(ret);
|
|
2225
|
+
}, arguments); },
|
|
2226
|
+
__wbg_createBindGroup_09a405d3732e552f: function(arg0, arg1) {
|
|
2227
|
+
const ret = getObject(arg0).createBindGroup(getObject(arg1));
|
|
2228
|
+
return addHeapObject(ret);
|
|
2229
|
+
},
|
|
2230
|
+
__wbg_createBuffer_4807623df15261fc: function() { return handleError(function (arg0, arg1) {
|
|
2231
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
2232
|
+
return addHeapObject(ret);
|
|
2233
|
+
}, arguments); },
|
|
2234
|
+
__wbg_createCommandEncoder_2cfb36a9df959430: function(arg0, arg1) {
|
|
2235
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
2236
|
+
return addHeapObject(ret);
|
|
2237
|
+
},
|
|
2238
|
+
__wbg_createComputePipeline_c1a3073a083fe452: function(arg0, arg1) {
|
|
2239
|
+
const ret = getObject(arg0).createComputePipeline(getObject(arg1));
|
|
2240
|
+
return addHeapObject(ret);
|
|
2241
|
+
},
|
|
2242
|
+
__wbg_createPipelineLayout_01da5651e0e87bbc: function(arg0, arg1) {
|
|
2243
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
2244
|
+
return addHeapObject(ret);
|
|
2245
|
+
},
|
|
2246
|
+
__wbg_createShaderModule_6484fb70fcc8846c: function(arg0, arg1) {
|
|
2247
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
2248
|
+
return addHeapObject(ret);
|
|
2249
|
+
},
|
|
2250
|
+
__wbg_data_a3d9ff9cdd801002: function(arg0) {
|
|
2251
|
+
const ret = getObject(arg0).data;
|
|
2252
|
+
return addHeapObject(ret);
|
|
2253
|
+
},
|
|
2254
|
+
__wbg_description_6531d48120ea7980: function(arg0, arg1) {
|
|
2255
|
+
const ret = getObject(arg1).description;
|
|
2256
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2257
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2258
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2259
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2260
|
+
},
|
|
2261
|
+
__wbg_dispatchWorkgroups_e286bc6ef3ee71db: function(arg0, arg1, arg2, arg3) {
|
|
2262
|
+
getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
2263
|
+
},
|
|
2264
|
+
__wbg_end_ed15855c4474ee1b: function(arg0) {
|
|
2265
|
+
getObject(arg0).end();
|
|
2266
|
+
},
|
|
2267
|
+
__wbg_finish_0d19d3fe39e7b92a: function(arg0, arg1) {
|
|
2268
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
2269
|
+
return addHeapObject(ret);
|
|
2270
|
+
},
|
|
2271
|
+
__wbg_finish_86dd5d4e76c839ce: function(arg0) {
|
|
2272
|
+
const ret = getObject(arg0).finish();
|
|
2273
|
+
return addHeapObject(ret);
|
|
2274
|
+
},
|
|
2275
|
+
__wbg_getMappedRange_8b2e2c9ca9eead6b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2276
|
+
const ret = getObject(arg0).getMappedRange(arg1, arg2);
|
|
2277
|
+
return addHeapObject(ret);
|
|
2278
|
+
}, arguments); },
|
|
2279
|
+
__wbg_gpu_e85436d24e893506: function(arg0) {
|
|
2280
|
+
const ret = getObject(arg0).gpu;
|
|
2281
|
+
return addHeapObject(ret);
|
|
2282
|
+
},
|
|
2283
|
+
__wbg_info_522be603710e00d9: function(arg0) {
|
|
2284
|
+
const ret = getObject(arg0).info;
|
|
2285
|
+
return addHeapObject(ret);
|
|
2286
|
+
},
|
|
2287
|
+
__wbg_instanceof_GpuAdapter_32c51925d44640f8: function(arg0) {
|
|
2288
|
+
let result;
|
|
2289
|
+
try {
|
|
2290
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
2291
|
+
} catch (_) {
|
|
2292
|
+
result = false;
|
|
2293
|
+
}
|
|
2294
|
+
const ret = result;
|
|
2295
|
+
return ret;
|
|
2296
|
+
},
|
|
1941
2297
|
__wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
|
|
1942
2298
|
let result;
|
|
1943
2299
|
try {
|
|
@@ -1948,6 +2304,13 @@ function __wbg_get_imports(memory) {
|
|
|
1948
2304
|
const ret = result;
|
|
1949
2305
|
return ret;
|
|
1950
2306
|
},
|
|
2307
|
+
__wbg_label_0bf5e1333615f5b4: function(arg0, arg1) {
|
|
2308
|
+
const ret = getObject(arg1).label;
|
|
2309
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2310
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2311
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2312
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2313
|
+
},
|
|
1951
2314
|
__wbg_length_259ee9d041e381ad: function(arg0) {
|
|
1952
2315
|
const ret = getObject(arg0).length;
|
|
1953
2316
|
return ret;
|
|
@@ -1956,6 +2319,202 @@ function __wbg_get_imports(memory) {
|
|
|
1956
2319
|
const ret = getObject(arg0).length;
|
|
1957
2320
|
return ret;
|
|
1958
2321
|
},
|
|
2322
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
2323
|
+
const ret = getObject(arg0).length;
|
|
2324
|
+
return ret;
|
|
2325
|
+
},
|
|
2326
|
+
__wbg_limits_c2df107734892a62: function(arg0) {
|
|
2327
|
+
const ret = getObject(arg0).limits;
|
|
2328
|
+
return addHeapObject(ret);
|
|
2329
|
+
},
|
|
2330
|
+
__wbg_mapAsync_2d462d9ad761b9f5: function(arg0, arg1, arg2, arg3) {
|
|
2331
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
2332
|
+
return addHeapObject(ret);
|
|
2333
|
+
},
|
|
2334
|
+
__wbg_maxBindGroups_73bb601586efc569: function(arg0) {
|
|
2335
|
+
const ret = getObject(arg0).maxBindGroups;
|
|
2336
|
+
return ret;
|
|
2337
|
+
},
|
|
2338
|
+
__wbg_maxBindingsPerBindGroup_13b2d0eec1dc2840: function(arg0) {
|
|
2339
|
+
const ret = getObject(arg0).maxBindingsPerBindGroup;
|
|
2340
|
+
return ret;
|
|
2341
|
+
},
|
|
2342
|
+
__wbg_maxBufferSize_7a685b6dac99fa57: function(arg0) {
|
|
2343
|
+
const ret = getObject(arg0).maxBufferSize;
|
|
2344
|
+
return ret;
|
|
2345
|
+
},
|
|
2346
|
+
__wbg_maxColorAttachmentBytesPerSample_bc1f830de8a908f2: function(arg0) {
|
|
2347
|
+
const ret = getObject(arg0).maxColorAttachmentBytesPerSample;
|
|
2348
|
+
return ret;
|
|
2349
|
+
},
|
|
2350
|
+
__wbg_maxColorAttachments_4952c282fa06607a: function(arg0) {
|
|
2351
|
+
const ret = getObject(arg0).maxColorAttachments;
|
|
2352
|
+
return ret;
|
|
2353
|
+
},
|
|
2354
|
+
__wbg_maxComputeInvocationsPerWorkgroup_b5bab4657d018738: function(arg0) {
|
|
2355
|
+
const ret = getObject(arg0).maxComputeInvocationsPerWorkgroup;
|
|
2356
|
+
return ret;
|
|
2357
|
+
},
|
|
2358
|
+
__wbg_maxComputeWorkgroupSizeX_eeeb0ea3d50b451c: function(arg0) {
|
|
2359
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeX;
|
|
2360
|
+
return ret;
|
|
2361
|
+
},
|
|
2362
|
+
__wbg_maxComputeWorkgroupSizeY_7f1c108f97d8843e: function(arg0) {
|
|
2363
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeY;
|
|
2364
|
+
return ret;
|
|
2365
|
+
},
|
|
2366
|
+
__wbg_maxComputeWorkgroupSizeZ_ec4ea5ceb6f6159e: function(arg0) {
|
|
2367
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeZ;
|
|
2368
|
+
return ret;
|
|
2369
|
+
},
|
|
2370
|
+
__wbg_maxComputeWorkgroupStorageSize_eca5a75f6a193b3d: function(arg0) {
|
|
2371
|
+
const ret = getObject(arg0).maxComputeWorkgroupStorageSize;
|
|
2372
|
+
return ret;
|
|
2373
|
+
},
|
|
2374
|
+
__wbg_maxComputeWorkgroupsPerDimension_6f970b8641b48f2b: function(arg0) {
|
|
2375
|
+
const ret = getObject(arg0).maxComputeWorkgroupsPerDimension;
|
|
2376
|
+
return ret;
|
|
2377
|
+
},
|
|
2378
|
+
__wbg_maxDynamicStorageBuffersPerPipelineLayout_52981da83da6ee2a: function(arg0) {
|
|
2379
|
+
const ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout;
|
|
2380
|
+
return ret;
|
|
2381
|
+
},
|
|
2382
|
+
__wbg_maxDynamicUniformBuffersPerPipelineLayout_8baeebbb1490ea1b: function(arg0) {
|
|
2383
|
+
const ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout;
|
|
2384
|
+
return ret;
|
|
2385
|
+
},
|
|
2386
|
+
__wbg_maxInterStageShaderVariables_33483c2d54ed9046: function(arg0) {
|
|
2387
|
+
const ret = getObject(arg0).maxInterStageShaderVariables;
|
|
2388
|
+
return ret;
|
|
2389
|
+
},
|
|
2390
|
+
__wbg_maxSampledTexturesPerShaderStage_62df33342aa2935a: function(arg0) {
|
|
2391
|
+
const ret = getObject(arg0).maxSampledTexturesPerShaderStage;
|
|
2392
|
+
return ret;
|
|
2393
|
+
},
|
|
2394
|
+
__wbg_maxSamplersPerShaderStage_a7bb066c3bf95792: function(arg0) {
|
|
2395
|
+
const ret = getObject(arg0).maxSamplersPerShaderStage;
|
|
2396
|
+
return ret;
|
|
2397
|
+
},
|
|
2398
|
+
__wbg_maxStorageBufferBindingSize_90befc286ec9ece4: function(arg0) {
|
|
2399
|
+
const ret = getObject(arg0).maxStorageBufferBindingSize;
|
|
2400
|
+
return ret;
|
|
2401
|
+
},
|
|
2402
|
+
__wbg_maxStorageBuffersPerShaderStage_8cd401ba4b99b087: function(arg0) {
|
|
2403
|
+
const ret = getObject(arg0).maxStorageBuffersPerShaderStage;
|
|
2404
|
+
return ret;
|
|
2405
|
+
},
|
|
2406
|
+
__wbg_maxStorageTexturesPerShaderStage_d2366b9b555fa5cd: function(arg0) {
|
|
2407
|
+
const ret = getObject(arg0).maxStorageTexturesPerShaderStage;
|
|
2408
|
+
return ret;
|
|
2409
|
+
},
|
|
2410
|
+
__wbg_maxTextureArrayLayers_d384b7674555c83f: function(arg0) {
|
|
2411
|
+
const ret = getObject(arg0).maxTextureArrayLayers;
|
|
2412
|
+
return ret;
|
|
2413
|
+
},
|
|
2414
|
+
__wbg_maxTextureDimension1D_d3d7845385623778: function(arg0) {
|
|
2415
|
+
const ret = getObject(arg0).maxTextureDimension1D;
|
|
2416
|
+
return ret;
|
|
2417
|
+
},
|
|
2418
|
+
__wbg_maxTextureDimension2D_107643b652f4c695: function(arg0) {
|
|
2419
|
+
const ret = getObject(arg0).maxTextureDimension2D;
|
|
2420
|
+
return ret;
|
|
2421
|
+
},
|
|
2422
|
+
__wbg_maxTextureDimension3D_b75b271327248bb5: function(arg0) {
|
|
2423
|
+
const ret = getObject(arg0).maxTextureDimension3D;
|
|
2424
|
+
return ret;
|
|
2425
|
+
},
|
|
2426
|
+
__wbg_maxUniformBufferBindingSize_fff1cb2289fffb24: function(arg0) {
|
|
2427
|
+
const ret = getObject(arg0).maxUniformBufferBindingSize;
|
|
2428
|
+
return ret;
|
|
2429
|
+
},
|
|
2430
|
+
__wbg_maxUniformBuffersPerShaderStage_cf8c13bbacf6d32e: function(arg0) {
|
|
2431
|
+
const ret = getObject(arg0).maxUniformBuffersPerShaderStage;
|
|
2432
|
+
return ret;
|
|
2433
|
+
},
|
|
2434
|
+
__wbg_maxVertexAttributes_4d013cbf345396a7: function(arg0) {
|
|
2435
|
+
const ret = getObject(arg0).maxVertexAttributes;
|
|
2436
|
+
return ret;
|
|
2437
|
+
},
|
|
2438
|
+
__wbg_maxVertexBufferArrayStride_e1c7379e9c120e54: function(arg0) {
|
|
2439
|
+
const ret = getObject(arg0).maxVertexBufferArrayStride;
|
|
2440
|
+
return ret;
|
|
2441
|
+
},
|
|
2442
|
+
__wbg_maxVertexBuffers_2168867fc5dd28f6: function(arg0) {
|
|
2443
|
+
const ret = getObject(arg0).maxVertexBuffers;
|
|
2444
|
+
return ret;
|
|
2445
|
+
},
|
|
2446
|
+
__wbg_minStorageBufferOffsetAlignment_7ce34b5bdf38450b: function(arg0) {
|
|
2447
|
+
const ret = getObject(arg0).minStorageBufferOffsetAlignment;
|
|
2448
|
+
return ret;
|
|
2449
|
+
},
|
|
2450
|
+
__wbg_minUniformBufferOffsetAlignment_3fed4cf7ea8b825e: function(arg0) {
|
|
2451
|
+
const ret = getObject(arg0).minUniformBufferOffsetAlignment;
|
|
2452
|
+
return ret;
|
|
2453
|
+
},
|
|
2454
|
+
__wbg_navigator_583ffd4fc14c0f7a: function(arg0) {
|
|
2455
|
+
const ret = getObject(arg0).navigator;
|
|
2456
|
+
return addHeapObject(ret);
|
|
2457
|
+
},
|
|
2458
|
+
__wbg_navigator_9cebf56f28aa719b: function(arg0) {
|
|
2459
|
+
const ret = getObject(arg0).navigator;
|
|
2460
|
+
return addHeapObject(ret);
|
|
2461
|
+
},
|
|
2462
|
+
__wbg_new_3acd383af1655b5f: function() { return handleError(function (arg0, arg1) {
|
|
2463
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
2464
|
+
return addHeapObject(ret);
|
|
2465
|
+
}, arguments); },
|
|
2466
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
2467
|
+
const ret = new Object();
|
|
2468
|
+
return addHeapObject(ret);
|
|
2469
|
+
},
|
|
2470
|
+
__wbg_new_af04f4c3ed7fd887: function(arg0) {
|
|
2471
|
+
const ret = new Int32Array(getObject(arg0));
|
|
2472
|
+
return addHeapObject(ret);
|
|
2473
|
+
},
|
|
2474
|
+
__wbg_new_d098e265629cd10f: function(arg0, arg1) {
|
|
2475
|
+
try {
|
|
2476
|
+
var state0 = {a: arg0, b: arg1};
|
|
2477
|
+
var cb0 = (arg0, arg1) => {
|
|
2478
|
+
const a = state0.a;
|
|
2479
|
+
state0.a = 0;
|
|
2480
|
+
try {
|
|
2481
|
+
return __wasm_bindgen_func_elem_623(a, state0.b, arg0, arg1);
|
|
2482
|
+
} finally {
|
|
2483
|
+
state0.a = a;
|
|
2484
|
+
}
|
|
2485
|
+
};
|
|
2486
|
+
const ret = new Promise(cb0);
|
|
2487
|
+
return addHeapObject(ret);
|
|
2488
|
+
} finally {
|
|
2489
|
+
state0.a = state0.b = 0;
|
|
2490
|
+
}
|
|
2491
|
+
},
|
|
2492
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
2493
|
+
try {
|
|
2494
|
+
var state0 = {a: arg0, b: arg1};
|
|
2495
|
+
var cb0 = (arg0, arg1) => {
|
|
2496
|
+
const a = state0.a;
|
|
2497
|
+
state0.a = 0;
|
|
2498
|
+
try {
|
|
2499
|
+
return __wasm_bindgen_func_elem_623(a, state0.b, arg0, arg1);
|
|
2500
|
+
} finally {
|
|
2501
|
+
state0.a = a;
|
|
2502
|
+
}
|
|
2503
|
+
};
|
|
2504
|
+
const ret = new Promise(cb0);
|
|
2505
|
+
return addHeapObject(ret);
|
|
2506
|
+
} finally {
|
|
2507
|
+
state0.a = state0.b = 0;
|
|
2508
|
+
}
|
|
2509
|
+
},
|
|
2510
|
+
__wbg_new_typed_bccac67128ed885a: function() {
|
|
2511
|
+
const ret = new Array();
|
|
2512
|
+
return addHeapObject(ret);
|
|
2513
|
+
},
|
|
2514
|
+
__wbg_new_with_byte_offset_and_length_b2ec5bf7b2f35743: function(arg0, arg1, arg2) {
|
|
2515
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2516
|
+
return addHeapObject(ret);
|
|
2517
|
+
},
|
|
1959
2518
|
__wbg_new_with_length_81c1c31d4432cb9f: function(arg0) {
|
|
1960
2519
|
const ret = new Float32Array(arg0 >>> 0);
|
|
1961
2520
|
return addHeapObject(ret);
|
|
@@ -1964,12 +2523,210 @@ function __wbg_get_imports(memory) {
|
|
|
1964
2523
|
const ret = new Float64Array(arg0 >>> 0);
|
|
1965
2524
|
return addHeapObject(ret);
|
|
1966
2525
|
},
|
|
2526
|
+
__wbg_of_8fd5dd402bc67165: function(arg0, arg1, arg2) {
|
|
2527
|
+
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2528
|
+
return addHeapObject(ret);
|
|
2529
|
+
},
|
|
2530
|
+
__wbg_onSubmittedWorkDone_bc9163429911b187: function(arg0) {
|
|
2531
|
+
const ret = getObject(arg0).onSubmittedWorkDone();
|
|
2532
|
+
return addHeapObject(ret);
|
|
2533
|
+
},
|
|
2534
|
+
__wbg_postMessage_edb4c90a528e5a8c: function() { return handleError(function (arg0, arg1) {
|
|
2535
|
+
getObject(arg0).postMessage(getObject(arg1));
|
|
2536
|
+
}, arguments); },
|
|
2537
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
2538
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
2539
|
+
},
|
|
2540
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
2541
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
2542
|
+
return ret;
|
|
2543
|
+
},
|
|
2544
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
2545
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2546
|
+
return addHeapObject(ret);
|
|
2547
|
+
},
|
|
2548
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
2549
|
+
queueMicrotask(getObject(arg0));
|
|
2550
|
+
},
|
|
2551
|
+
__wbg_queue_158ffabe7c457baf: function(arg0) {
|
|
2552
|
+
const ret = getObject(arg0).queue;
|
|
2553
|
+
return addHeapObject(ret);
|
|
2554
|
+
},
|
|
2555
|
+
__wbg_requestAdapter_4b256f8281d7b78e: function(arg0, arg1) {
|
|
2556
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
2557
|
+
return addHeapObject(ret);
|
|
2558
|
+
},
|
|
2559
|
+
__wbg_requestDevice_1fb9510af28cb532: function(arg0, arg1) {
|
|
2560
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
2561
|
+
return addHeapObject(ret);
|
|
2562
|
+
},
|
|
2563
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
2564
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
2565
|
+
return addHeapObject(ret);
|
|
2566
|
+
},
|
|
2567
|
+
__wbg_setBindGroup_fedcfdd4249a8326: function(arg0, arg1, arg2) {
|
|
2568
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
2569
|
+
},
|
|
2570
|
+
__wbg_setPipeline_aa90d1841c6c5e8c: function(arg0, arg1) {
|
|
2571
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
2572
|
+
},
|
|
1967
2573
|
__wbg_set_361bc2460da3016f: function(arg0, arg1, arg2) {
|
|
1968
2574
|
getObject(arg0).set(getArrayF32FromWasm0(arg1, arg2));
|
|
1969
2575
|
},
|
|
1970
2576
|
__wbg_set_636d1e3e4286e068: function(arg0, arg1, arg2) {
|
|
1971
2577
|
getObject(arg0).set(getArrayF64FromWasm0(arg1, arg2));
|
|
1972
2578
|
},
|
|
2579
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2580
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2581
|
+
return ret;
|
|
2582
|
+
}, arguments); },
|
|
2583
|
+
__wbg_set_access_e6549ed0394b3186: function(arg0, arg1) {
|
|
2584
|
+
getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
2585
|
+
},
|
|
2586
|
+
__wbg_set_bind_group_layouts_037e702baacec92b: function(arg0, arg1) {
|
|
2587
|
+
getObject(arg0).bindGroupLayouts = getObject(arg1);
|
|
2588
|
+
},
|
|
2589
|
+
__wbg_set_binding_2c231dc30f53772c: function(arg0, arg1) {
|
|
2590
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2591
|
+
},
|
|
2592
|
+
__wbg_set_binding_4d75e2c48237c20d: function(arg0, arg1) {
|
|
2593
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
2594
|
+
},
|
|
2595
|
+
__wbg_set_buffer_624248e3445a6915: function(arg0, arg1) {
|
|
2596
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2597
|
+
},
|
|
2598
|
+
__wbg_set_buffer_c113f581e90e0fea: function(arg0, arg1) {
|
|
2599
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
2600
|
+
},
|
|
2601
|
+
__wbg_set_code_7ce96875d99b3504: function(arg0, arg1, arg2) {
|
|
2602
|
+
getObject(arg0).code = getStringFromWasm0(arg1, arg2);
|
|
2603
|
+
},
|
|
2604
|
+
__wbg_set_compute_50bda9f73a1b1e27: function(arg0, arg1) {
|
|
2605
|
+
getObject(arg0).compute = getObject(arg1);
|
|
2606
|
+
},
|
|
2607
|
+
__wbg_set_e80615d7a9a43981: function(arg0, arg1, arg2) {
|
|
2608
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2609
|
+
},
|
|
2610
|
+
__wbg_set_entries_3551eb34e7984a92: function(arg0, arg1) {
|
|
2611
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2612
|
+
},
|
|
2613
|
+
__wbg_set_entries_f295aad70825c831: function(arg0, arg1) {
|
|
2614
|
+
getObject(arg0).entries = getObject(arg1);
|
|
2615
|
+
},
|
|
2616
|
+
__wbg_set_entry_point_30a36ef90529d3b2: function(arg0, arg1, arg2) {
|
|
2617
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
2618
|
+
},
|
|
2619
|
+
__wbg_set_external_texture_0098d52860366e58: function(arg0, arg1) {
|
|
2620
|
+
getObject(arg0).externalTexture = getObject(arg1);
|
|
2621
|
+
},
|
|
2622
|
+
__wbg_set_format_0f43d8c4627b77a3: function(arg0, arg1) {
|
|
2623
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
2624
|
+
},
|
|
2625
|
+
__wbg_set_has_dynamic_offset_63f032652fa863e1: function(arg0, arg1) {
|
|
2626
|
+
getObject(arg0).hasDynamicOffset = arg1 !== 0;
|
|
2627
|
+
},
|
|
2628
|
+
__wbg_set_label_10f8fd3c496a5be4: function(arg0, arg1, arg2) {
|
|
2629
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2630
|
+
},
|
|
2631
|
+
__wbg_set_label_1e9198e93eca4299: function(arg0, arg1, arg2) {
|
|
2632
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2633
|
+
},
|
|
2634
|
+
__wbg_set_label_35f8b595e4123cde: function(arg0, arg1, arg2) {
|
|
2635
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2636
|
+
},
|
|
2637
|
+
__wbg_set_label_72adda54eba1f903: function(arg0, arg1, arg2) {
|
|
2638
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2639
|
+
},
|
|
2640
|
+
__wbg_set_label_91abab2693f4a3bc: function(arg0, arg1, arg2) {
|
|
2641
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2642
|
+
},
|
|
2643
|
+
__wbg_set_label_ac69ac3a9b1529b5: function(arg0, arg1, arg2) {
|
|
2644
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2645
|
+
},
|
|
2646
|
+
__wbg_set_label_c960b57fe8acc26e: function(arg0, arg1, arg2) {
|
|
2647
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2648
|
+
},
|
|
2649
|
+
__wbg_set_label_e30f49a4490fe0ac: function(arg0, arg1, arg2) {
|
|
2650
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2651
|
+
},
|
|
2652
|
+
__wbg_set_label_f6151f96c3741386: function(arg0, arg1, arg2) {
|
|
2653
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2654
|
+
},
|
|
2655
|
+
__wbg_set_label_ff04432bdc542ef2: function(arg0, arg1, arg2) {
|
|
2656
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
2657
|
+
},
|
|
2658
|
+
__wbg_set_layout_01c7a0fb2622f0b5: function(arg0, arg1) {
|
|
2659
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2660
|
+
},
|
|
2661
|
+
__wbg_set_layout_d20d29205ea6861b: function(arg0, arg1) {
|
|
2662
|
+
getObject(arg0).layout = getObject(arg1);
|
|
2663
|
+
},
|
|
2664
|
+
__wbg_set_mapped_at_creation_fc7e6d1b142fde5c: function(arg0, arg1) {
|
|
2665
|
+
getObject(arg0).mappedAtCreation = arg1 !== 0;
|
|
2666
|
+
},
|
|
2667
|
+
__wbg_set_min_binding_size_227fb264b01a43c0: function(arg0, arg1) {
|
|
2668
|
+
getObject(arg0).minBindingSize = arg1;
|
|
2669
|
+
},
|
|
2670
|
+
__wbg_set_module_6852719e66be3da3: function(arg0, arg1) {
|
|
2671
|
+
getObject(arg0).module = getObject(arg1);
|
|
2672
|
+
},
|
|
2673
|
+
__wbg_set_multisampled_fe73b8ab44272511: function(arg0, arg1) {
|
|
2674
|
+
getObject(arg0).multisampled = arg1 !== 0;
|
|
2675
|
+
},
|
|
2676
|
+
__wbg_set_offset_37cf2ca9f7f6ed91: function(arg0, arg1) {
|
|
2677
|
+
getObject(arg0).offset = arg1;
|
|
2678
|
+
},
|
|
2679
|
+
__wbg_set_onmessage_d5dc11c291025af6: function(arg0, arg1) {
|
|
2680
|
+
getObject(arg0).onmessage = getObject(arg1);
|
|
2681
|
+
},
|
|
2682
|
+
__wbg_set_power_preference_c127ee8023d65920: function(arg0, arg1) {
|
|
2683
|
+
getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
2684
|
+
},
|
|
2685
|
+
__wbg_set_required_features_56152ea832e0ee69: function(arg0, arg1) {
|
|
2686
|
+
getObject(arg0).requiredFeatures = getObject(arg1);
|
|
2687
|
+
},
|
|
2688
|
+
__wbg_set_required_limits_66aaa6d20888249e: function(arg0, arg1) {
|
|
2689
|
+
getObject(arg0).requiredLimits = getObject(arg1);
|
|
2690
|
+
},
|
|
2691
|
+
__wbg_set_resource_96c9dae6621d69cb: function(arg0, arg1) {
|
|
2692
|
+
getObject(arg0).resource = getObject(arg1);
|
|
2693
|
+
},
|
|
2694
|
+
__wbg_set_sample_type_a203784b364c5c95: function(arg0, arg1) {
|
|
2695
|
+
getObject(arg0).sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
2696
|
+
},
|
|
2697
|
+
__wbg_set_sampler_e66a438c05e728da: function(arg0, arg1) {
|
|
2698
|
+
getObject(arg0).sampler = getObject(arg1);
|
|
2699
|
+
},
|
|
2700
|
+
__wbg_set_size_a4cd4174004cf45a: function(arg0, arg1) {
|
|
2701
|
+
getObject(arg0).size = arg1;
|
|
2702
|
+
},
|
|
2703
|
+
__wbg_set_size_af36c7b7da8859a3: function(arg0, arg1) {
|
|
2704
|
+
getObject(arg0).size = arg1;
|
|
2705
|
+
},
|
|
2706
|
+
__wbg_set_storage_texture_b5ef0a1da3534b6e: function(arg0, arg1) {
|
|
2707
|
+
getObject(arg0).storageTexture = getObject(arg1);
|
|
2708
|
+
},
|
|
2709
|
+
__wbg_set_texture_b21945b2510902fd: function(arg0, arg1) {
|
|
2710
|
+
getObject(arg0).texture = getObject(arg1);
|
|
2711
|
+
},
|
|
2712
|
+
__wbg_set_type_159fa2c127742535: function(arg0, arg1) {
|
|
2713
|
+
getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
2714
|
+
},
|
|
2715
|
+
__wbg_set_type_abc91e53f2eac241: function(arg0, arg1) {
|
|
2716
|
+
getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
2717
|
+
},
|
|
2718
|
+
__wbg_set_usage_1a33f708fe27dce8: function(arg0, arg1) {
|
|
2719
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
2720
|
+
},
|
|
2721
|
+
__wbg_set_view_dimension_9b6ca209979000a1: function(arg0, arg1) {
|
|
2722
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2723
|
+
},
|
|
2724
|
+
__wbg_set_view_dimension_dfe70653a047d5ae: function(arg0, arg1) {
|
|
2725
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
2726
|
+
},
|
|
2727
|
+
__wbg_set_visibility_73d7278cd803e736: function(arg0, arg1) {
|
|
2728
|
+
getObject(arg0).visibility = arg1 >>> 0;
|
|
2729
|
+
},
|
|
1973
2730
|
__wbg_startWorkers_8b582d57e92bd2d4: function(arg0, arg1, arg2) {
|
|
1974
2731
|
const ret = startWorkers(takeObject(arg0), takeObject(arg1), wbg_rayon_PoolBuilder.__wrap(arg2));
|
|
1975
2732
|
return addHeapObject(ret);
|
|
@@ -1990,6 +2747,84 @@ function __wbg_get_imports(memory) {
|
|
|
1990
2747
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1991
2748
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1992
2749
|
},
|
|
2750
|
+
__wbg_submit_32980074670fdf26: function(arg0, arg1) {
|
|
2751
|
+
getObject(arg0).submit(getObject(arg1));
|
|
2752
|
+
},
|
|
2753
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
2754
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2755
|
+
return addHeapObject(ret);
|
|
2756
|
+
},
|
|
2757
|
+
__wbg_then_1d7a5273811a5cea: function(arg0, arg1) {
|
|
2758
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2759
|
+
return addHeapObject(ret);
|
|
2760
|
+
},
|
|
2761
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
2762
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2763
|
+
return addHeapObject(ret);
|
|
2764
|
+
},
|
|
2765
|
+
__wbg_then_bc59d1943397ca4e: function(arg0, arg1, arg2) {
|
|
2766
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2767
|
+
return addHeapObject(ret);
|
|
2768
|
+
},
|
|
2769
|
+
__wbg_unmap_41b1894fd602a1d0: function(arg0) {
|
|
2770
|
+
getObject(arg0).unmap();
|
|
2771
|
+
},
|
|
2772
|
+
__wbg_value_a529cd2f781749fd: function(arg0) {
|
|
2773
|
+
const ret = getObject(arg0).value;
|
|
2774
|
+
return addHeapObject(ret);
|
|
2775
|
+
},
|
|
2776
|
+
__wbg_waitAsync_91ab9cf292b5ab15: function(arg0, arg1, arg2) {
|
|
2777
|
+
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
2778
|
+
return addHeapObject(ret);
|
|
2779
|
+
},
|
|
2780
|
+
__wbg_waitAsync_a4399d51368b6ce4: function() {
|
|
2781
|
+
const ret = Atomics.waitAsync;
|
|
2782
|
+
return addHeapObject(ret);
|
|
2783
|
+
},
|
|
2784
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2785
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 10, function: Function { arguments: [Externref], shim_idx: 11, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2786
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2470, __wasm_bindgen_func_elem_2476);
|
|
2787
|
+
return addHeapObject(ret);
|
|
2788
|
+
},
|
|
2789
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2790
|
+
// 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`.
|
|
2791
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2470, __wasm_bindgen_func_elem_709);
|
|
2792
|
+
return addHeapObject(ret);
|
|
2793
|
+
},
|
|
2794
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2795
|
+
// 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`.
|
|
2796
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2470, __wasm_bindgen_func_elem_2476_2);
|
|
2797
|
+
return addHeapObject(ret);
|
|
2798
|
+
},
|
|
2799
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
2800
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
2801
|
+
const ret = arg0;
|
|
2802
|
+
return addHeapObject(ret);
|
|
2803
|
+
},
|
|
2804
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2805
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2806
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2807
|
+
return addHeapObject(ret);
|
|
2808
|
+
},
|
|
2809
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2810
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2811
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2812
|
+
return addHeapObject(ret);
|
|
2813
|
+
},
|
|
2814
|
+
__wbindgen_link_fcd7cf2a23e346d3: function(arg0) {
|
|
2815
|
+
const val = `onmessage = function (ev) {
|
|
2816
|
+
let [ia, index, value] = ev.data;
|
|
2817
|
+
ia = new Int32Array(ia.buffer);
|
|
2818
|
+
let result = Atomics.wait(ia, index, value);
|
|
2819
|
+
postMessage(result);
|
|
2820
|
+
};
|
|
2821
|
+
`;
|
|
2822
|
+
const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
|
|
2823
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2824
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2825
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2826
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2827
|
+
},
|
|
1993
2828
|
__wbindgen_object_clone_ref: function(arg0) {
|
|
1994
2829
|
const ret = getObject(arg0);
|
|
1995
2830
|
return addHeapObject(ret);
|
|
@@ -2005,6 +2840,52 @@ function __wbg_get_imports(memory) {
|
|
|
2005
2840
|
};
|
|
2006
2841
|
}
|
|
2007
2842
|
|
|
2843
|
+
function __wasm_bindgen_func_elem_2476(arg0, arg1, arg2) {
|
|
2844
|
+
wasm.__wasm_bindgen_func_elem_2476(arg0, arg1, addHeapObject(arg2));
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
function __wasm_bindgen_func_elem_2476_2(arg0, arg1, arg2) {
|
|
2848
|
+
wasm.__wasm_bindgen_func_elem_2476_2(arg0, arg1, addHeapObject(arg2));
|
|
2849
|
+
}
|
|
2850
|
+
|
|
2851
|
+
function __wasm_bindgen_func_elem_709(arg0, arg1, arg2) {
|
|
2852
|
+
try {
|
|
2853
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2854
|
+
wasm.__wasm_bindgen_func_elem_709(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2855
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2856
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2857
|
+
if (r1) {
|
|
2858
|
+
throw takeObject(r0);
|
|
2859
|
+
}
|
|
2860
|
+
} finally {
|
|
2861
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
function __wasm_bindgen_func_elem_623(arg0, arg1, arg2, arg3) {
|
|
2866
|
+
wasm.__wasm_bindgen_func_elem_623(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
|
|
2870
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
2877
|
+
|
|
2878
|
+
|
|
2879
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
2880
|
+
|
|
2881
|
+
|
|
2882
|
+
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"];
|
|
2883
|
+
|
|
2884
|
+
|
|
2885
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
2886
|
+
|
|
2887
|
+
|
|
2888
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
2008
2889
|
const wbg_rayon_PoolBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2009
2890
|
? { register: () => {}, unregister: () => {} }
|
|
2010
2891
|
: new FinalizationRegistry(ptr => wasm.__wbg_wbg_rayon_poolbuilder_free(ptr >>> 0, 1));
|
|
@@ -2018,6 +2899,75 @@ function addHeapObject(obj) {
|
|
|
2018
2899
|
return idx;
|
|
2019
2900
|
}
|
|
2020
2901
|
|
|
2902
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
2903
|
+
? { register: () => {}, unregister: () => {} }
|
|
2904
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
2905
|
+
|
|
2906
|
+
function debugString(val) {
|
|
2907
|
+
// primitive types
|
|
2908
|
+
const type = typeof val;
|
|
2909
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
2910
|
+
return `${val}`;
|
|
2911
|
+
}
|
|
2912
|
+
if (type == 'string') {
|
|
2913
|
+
return `"${val}"`;
|
|
2914
|
+
}
|
|
2915
|
+
if (type == 'symbol') {
|
|
2916
|
+
const description = val.description;
|
|
2917
|
+
if (description == null) {
|
|
2918
|
+
return 'Symbol';
|
|
2919
|
+
} else {
|
|
2920
|
+
return `Symbol(${description})`;
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
if (type == 'function') {
|
|
2924
|
+
const name = val.name;
|
|
2925
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
2926
|
+
return `Function(${name})`;
|
|
2927
|
+
} else {
|
|
2928
|
+
return 'Function';
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
// objects
|
|
2932
|
+
if (Array.isArray(val)) {
|
|
2933
|
+
const length = val.length;
|
|
2934
|
+
let debug = '[';
|
|
2935
|
+
if (length > 0) {
|
|
2936
|
+
debug += debugString(val[0]);
|
|
2937
|
+
}
|
|
2938
|
+
for(let i = 1; i < length; i++) {
|
|
2939
|
+
debug += ', ' + debugString(val[i]);
|
|
2940
|
+
}
|
|
2941
|
+
debug += ']';
|
|
2942
|
+
return debug;
|
|
2943
|
+
}
|
|
2944
|
+
// Test for built-in
|
|
2945
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
2946
|
+
let className;
|
|
2947
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
2948
|
+
className = builtInMatches[1];
|
|
2949
|
+
} else {
|
|
2950
|
+
// Failed to match the standard '[object ClassName]'
|
|
2951
|
+
return toString.call(val);
|
|
2952
|
+
}
|
|
2953
|
+
if (className == 'Object') {
|
|
2954
|
+
// we're a user defined class or Object
|
|
2955
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
2956
|
+
// easier than looping through ownProperties of `val`.
|
|
2957
|
+
try {
|
|
2958
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
2959
|
+
} catch (_) {
|
|
2960
|
+
return 'Object';
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
// errors
|
|
2964
|
+
if (val instanceof Error) {
|
|
2965
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
2966
|
+
}
|
|
2967
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
2968
|
+
return className;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2021
2971
|
function dropObject(idx) {
|
|
2022
2972
|
if (idx < 1028) return;
|
|
2023
2973
|
heap[idx] = heap_next;
|
|
@@ -2034,6 +2984,11 @@ function getArrayF64FromWasm0(ptr, len) {
|
|
|
2034
2984
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
2035
2985
|
}
|
|
2036
2986
|
|
|
2987
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
2988
|
+
ptr = ptr >>> 0;
|
|
2989
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2037
2992
|
let cachedDataViewMemory0 = null;
|
|
2038
2993
|
function getDataViewMemory0() {
|
|
2039
2994
|
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
@@ -2073,6 +3028,14 @@ function getUint8ArrayMemory0() {
|
|
|
2073
3028
|
|
|
2074
3029
|
function getObject(idx) { return heap[idx]; }
|
|
2075
3030
|
|
|
3031
|
+
function handleError(f, args) {
|
|
3032
|
+
try {
|
|
3033
|
+
return f.apply(this, args);
|
|
3034
|
+
} catch (e) {
|
|
3035
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
|
|
2076
3039
|
let heap = new Array(1024).fill(undefined);
|
|
2077
3040
|
heap.push(undefined, null, true, false);
|
|
2078
3041
|
|
|
@@ -2082,6 +3045,34 @@ function isLikeNone(x) {
|
|
|
2082
3045
|
return x === undefined || x === null;
|
|
2083
3046
|
}
|
|
2084
3047
|
|
|
3048
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
3049
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
3050
|
+
const real = (...args) => {
|
|
3051
|
+
|
|
3052
|
+
// First up with a closure we increment the internal reference
|
|
3053
|
+
// count. This ensures that the Rust closure environment won't
|
|
3054
|
+
// be deallocated while we're invoking it.
|
|
3055
|
+
state.cnt++;
|
|
3056
|
+
const a = state.a;
|
|
3057
|
+
state.a = 0;
|
|
3058
|
+
try {
|
|
3059
|
+
return f(a, state.b, ...args);
|
|
3060
|
+
} finally {
|
|
3061
|
+
state.a = a;
|
|
3062
|
+
real._wbg_cb_unref();
|
|
3063
|
+
}
|
|
3064
|
+
};
|
|
3065
|
+
real._wbg_cb_unref = () => {
|
|
3066
|
+
if (--state.cnt === 0) {
|
|
3067
|
+
state.dtor(state.a, state.b);
|
|
3068
|
+
state.a = 0;
|
|
3069
|
+
CLOSURE_DTORS.unregister(state);
|
|
3070
|
+
}
|
|
3071
|
+
};
|
|
3072
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
3073
|
+
return real;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
2085
3076
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
2086
3077
|
if (realloc === undefined) {
|
|
2087
3078
|
const buf = cachedTextEncoder.encode(arg);
|