fragmentcolor 0.12.4 → 0.12.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/README.md +4 -4
- package/fragmentcolor.d.ts +109 -109
- package/fragmentcolor.js +31 -5
- package/fragmentcolor_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[FragmentColor](https://fragmentcolor.org) is a cross‑platform GPU programming library implemented in Rust and wgpu, compiled to WebAssembly for JavaScript.
|
|
4
4
|
|
|
5
|
-
This README is specific to the npm package. For Rust usage, see the repository README.md. For Python, see
|
|
5
|
+
This README is specific to the npm package. For Rust usage, see the repository README.md. For Python, see `platforms/python/README.md` in the repository.
|
|
6
6
|
|
|
7
7
|
- Documentation: https://fragmentcolor.org/welcome
|
|
8
8
|
- API Reference: https://fragmentcolor.org/api
|
|
@@ -100,10 +100,10 @@ start();
|
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
102
|
# Build WASM package (wasm-pack target web) and sync into local JS examples
|
|
103
|
-
./build_web # add --debug for a debug build
|
|
103
|
+
./fc build_web # add --debug for a debug build
|
|
104
104
|
|
|
105
105
|
# Run JS demos (Vite dev server) and open browser
|
|
106
|
-
./run_web repl # or: ./run_web multipass | ./run_web headless
|
|
106
|
+
./fc run_web repl # or: ./fc run_web multipass | ./fc run_web headless
|
|
107
107
|
|
|
108
108
|
# Manual alternative
|
|
109
109
|
pnpm --dir examples/javascript install
|
|
@@ -139,4 +139,4 @@ Platform support is aligned with upstream wgpu:
|
|
|
139
139
|
|
|
140
140
|
---
|
|
141
141
|
|
|
142
|
-
Note on generation: this
|
|
142
|
+
Note on generation: this README.md is generated from README.tpl.md (same directory) and the repository README.md examples by the build script. Do not edit the generated README.md directly.
|
package/fragmentcolor.d.ts
CHANGED
|
@@ -635,16 +635,35 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
635
635
|
|
|
636
636
|
export interface InitOutput {
|
|
637
637
|
readonly memory: WebAssembly.Memory;
|
|
638
|
+
readonly __wbg_get_screenregion_max_x: (a: number) => number;
|
|
639
|
+
readonly __wbg_get_screenregion_max_y: (a: number) => number;
|
|
640
|
+
readonly __wbg_get_screenregion_min_x: (a: number) => number;
|
|
641
|
+
readonly __wbg_get_screenregion_min_y: (a: number) => number;
|
|
642
|
+
readonly __wbg_screenregion_free: (a: number, b: number) => void;
|
|
643
|
+
readonly __wbg_set_screenregion_max_x: (a: number, b: number) => void;
|
|
644
|
+
readonly __wbg_set_screenregion_max_y: (a: number, b: number) => void;
|
|
645
|
+
readonly __wbg_set_screenregion_min_x: (a: number, b: number) => void;
|
|
646
|
+
readonly __wbg_set_screenregion_min_y: (a: number, b: number) => void;
|
|
638
647
|
readonly __wbg_externaltexturehandle_free: (a: number, b: number) => void;
|
|
639
|
-
readonly
|
|
640
|
-
readonly __wbg_set_textureusage_bits: (a: number, b: number) => void;
|
|
641
|
-
readonly __wbg_shader_free: (a: number, b: number) => void;
|
|
642
|
-
readonly __wbg_textureusage_free: (a: number, b: number) => void;
|
|
643
|
-
readonly shader___fc_kind: (a: number) => [number, number];
|
|
644
|
-
readonly __wbg_pass_free: (a: number, b: number) => void;
|
|
645
|
-
readonly __wbg_passinput_free: (a: number, b: number) => void;
|
|
646
|
-
readonly __wbg_scene_free: (a: number, b: number) => void;
|
|
648
|
+
readonly __wbg_quad_free: (a: number, b: number) => void;
|
|
647
649
|
readonly __wbg_texturetarget_free: (a: number, b: number) => void;
|
|
650
|
+
readonly texturetarget___fc_kind: (a: number) => [number, number];
|
|
651
|
+
readonly __wbg_canvastarget_free: (a: number, b: number) => void;
|
|
652
|
+
readonly __wbg_get_size_depth: (a: number) => number;
|
|
653
|
+
readonly __wbg_get_size_height: (a: number) => number;
|
|
654
|
+
readonly __wbg_get_size_width: (a: number) => number;
|
|
655
|
+
readonly __wbg_instance_free: (a: number, b: number) => void;
|
|
656
|
+
readonly __wbg_set_size_depth: (a: number, b: number) => void;
|
|
657
|
+
readonly __wbg_set_size_height: (a: number, b: number) => void;
|
|
658
|
+
readonly __wbg_set_size_width: (a: number, b: number) => void;
|
|
659
|
+
readonly __wbg_size_free: (a: number, b: number) => void;
|
|
660
|
+
readonly __wbg_vertex_free: (a: number, b: number) => void;
|
|
661
|
+
readonly canvastarget___fc_kind: (a: number) => [number, number];
|
|
662
|
+
readonly canvastarget_getImage: (a: number) => [number, number, number];
|
|
663
|
+
readonly canvastarget_resize: (a: number, b: any) => [number, number];
|
|
664
|
+
readonly canvastarget_size: (a: number) => number;
|
|
665
|
+
readonly instance_new: () => number;
|
|
666
|
+
readonly instance_set: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
648
667
|
readonly material_alphaCutoff: (a: number, b: number) => number;
|
|
649
668
|
readonly material_alphaMode: (a: number, b: number) => number;
|
|
650
669
|
readonly material_baseColor: (a: number, b: number, c: number) => [number, number, number];
|
|
@@ -663,39 +682,6 @@ export interface InitOutput {
|
|
|
663
682
|
readonly material_roughness: (a: number, b: number) => number;
|
|
664
683
|
readonly material_shader: (a: number) => number;
|
|
665
684
|
readonly material_uvTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
666
|
-
readonly pass___fc_kind: (a: number) => [number, number];
|
|
667
|
-
readonly scene___fc_kind: (a: number) => [number, number];
|
|
668
|
-
readonly texturetarget___fc_kind: (a: number) => [number, number];
|
|
669
|
-
readonly __wbg_renderer_free: (a: number, b: number) => void;
|
|
670
|
-
readonly renderer___fc_kind: (a: number) => [number, number];
|
|
671
|
-
readonly __wbg_get_size_depth: (a: number) => number;
|
|
672
|
-
readonly __wbg_get_size_height: (a: number) => number;
|
|
673
|
-
readonly __wbg_get_size_width: (a: number) => number;
|
|
674
|
-
readonly __wbg_set_size_depth: (a: number, b: number) => void;
|
|
675
|
-
readonly __wbg_set_size_height: (a: number, b: number) => void;
|
|
676
|
-
readonly __wbg_set_size_width: (a: number, b: number) => void;
|
|
677
|
-
readonly __wbg_size_free: (a: number, b: number) => void;
|
|
678
|
-
readonly renderer_createDepthTexture: (a: number, b: any) => any;
|
|
679
|
-
readonly renderer_createExternalTexture: (a: number, b: any) => [number, number, number];
|
|
680
|
-
readonly renderer_createStorageTexture: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
681
|
-
readonly renderer_createTarget: (a: number, b: any) => any;
|
|
682
|
-
readonly renderer_createTexture: (a: number, b: any, c: number) => any;
|
|
683
|
-
readonly renderer_createTextureTarget: (a: number, b: any) => any;
|
|
684
|
-
readonly renderer_load: (a: number, b: any) => any;
|
|
685
|
-
readonly renderer_new_js: () => number;
|
|
686
|
-
readonly renderer_readStorage: (a: number, b: number, c: number, d: number) => any;
|
|
687
|
-
readonly renderer_readTexture: (a: number, b: any) => any;
|
|
688
|
-
readonly renderer_render: (a: number, b: any, c: any) => [number, number];
|
|
689
|
-
readonly renderer_unregisterTexture: (a: number, b: any) => [number, number];
|
|
690
|
-
readonly __wbg_canvastarget_free: (a: number, b: number) => void;
|
|
691
|
-
readonly __wbg_instance_free: (a: number, b: number) => void;
|
|
692
|
-
readonly __wbg_vertex_free: (a: number, b: number) => void;
|
|
693
|
-
readonly canvastarget___fc_kind: (a: number) => [number, number];
|
|
694
|
-
readonly canvastarget_getImage: (a: number) => [number, number, number];
|
|
695
|
-
readonly canvastarget_resize: (a: number, b: any) => [number, number];
|
|
696
|
-
readonly canvastarget_size: (a: number) => number;
|
|
697
|
-
readonly instance_new: () => number;
|
|
698
|
-
readonly instance_set: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
699
685
|
readonly mesh_addInstance: (a: number, b: any) => [number, number];
|
|
700
686
|
readonly mesh_addInstances: (a: number, b: any) => [number, number];
|
|
701
687
|
readonly mesh_addVertex: (a: number, b: any) => [number, number];
|
|
@@ -706,13 +692,20 @@ export interface InitOutput {
|
|
|
706
692
|
readonly mesh_new_js: () => number;
|
|
707
693
|
readonly mesh_setIndices: (a: number, b: any) => [number, number];
|
|
708
694
|
readonly mesh_setInstanceCount: (a: number, b: number) => void;
|
|
709
|
-
readonly mipmap_build: (a: any, b: number, c: any) => [number, number, number];
|
|
710
|
-
readonly mipmap_count: (a: number) => number;
|
|
711
|
-
readonly mipmap_format: (a: number) => number;
|
|
712
|
-
readonly mipmap_level: (a: number, b: number) => [number, number, number];
|
|
713
|
-
readonly mipmap_size: (a: number) => number;
|
|
714
695
|
readonly quad_getMesh: (a: number) => number;
|
|
715
696
|
readonly quad_new_js: (a: any, b: any) => [number, number, number];
|
|
697
|
+
readonly renderer_createDepthTexture: (a: number, b: any) => any;
|
|
698
|
+
readonly renderer_createExternalTexture: (a: number, b: any) => [number, number, number];
|
|
699
|
+
readonly renderer_createStorageTexture: (a: number, b: any, c: number, d: number, e: number) => any;
|
|
700
|
+
readonly renderer_createTarget: (a: number, b: any) => any;
|
|
701
|
+
readonly renderer_createTexture: (a: number, b: any, c: number) => any;
|
|
702
|
+
readonly renderer_createTextureTarget: (a: number, b: any) => any;
|
|
703
|
+
readonly renderer_load: (a: number, b: any) => any;
|
|
704
|
+
readonly renderer_new_js: () => number;
|
|
705
|
+
readonly renderer_readStorage: (a: number, b: number, c: number, d: number) => any;
|
|
706
|
+
readonly renderer_readTexture: (a: number, b: any) => any;
|
|
707
|
+
readonly renderer_render: (a: number, b: any, c: any) => [number, number];
|
|
708
|
+
readonly renderer_unregisterTexture: (a: number, b: any) => [number, number];
|
|
716
709
|
readonly shader_addMesh: (a: number, b: number) => [number, number];
|
|
717
710
|
readonly shader_clearMeshes: (a: number) => void;
|
|
718
711
|
readonly shader_default: () => number;
|
|
@@ -730,13 +723,6 @@ export interface InitOutput {
|
|
|
730
723
|
readonly shader_setRegistry: (a: number, b: number) => void;
|
|
731
724
|
readonly shader_unwrap: (a: number) => number;
|
|
732
725
|
readonly shader_validateMesh: (a: number, b: number) => [number, number];
|
|
733
|
-
readonly texture_aspect: (a: number) => number;
|
|
734
|
-
readonly texture_getImage: (a: number) => any;
|
|
735
|
-
readonly texture_id: (a: number) => number;
|
|
736
|
-
readonly texture_setSamplerOptions: (a: number, b: any) => [number, number];
|
|
737
|
-
readonly texture_size: (a: number) => number;
|
|
738
|
-
readonly texture_write: (a: number, b: any) => [number, number];
|
|
739
|
-
readonly texture_writeRegion: (a: number, b: any, c: any) => [number, number];
|
|
740
726
|
readonly texturetarget_getImage: (a: number) => any;
|
|
741
727
|
readonly texturetarget_resize: (a: number, b: any) => [number, number];
|
|
742
728
|
readonly texturetarget_size: (a: number) => number;
|
|
@@ -747,29 +733,87 @@ export interface InitOutput {
|
|
|
747
733
|
readonly vertex_set: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
748
734
|
readonly instance_new_js: () => number;
|
|
749
735
|
readonly vertex_new_js: (a: any) => [number, number, number];
|
|
736
|
+
readonly mipmap_build: (a: any, b: number, c: any) => [number, number, number];
|
|
737
|
+
readonly mipmap_count: (a: number) => number;
|
|
738
|
+
readonly mipmap_format: (a: number) => number;
|
|
739
|
+
readonly mipmap_level: (a: number, b: number) => [number, number, number];
|
|
740
|
+
readonly mipmap_size: (a: number) => number;
|
|
741
|
+
readonly texture_aspect: (a: number) => number;
|
|
742
|
+
readonly texture_getImage: (a: number) => any;
|
|
743
|
+
readonly texture_id: (a: number) => number;
|
|
744
|
+
readonly texture_setSamplerOptions: (a: number, b: any) => [number, number];
|
|
745
|
+
readonly texture_size: (a: number) => number;
|
|
746
|
+
readonly texture_write: (a: number, b: any) => [number, number];
|
|
747
|
+
readonly texture_writeRegion: (a: number, b: any, c: any) => [number, number];
|
|
748
|
+
readonly __wbg_renderer_free: (a: number, b: number) => void;
|
|
749
|
+
readonly renderer___fc_kind: (a: number) => [number, number];
|
|
750
|
+
readonly __wbg_light_free: (a: number, b: number) => void;
|
|
751
|
+
readonly __wbg_mesh_free: (a: number, b: number) => void;
|
|
752
|
+
readonly light___fc_kind: (a: number) => [number, number];
|
|
753
|
+
readonly mesh___fc_kind: (a: number) => [number, number];
|
|
754
|
+
readonly pass_add: (a: number, b: any) => [number, number];
|
|
755
|
+
readonly pass_addMesh: (a: number, b: number) => [number, number];
|
|
756
|
+
readonly pass_addShader: (a: number, b: number) => void;
|
|
757
|
+
readonly pass_compute: (a: number, b: number) => number;
|
|
758
|
+
readonly pass_fromShader: (a: number, b: number, c: number) => number;
|
|
759
|
+
readonly pass_getInput: (a: number) => number;
|
|
760
|
+
readonly pass_isCompute: (a: number) => number;
|
|
761
|
+
readonly pass_loadPrevious: (a: number) => void;
|
|
762
|
+
readonly pass_name: (a: number) => [number, number];
|
|
763
|
+
readonly pass_new_js: (a: number, b: number) => number;
|
|
764
|
+
readonly pass_require: (a: number, b: any) => [number, number];
|
|
765
|
+
readonly pass_setClearColor: (a: number, b: any) => [number, number];
|
|
766
|
+
readonly pass_setComputeDispatch: (a: number, b: number, c: number, d: number) => void;
|
|
767
|
+
readonly pass_setDepthTarget: (a: number, b: any) => [number, number];
|
|
768
|
+
readonly pass_setTarget: (a: number, b: any) => [number, number];
|
|
769
|
+
readonly pass_setViewport: (a: number, b: any) => [number, number];
|
|
770
|
+
readonly __wbg_get_textureoptions_format: (a: number) => number;
|
|
771
|
+
readonly __wbg_get_textureoptions_mipmaps: (a: number) => number;
|
|
772
|
+
readonly __wbg_get_textureoptions_sampler: (a: number) => number;
|
|
773
|
+
readonly __wbg_get_textureoptions_size: (a: number) => number;
|
|
774
|
+
readonly __wbg_get_textureoptions_usage: (a: number) => number;
|
|
775
|
+
readonly __wbg_set_textureoptions_format: (a: number, b: number) => void;
|
|
776
|
+
readonly __wbg_set_textureoptions_mipmaps: (a: number, b: number) => void;
|
|
777
|
+
readonly __wbg_set_textureoptions_sampler: (a: number, b: number) => void;
|
|
778
|
+
readonly __wbg_set_textureoptions_size: (a: number, b: number) => void;
|
|
779
|
+
readonly __wbg_set_textureoptions_usage: (a: number, b: number) => void;
|
|
780
|
+
readonly __wbg_shader_free: (a: number, b: number) => void;
|
|
781
|
+
readonly __wbg_textureoptions_free: (a: number, b: number) => void;
|
|
782
|
+
readonly shader___fc_kind: (a: number) => [number, number];
|
|
783
|
+
readonly __wbg_camera_free: (a: number, b: number) => void;
|
|
750
784
|
readonly __wbg_color_free: (a: number, b: number) => void;
|
|
751
785
|
readonly __wbg_get_color_0: (a: number) => number;
|
|
786
|
+
readonly __wbg_get_textureid_id: (a: number) => bigint;
|
|
787
|
+
readonly __wbg_mipmap_free: (a: number, b: number) => void;
|
|
788
|
+
readonly __wbg_set_color_0: (a: number, b: number) => void;
|
|
789
|
+
readonly __wbg_set_textureid_id: (a: number, b: bigint) => void;
|
|
790
|
+
readonly __wbg_texture_free: (a: number, b: number) => void;
|
|
791
|
+
readonly __wbg_textureid_free: (a: number, b: number) => void;
|
|
792
|
+
readonly __wbg_textureusage_free: (a: number, b: number) => void;
|
|
793
|
+
readonly camera___fc_kind: (a: number) => [number, number];
|
|
794
|
+
readonly mipmap___fc_kind: (a: number) => [number, number];
|
|
795
|
+
readonly set_log_level: (a: number, b: number) => void;
|
|
796
|
+
readonly texture___fc_kind: (a: number) => [number, number];
|
|
797
|
+
readonly wasm_start: () => void;
|
|
798
|
+
readonly __wbg_get_textureusage_bits: (a: number) => number;
|
|
799
|
+
readonly __wbg_set_textureusage_bits: (a: number, b: number) => void;
|
|
800
|
+
readonly __wbg_model_free: (a: number, b: number) => void;
|
|
801
|
+
readonly __wbg_pass_free: (a: number, b: number) => void;
|
|
802
|
+
readonly __wbg_passinput_free: (a: number, b: number) => void;
|
|
803
|
+
readonly __wbg_scene_free: (a: number, b: number) => void;
|
|
804
|
+
readonly model___fc_kind: (a: number) => [number, number];
|
|
805
|
+
readonly pass___fc_kind: (a: number) => [number, number];
|
|
806
|
+
readonly scene___fc_kind: (a: number) => [number, number];
|
|
752
807
|
readonly __wbg_get_sampleroptions_compare: (a: number) => number;
|
|
753
808
|
readonly __wbg_get_sampleroptions_repeat_x: (a: number) => number;
|
|
754
809
|
readonly __wbg_get_sampleroptions_repeat_y: (a: number) => number;
|
|
755
810
|
readonly __wbg_get_sampleroptions_smooth: (a: number) => number;
|
|
756
|
-
readonly
|
|
757
|
-
readonly __wbg_get_screenregion_max_y: (a: number) => number;
|
|
758
|
-
readonly __wbg_get_screenregion_min_y: (a: number) => number;
|
|
811
|
+
readonly __wbg_material_free: (a: number, b: number) => void;
|
|
759
812
|
readonly __wbg_sampleroptions_free: (a: number, b: number) => void;
|
|
760
|
-
readonly __wbg_screenregion_free: (a: number, b: number) => void;
|
|
761
|
-
readonly __wbg_set_color_0: (a: number, b: number) => void;
|
|
762
813
|
readonly __wbg_set_sampleroptions_compare: (a: number, b: number) => void;
|
|
763
814
|
readonly __wbg_set_sampleroptions_repeat_x: (a: number, b: number) => void;
|
|
764
815
|
readonly __wbg_set_sampleroptions_repeat_y: (a: number, b: number) => void;
|
|
765
816
|
readonly __wbg_set_sampleroptions_smooth: (a: number, b: number) => void;
|
|
766
|
-
readonly __wbg_set_screenregion_max_x: (a: number, b: number) => void;
|
|
767
|
-
readonly __wbg_set_screenregion_max_y: (a: number, b: number) => void;
|
|
768
|
-
readonly __wbg_set_screenregion_min_y: (a: number, b: number) => void;
|
|
769
|
-
readonly __wbg_get_screenregion_min_x: (a: number) => number;
|
|
770
|
-
readonly __wbg_set_screenregion_min_x: (a: number, b: number) => void;
|
|
771
|
-
readonly __wbg_material_free: (a: number, b: number) => void;
|
|
772
|
-
readonly __wbg_model_free: (a: number, b: number) => void;
|
|
773
817
|
readonly camera_lookAt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
774
818
|
readonly camera_orthographic: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
775
819
|
readonly camera_perspective: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -794,7 +838,6 @@ export interface InitOutput {
|
|
|
794
838
|
readonly light_setRange: (a: number, b: number) => [number, number, number];
|
|
795
839
|
readonly light_spot: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
796
840
|
readonly material___fc_kind: (a: number) => [number, number];
|
|
797
|
-
readonly model___fc_kind: (a: number) => [number, number];
|
|
798
841
|
readonly model_material: (a: number) => number;
|
|
799
842
|
readonly model_mesh: (a: number) => number;
|
|
800
843
|
readonly model_new_js: (a: number, b: number) => number;
|
|
@@ -824,49 +867,6 @@ export interface InitOutput {
|
|
|
824
867
|
readonly scene_setDefaultCamera: (a: number, b: number) => void;
|
|
825
868
|
readonly scene_setDefaultLight: (a: number, b: number) => void;
|
|
826
869
|
readonly scene_setPasses: (a: number, b: number, c: number) => void;
|
|
827
|
-
readonly __wbg_camera_free: (a: number, b: number) => void;
|
|
828
|
-
readonly __wbg_get_textureid_id: (a: number) => bigint;
|
|
829
|
-
readonly __wbg_mipmap_free: (a: number, b: number) => void;
|
|
830
|
-
readonly __wbg_set_textureid_id: (a: number, b: bigint) => void;
|
|
831
|
-
readonly __wbg_texture_free: (a: number, b: number) => void;
|
|
832
|
-
readonly __wbg_textureid_free: (a: number, b: number) => void;
|
|
833
|
-
readonly camera___fc_kind: (a: number) => [number, number];
|
|
834
|
-
readonly mipmap___fc_kind: (a: number) => [number, number];
|
|
835
|
-
readonly set_log_level: (a: number, b: number) => void;
|
|
836
|
-
readonly texture___fc_kind: (a: number) => [number, number];
|
|
837
|
-
readonly wasm_start: () => void;
|
|
838
|
-
readonly __wbg_get_textureoptions_format: (a: number) => number;
|
|
839
|
-
readonly __wbg_get_textureoptions_mipmaps: (a: number) => number;
|
|
840
|
-
readonly __wbg_get_textureoptions_sampler: (a: number) => number;
|
|
841
|
-
readonly __wbg_get_textureoptions_size: (a: number) => number;
|
|
842
|
-
readonly __wbg_get_textureoptions_usage: (a: number) => number;
|
|
843
|
-
readonly __wbg_light_free: (a: number, b: number) => void;
|
|
844
|
-
readonly __wbg_mesh_free: (a: number, b: number) => void;
|
|
845
|
-
readonly __wbg_quad_free: (a: number, b: number) => void;
|
|
846
|
-
readonly __wbg_set_textureoptions_format: (a: number, b: number) => void;
|
|
847
|
-
readonly __wbg_set_textureoptions_mipmaps: (a: number, b: number) => void;
|
|
848
|
-
readonly __wbg_set_textureoptions_sampler: (a: number, b: number) => void;
|
|
849
|
-
readonly __wbg_set_textureoptions_size: (a: number, b: number) => void;
|
|
850
|
-
readonly __wbg_set_textureoptions_usage: (a: number, b: number) => void;
|
|
851
|
-
readonly __wbg_textureoptions_free: (a: number, b: number) => void;
|
|
852
|
-
readonly light___fc_kind: (a: number) => [number, number];
|
|
853
|
-
readonly mesh___fc_kind: (a: number) => [number, number];
|
|
854
|
-
readonly pass_add: (a: number, b: any) => [number, number];
|
|
855
|
-
readonly pass_addMesh: (a: number, b: number) => [number, number];
|
|
856
|
-
readonly pass_addShader: (a: number, b: number) => void;
|
|
857
|
-
readonly pass_compute: (a: number, b: number) => number;
|
|
858
|
-
readonly pass_fromShader: (a: number, b: number, c: number) => number;
|
|
859
|
-
readonly pass_getInput: (a: number) => number;
|
|
860
|
-
readonly pass_isCompute: (a: number) => number;
|
|
861
|
-
readonly pass_loadPrevious: (a: number) => void;
|
|
862
|
-
readonly pass_name: (a: number) => [number, number];
|
|
863
|
-
readonly pass_new_js: (a: number, b: number) => number;
|
|
864
|
-
readonly pass_require: (a: number, b: any) => [number, number];
|
|
865
|
-
readonly pass_setClearColor: (a: number, b: any) => [number, number];
|
|
866
|
-
readonly pass_setComputeDispatch: (a: number, b: number, c: number, d: number) => void;
|
|
867
|
-
readonly pass_setDepthTarget: (a: number, b: any) => [number, number];
|
|
868
|
-
readonly pass_setTarget: (a: number, b: any) => [number, number];
|
|
869
|
-
readonly pass_setViewport: (a: number, b: any) => [number, number];
|
|
870
870
|
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
871
871
|
readonly __wbgtest_console_debug: (a: any) => void;
|
|
872
872
|
readonly __wbgtest_console_error: (a: any) => void;
|
package/fragmentcolor.js
CHANGED
|
@@ -2945,6 +2945,10 @@ function __wbg_get_imports() {
|
|
|
2945
2945
|
const ret = arg0.byteLength;
|
|
2946
2946
|
return ret;
|
|
2947
2947
|
},
|
|
2948
|
+
__wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
|
|
2949
|
+
const ret = arg0.call(arg1);
|
|
2950
|
+
return ret;
|
|
2951
|
+
}, arguments); },
|
|
2948
2952
|
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2949
2953
|
const ret = arg0.call(arg1, arg2);
|
|
2950
2954
|
return ret;
|
|
@@ -3991,6 +3995,24 @@ function __wbg_get_imports() {
|
|
|
3991
3995
|
const ret = arg0.navigator;
|
|
3992
3996
|
return ret;
|
|
3993
3997
|
},
|
|
3998
|
+
__wbg_new_036bd6cd9cea9e73: function(arg0, arg1) {
|
|
3999
|
+
try {
|
|
4000
|
+
var state0 = {a: arg0, b: arg1};
|
|
4001
|
+
var cb0 = (arg0, arg1) => {
|
|
4002
|
+
const a = state0.a;
|
|
4003
|
+
state0.a = 0;
|
|
4004
|
+
try {
|
|
4005
|
+
return wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___js_sys_8961d256bb8b8e6d___Function_fn_wasm_bindgen_f6cec86e125fc799___JsValue_____wasm_bindgen_f6cec86e125fc799___sys__Undefined___js_sys_8961d256bb8b8e6d___Function_fn_wasm_bindgen_f6cec86e125fc799___JsValue_____wasm_bindgen_f6cec86e125fc799___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
4006
|
+
} finally {
|
|
4007
|
+
state0.a = a;
|
|
4008
|
+
}
|
|
4009
|
+
};
|
|
4010
|
+
const ret = new Promise(cb0);
|
|
4011
|
+
return ret;
|
|
4012
|
+
} finally {
|
|
4013
|
+
state0.a = 0;
|
|
4014
|
+
}
|
|
4015
|
+
},
|
|
3994
4016
|
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
3995
4017
|
try {
|
|
3996
4018
|
return new Uint8Array(arg0);
|
|
@@ -4224,6 +4246,10 @@ function __wbg_get_imports() {
|
|
|
4224
4246
|
__wbg_setPipeline_d73f019e98c76d2d: function(arg0, arg1) {
|
|
4225
4247
|
arg0.setPipeline(arg1);
|
|
4226
4248
|
},
|
|
4249
|
+
__wbg_setTimeout_d8786dd31f90da0f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
4250
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
4251
|
+
return ret;
|
|
4252
|
+
}, arguments); },
|
|
4227
4253
|
__wbg_setVertexBuffer_1e448859663dd400: function(arg0, arg1, arg2, arg3) {
|
|
4228
4254
|
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
4229
4255
|
},
|
|
@@ -5179,27 +5205,27 @@ function __wbg_get_imports() {
|
|
|
5179
5205
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
5180
5206
|
}, arguments); },
|
|
5181
5207
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
5182
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
5208
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3652, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5183
5209
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true_);
|
|
5184
5210
|
return ret;
|
|
5185
5211
|
},
|
|
5186
5212
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
5187
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
5213
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1331, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5188
5214
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___sys__JsOption_wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true_);
|
|
5189
5215
|
return ret;
|
|
5190
5216
|
},
|
|
5191
5217
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
5192
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx:
|
|
5218
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1500, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5193
5219
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
|
|
5194
5220
|
return ret;
|
|
5195
5221
|
},
|
|
5196
5222
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
5197
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
5223
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1331, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5198
5224
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___sys__JsOption_wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true__3);
|
|
5199
5225
|
return ret;
|
|
5200
5226
|
},
|
|
5201
5227
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
5202
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
5228
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1331, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5203
5229
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___sys__JsOption_wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true__4);
|
|
5204
5230
|
return ret;
|
|
5205
5231
|
},
|
package/fragmentcolor_bg.wasm
CHANGED
|
Binary file
|