fragmentcolor 0.12.3 → 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 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 README_PY.md.
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 README_JS.md is generated from this template (README_JS.tpl.md) and the repository README.md examples by the build script. Do not edit the generated README_JS.md directly.
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.
@@ -635,13 +635,65 @@ 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;
647
+ readonly __wbg_externaltexturehandle_free: (a: number, b: number) => void;
648
+ readonly __wbg_quad_free: (a: number, b: number) => void;
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;
638
652
  readonly __wbg_get_size_depth: (a: number) => number;
639
653
  readonly __wbg_get_size_height: (a: number) => number;
640
654
  readonly __wbg_get_size_width: (a: number) => number;
655
+ readonly __wbg_instance_free: (a: number, b: number) => void;
641
656
  readonly __wbg_set_size_depth: (a: number, b: number) => void;
642
657
  readonly __wbg_set_size_height: (a: number, b: number) => void;
643
658
  readonly __wbg_set_size_width: (a: number, b: number) => void;
644
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];
667
+ readonly material_alphaCutoff: (a: number, b: number) => number;
668
+ readonly material_alphaMode: (a: number, b: number) => number;
669
+ readonly material_baseColor: (a: number, b: number, c: number) => [number, number, number];
670
+ readonly material_baseColorTexture: (a: number, b: number) => number;
671
+ readonly material_custom: (a: number) => number;
672
+ readonly material_doubleSided: (a: number, b: number) => number;
673
+ readonly material_emissive: (a: number, b: number, c: number) => [number, number, number];
674
+ readonly material_emissiveTexture: (a: number, b: number) => number;
675
+ readonly material_metallic: (a: number, b: number) => number;
676
+ readonly material_metallicRoughnessTexture: (a: number, b: number) => number;
677
+ readonly material_normalScale: (a: number, b: number) => number;
678
+ readonly material_normalTexture: (a: number, b: number) => number;
679
+ readonly material_occlusionStrength: (a: number, b: number) => number;
680
+ readonly material_occlusionTexture: (a: number, b: number) => number;
681
+ readonly material_pbr: () => number;
682
+ readonly material_roughness: (a: number, b: number) => number;
683
+ readonly material_shader: (a: number) => number;
684
+ readonly material_uvTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
685
+ readonly mesh_addInstance: (a: number, b: any) => [number, number];
686
+ readonly mesh_addInstances: (a: number, b: any) => [number, number];
687
+ readonly mesh_addVertex: (a: number, b: any) => [number, number];
688
+ readonly mesh_addVertices: (a: number, b: any) => [number, number];
689
+ readonly mesh_clearIndices: (a: number) => void;
690
+ readonly mesh_clearInstances: (a: number) => void;
691
+ readonly mesh_fromVertices: (a: any) => [number, number, number];
692
+ readonly mesh_new_js: () => number;
693
+ readonly mesh_setIndices: (a: number, b: any) => [number, number];
694
+ readonly mesh_setInstanceCount: (a: number, b: number) => void;
695
+ readonly quad_getMesh: (a: number) => number;
696
+ readonly quad_new_js: (a: any, b: any) => [number, number, number];
645
697
  readonly renderer_createDepthTexture: (a: number, b: any) => any;
646
698
  readonly renderer_createExternalTexture: (a: number, b: any) => [number, number, number];
647
699
  readonly renderer_createStorageTexture: (a: number, b: any, c: number, d: number, e: number) => any;
@@ -671,129 +723,103 @@ export interface InitOutput {
671
723
  readonly shader_setRegistry: (a: number, b: number) => void;
672
724
  readonly shader_unwrap: (a: number) => number;
673
725
  readonly shader_validateMesh: (a: number, b: number) => [number, number];
674
- readonly __wbg_shader_free: (a: number, b: number) => void;
675
- readonly shader___fc_kind: (a: number) => [number, number];
726
+ readonly texturetarget_getImage: (a: number) => any;
727
+ readonly texturetarget_resize: (a: number, b: any) => [number, number];
728
+ readonly texturetarget_size: (a: number) => number;
729
+ readonly texturetarget_texture: (a: number) => number;
730
+ readonly vertex_createInstance: (a: number) => number;
731
+ readonly vertex_new: (a: any) => [number, number, number];
732
+ readonly vertex_pbr: (a: any) => [number, number, number];
733
+ readonly vertex_set: (a: number, b: number, c: number, d: any) => [number, number, number];
734
+ readonly instance_new_js: () => number;
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];
676
748
  readonly __wbg_renderer_free: (a: number, b: number) => void;
677
749
  readonly renderer___fc_kind: (a: number) => [number, number];
678
- readonly __wbg_pass_free: (a: number, b: number) => void;
679
- readonly __wbg_passinput_free: (a: number, b: number) => void;
680
- readonly __wbg_scene_free: (a: number, b: number) => void;
681
- readonly pass___fc_kind: (a: number) => [number, number];
682
- readonly scene___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];
683
770
  readonly __wbg_get_textureoptions_format: (a: number) => number;
684
771
  readonly __wbg_get_textureoptions_mipmaps: (a: number) => number;
685
772
  readonly __wbg_get_textureoptions_sampler: (a: number) => number;
686
773
  readonly __wbg_get_textureoptions_size: (a: number) => number;
687
774
  readonly __wbg_get_textureoptions_usage: (a: number) => number;
688
- readonly __wbg_get_textureusage_bits: (a: number) => number;
689
- readonly __wbg_quad_free: (a: number, b: number) => void;
690
775
  readonly __wbg_set_textureoptions_format: (a: number, b: number) => void;
691
776
  readonly __wbg_set_textureoptions_mipmaps: (a: number, b: number) => void;
692
777
  readonly __wbg_set_textureoptions_sampler: (a: number, b: number) => void;
693
778
  readonly __wbg_set_textureoptions_size: (a: number, b: number) => void;
694
779
  readonly __wbg_set_textureoptions_usage: (a: number, b: number) => void;
695
- readonly __wbg_set_textureusage_bits: (a: number, b: number) => void;
780
+ readonly __wbg_shader_free: (a: number, b: number) => void;
696
781
  readonly __wbg_textureoptions_free: (a: number, b: number) => void;
697
- readonly __wbg_textureusage_free: (a: number, b: number) => void;
698
- readonly mipmap_build: (a: any, b: number, c: any) => [number, number, number];
699
- readonly mipmap_count: (a: number) => number;
700
- readonly mipmap_format: (a: number) => number;
701
- readonly mipmap_level: (a: number, b: number) => [number, number, number];
702
- readonly mipmap_size: (a: number) => number;
703
- readonly texture_aspect: (a: number) => number;
704
- readonly texture_getImage: (a: number) => any;
705
- readonly texture_id: (a: number) => number;
706
- readonly texture_setSamplerOptions: (a: number, b: any) => [number, number];
707
- readonly texture_size: (a: number) => number;
708
- readonly texture_write: (a: number, b: any) => [number, number];
709
- readonly texture_writeRegion: (a: number, b: any, c: any) => [number, number];
782
+ readonly shader___fc_kind: (a: number) => [number, number];
783
+ readonly __wbg_camera_free: (a: number, b: number) => void;
710
784
  readonly __wbg_color_free: (a: number, b: number) => void;
711
785
  readonly __wbg_get_color_0: (a: number) => number;
712
- readonly __wbg_get_screenregion_max_x: (a: number) => number;
713
- readonly __wbg_get_screenregion_max_y: (a: number) => number;
714
- readonly __wbg_get_screenregion_min_y: (a: number) => number;
715
- readonly __wbg_screenregion_free: (a: number, b: number) => void;
786
+ readonly __wbg_get_textureid_id: (a: number) => bigint;
787
+ readonly __wbg_mipmap_free: (a: number, b: number) => void;
716
788
  readonly __wbg_set_color_0: (a: number, b: number) => void;
717
- readonly __wbg_set_screenregion_max_x: (a: number, b: number) => void;
718
- readonly __wbg_set_screenregion_max_y: (a: number, b: number) => void;
719
- readonly __wbg_set_screenregion_min_y: (a: number, b: number) => void;
720
- readonly __wbg_get_screenregion_min_x: (a: number) => number;
721
- readonly __wbg_set_screenregion_min_x: (a: number, b: number) => void;
722
- readonly __wbg_externaltexturehandle_free: (a: number, b: number) => void;
723
- readonly __wbg_camera_free: (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];
724
807
  readonly __wbg_get_sampleroptions_compare: (a: number) => number;
725
808
  readonly __wbg_get_sampleroptions_repeat_x: (a: number) => number;
726
809
  readonly __wbg_get_sampleroptions_repeat_y: (a: number) => number;
727
810
  readonly __wbg_get_sampleroptions_smooth: (a: number) => number;
728
811
  readonly __wbg_material_free: (a: number, b: number) => void;
729
- readonly __wbg_mesh_free: (a: number, b: number) => void;
730
812
  readonly __wbg_sampleroptions_free: (a: number, b: number) => void;
731
813
  readonly __wbg_set_sampleroptions_compare: (a: number, b: number) => void;
732
814
  readonly __wbg_set_sampleroptions_repeat_x: (a: number, b: number) => void;
733
815
  readonly __wbg_set_sampleroptions_repeat_y: (a: number, b: number) => void;
734
816
  readonly __wbg_set_sampleroptions_smooth: (a: number, b: number) => void;
735
- readonly camera___fc_kind: (a: number) => [number, number];
736
- readonly material___fc_kind: (a: number) => [number, number];
737
- readonly mesh___fc_kind: (a: number) => [number, number];
738
- readonly __wbg_canvastarget_free: (a: number, b: number) => void;
739
- readonly __wbg_instance_free: (a: number, b: number) => void;
740
- readonly __wbg_vertex_free: (a: number, b: number) => void;
741
- readonly canvastarget___fc_kind: (a: number) => [number, number];
742
- readonly canvastarget_getImage: (a: number) => [number, number, number];
743
- readonly canvastarget_resize: (a: number, b: any) => [number, number];
744
- readonly canvastarget_size: (a: number) => number;
745
- readonly instance_new: () => number;
746
- readonly instance_set: (a: number, b: number, c: number, d: any) => [number, number, number];
747
- readonly material_alphaCutoff: (a: number, b: number) => number;
748
- readonly material_alphaMode: (a: number, b: number) => number;
749
- readonly material_baseColor: (a: number, b: number, c: number) => [number, number, number];
750
- readonly material_baseColorTexture: (a: number, b: number) => number;
751
- readonly material_custom: (a: number) => number;
752
- readonly material_doubleSided: (a: number, b: number) => number;
753
- readonly material_emissive: (a: number, b: number, c: number) => [number, number, number];
754
- readonly material_emissiveTexture: (a: number, b: number) => number;
755
- readonly material_metallic: (a: number, b: number) => number;
756
- readonly material_metallicRoughnessTexture: (a: number, b: number) => number;
757
- readonly material_normalScale: (a: number, b: number) => number;
758
- readonly material_normalTexture: (a: number, b: number) => number;
759
- readonly material_occlusionStrength: (a: number, b: number) => number;
760
- readonly material_occlusionTexture: (a: number, b: number) => number;
761
- readonly material_pbr: () => number;
762
- readonly material_roughness: (a: number, b: number) => number;
763
- readonly material_shader: (a: number) => number;
764
- readonly material_uvTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
765
- readonly mesh_addInstance: (a: number, b: any) => [number, number];
766
- readonly mesh_addInstances: (a: number, b: any) => [number, number];
767
- readonly mesh_addVertex: (a: number, b: any) => [number, number];
768
- readonly mesh_addVertices: (a: number, b: any) => [number, number];
769
- readonly mesh_clearIndices: (a: number) => void;
770
- readonly mesh_clearInstances: (a: number) => void;
771
- readonly mesh_fromVertices: (a: any) => [number, number, number];
772
- readonly mesh_new_js: () => number;
773
- readonly mesh_setIndices: (a: number, b: any) => [number, number];
774
- readonly mesh_setInstanceCount: (a: number, b: number) => void;
775
- readonly quad_getMesh: (a: number) => number;
776
- readonly quad_new_js: (a: any, b: any) => [number, number, number];
777
- readonly set_log_level: (a: number, b: number) => void;
778
- readonly texturetarget_getImage: (a: number) => any;
779
- readonly texturetarget_resize: (a: number, b: any) => [number, number];
780
- readonly texturetarget_size: (a: number) => number;
781
- readonly texturetarget_texture: (a: number) => number;
782
- readonly vertex_createInstance: (a: number) => number;
783
- readonly vertex_new: (a: any) => [number, number, number];
784
- readonly vertex_pbr: (a: any) => [number, number, number];
785
- readonly vertex_set: (a: number, b: number, c: number, d: any) => [number, number, number];
786
- readonly wasm_start: () => void;
787
- readonly instance_new_js: () => number;
788
- readonly vertex_new_js: (a: any) => [number, number, number];
789
- readonly __wbg_light_free: (a: number, b: number) => void;
790
817
  readonly camera_lookAt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
791
818
  readonly camera_orthographic: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
792
819
  readonly camera_perspective: (a: number, b: number, c: number, d: number) => number;
793
820
  readonly camera_position: (a: number) => [number, number];
794
821
  readonly camera_setAspect: (a: number, b: number) => number;
795
822
  readonly camera_viewProj: (a: number) => [number, number];
796
- readonly light___fc_kind: (a: number) => [number, number];
797
823
  readonly light_color: (a: number) => [number, number];
798
824
  readonly light_direction: (a: number) => [number, number];
799
825
  readonly light_directional: (a: number, b: number, c: number, d: number) => [number, number, number];
@@ -811,6 +837,7 @@ export interface InitOutput {
811
837
  readonly light_setPosition: (a: number, b: number, c: number) => [number, number, number];
812
838
  readonly light_setRange: (a: number, b: number) => [number, number, number];
813
839
  readonly light_spot: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
840
+ readonly material___fc_kind: (a: number) => [number, number];
814
841
  readonly model_material: (a: number) => number;
815
842
  readonly model_mesh: (a: number) => number;
816
843
  readonly model_new_js: (a: number, b: number) => number;
@@ -821,22 +848,6 @@ export interface InitOutput {
821
848
  readonly model_transform: (a: number) => [number, number];
822
849
  readonly model_translate: (a: number, b: number, c: number) => [number, number];
823
850
  readonly model_visible: (a: number) => number;
824
- readonly pass_add: (a: number, b: any) => [number, number];
825
- readonly pass_addMesh: (a: number, b: number) => [number, number];
826
- readonly pass_addShader: (a: number, b: number) => void;
827
- readonly pass_compute: (a: number, b: number) => number;
828
- readonly pass_fromShader: (a: number, b: number, c: number) => number;
829
- readonly pass_getInput: (a: number) => number;
830
- readonly pass_isCompute: (a: number) => number;
831
- readonly pass_loadPrevious: (a: number) => void;
832
- readonly pass_name: (a: number) => [number, number];
833
- readonly pass_new_js: (a: number, b: number) => number;
834
- readonly pass_require: (a: number, b: any) => [number, number];
835
- readonly pass_setClearColor: (a: number, b: any) => [number, number];
836
- readonly pass_setComputeDispatch: (a: number, b: number, c: number, d: number) => void;
837
- readonly pass_setDepthTarget: (a: number, b: any) => [number, number];
838
- readonly pass_setTarget: (a: number, b: any) => [number, number];
839
- readonly pass_setViewport: (a: number, b: any) => [number, number];
840
851
  readonly scene_add: (a: number, b: any) => [number, number];
841
852
  readonly scene_addPass: (a: number, b: number) => void;
842
853
  readonly scene_addTo: (a: number, b: any, c: any) => [number, number];
@@ -856,17 +867,6 @@ export interface InitOutput {
856
867
  readonly scene_setDefaultCamera: (a: number, b: number) => void;
857
868
  readonly scene_setDefaultLight: (a: number, b: number) => void;
858
869
  readonly scene_setPasses: (a: number, b: number, c: number) => void;
859
- readonly __wbg_get_textureid_id: (a: number) => bigint;
860
- readonly __wbg_mipmap_free: (a: number, b: number) => void;
861
- readonly __wbg_model_free: (a: number, b: number) => void;
862
- readonly __wbg_set_textureid_id: (a: number, b: bigint) => void;
863
- readonly __wbg_texture_free: (a: number, b: number) => void;
864
- readonly __wbg_textureid_free: (a: number, b: number) => void;
865
- readonly __wbg_texturetarget_free: (a: number, b: number) => void;
866
- readonly mipmap___fc_kind: (a: number) => [number, number];
867
- readonly model___fc_kind: (a: number) => [number, number];
868
- readonly texture___fc_kind: (a: number) => [number, number];
869
- readonly texturetarget___fc_kind: (a: number) => [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;
@@ -877,18 +877,18 @@ export interface InitOutput {
877
877
  readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
878
878
  readonly wasmbindgentestcontext_new: (a: number) => number;
879
879
  readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
880
- readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
881
880
  readonly __wbgbench_dump: () => [number, number];
882
881
  readonly __wbgbench_import: (a: number, b: number) => void;
883
882
  readonly __wbgtest_cov_dump: () => [number, number];
884
883
  readonly __wbgtest_module_signature: () => [number, bigint];
885
- readonly wasm_bindgen__convert__closures_____invoke__h30a0dff095ad3b69: (a: number, b: number, c: any, d: number, e: any) => void;
886
- readonly wasm_bindgen__convert__closures_____invoke__h09aa6ff558462b4b: (a: number, b: number, c: any) => [number, number];
887
- readonly wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873: (a: number, b: number, c: any) => [number, number];
888
- readonly wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_3: (a: number, b: number, c: any) => [number, number];
889
- readonly wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_4: (a: number, b: number, c: any) => [number, number];
890
- readonly wasm_bindgen__convert__closures_____invoke__h1cc2796b936cc349: (a: number, b: number, c: any, d: any) => void;
891
- readonly wasm_bindgen__convert__closures_____invoke__h19ede38fff9c6d20: (a: number, b: number, c: any) => void;
884
+ readonly __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
885
+ readonly wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__wasm_bindgen_f6cec86e125fc799___JsValue__js_sys_8961d256bb8b8e6d___Set______true_: (a: number, b: number, c: any, d: number, e: any) => void;
886
+ readonly wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true_: (a: number, b: number, c: any) => [number, number];
887
+ readonly 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_: (a: number, b: number, c: any) => [number, number];
888
+ readonly 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: (a: number, b: number, c: any) => [number, number];
889
+ readonly 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: (a: number, b: number, c: any) => [number, number];
890
+ readonly 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: number, b: number, c: any, d: any) => void;
891
+ readonly wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
892
892
  readonly __externref_table_alloc: () => number;
893
893
  readonly __wbindgen_externrefs: WebAssembly.Table;
894
894
  readonly __wbindgen_malloc: (a: number, b: number) => number;
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;
@@ -3377,7 +3381,7 @@ function __wbg_get_imports() {
3377
3381
  const a = state0.a;
3378
3382
  state0.a = 0;
3379
3383
  try {
3380
- return wasm_bindgen__convert__closures_____invoke__h30a0dff095ad3b69(a, state0.b, arg0, arg1, arg2);
3384
+ return wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__wasm_bindgen_f6cec86e125fc799___JsValue__js_sys_8961d256bb8b8e6d___Set______true_(a, state0.b, arg0, arg1, arg2);
3381
3385
  } finally {
3382
3386
  state0.a = a;
3383
3387
  }
@@ -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);
@@ -4039,7 +4061,7 @@ function __wbg_get_imports() {
4039
4061
  const a = state0.a;
4040
4062
  state0.a = 0;
4041
4063
  try {
4042
- return wasm_bindgen__convert__closures_____invoke__h1cc2796b936cc349(a, state0.b, arg0, arg1);
4064
+ 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);
4043
4065
  } finally {
4044
4066
  state0.a = a;
4045
4067
  }
@@ -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,28 +5205,28 @@ 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: 3665, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5183
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h09aa6ff558462b4b);
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`.
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: 1321, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5188
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873);
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`.
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: 1727, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5193
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h19ede38fff9c6d20);
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`.
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: 1321, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5198
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_3);
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`.
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: 1321, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5203
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_4);
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`.
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
  },
5206
5232
  __wbindgen_cast_0000000000000006: function(arg0) {
@@ -5271,44 +5297,44 @@ function __wbg_get_imports() {
5271
5297
  };
5272
5298
  }
5273
5299
 
5274
- function wasm_bindgen__convert__closures_____invoke__h19ede38fff9c6d20(arg0, arg1, arg2) {
5275
- wasm.wasm_bindgen__convert__closures_____invoke__h19ede38fff9c6d20(arg0, arg1, arg2);
5300
+ function wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2) {
5301
+ wasm.wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wgpu_cddaf16af9388cff___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
5276
5302
  }
5277
5303
 
5278
- function wasm_bindgen__convert__closures_____invoke__h09aa6ff558462b4b(arg0, arg1, arg2) {
5279
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h09aa6ff558462b4b(arg0, arg1, arg2);
5304
+ function wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true_(arg0, arg1, arg2) {
5305
+ const ret = wasm.wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_f6cec86e125fc799___JsError___true_(arg0, arg1, arg2);
5280
5306
  if (ret[1]) {
5281
5307
  throw takeFromExternrefTable0(ret[0]);
5282
5308
  }
5283
5309
  }
5284
5310
 
5285
- function wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873(arg0, arg1, arg2) {
5286
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873(arg0, arg1, arg2);
5311
+ function 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_(arg0, arg1, arg2) {
5312
+ const ret = wasm.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_(arg0, arg1, arg2);
5287
5313
  if (ret[1]) {
5288
5314
  throw takeFromExternrefTable0(ret[0]);
5289
5315
  }
5290
5316
  }
5291
5317
 
5292
- function wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_3(arg0, arg1, arg2) {
5293
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_3(arg0, arg1, arg2);
5318
+ function 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(arg0, arg1, arg2) {
5319
+ const ret = wasm.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(arg0, arg1, arg2);
5294
5320
  if (ret[1]) {
5295
5321
  throw takeFromExternrefTable0(ret[0]);
5296
5322
  }
5297
5323
  }
5298
5324
 
5299
- function wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_4(arg0, arg1, arg2) {
5300
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h2d6fbfa7fbab7873_4(arg0, arg1, arg2);
5325
+ function 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(arg0, arg1, arg2) {
5326
+ const ret = wasm.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(arg0, arg1, arg2);
5301
5327
  if (ret[1]) {
5302
5328
  throw takeFromExternrefTable0(ret[0]);
5303
5329
  }
5304
5330
  }
5305
5331
 
5306
- function wasm_bindgen__convert__closures_____invoke__h1cc2796b936cc349(arg0, arg1, arg2, arg3) {
5307
- wasm.wasm_bindgen__convert__closures_____invoke__h1cc2796b936cc349(arg0, arg1, arg2, arg3);
5332
+ function 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_(arg0, arg1, arg2, arg3) {
5333
+ wasm.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_(arg0, arg1, arg2, arg3);
5308
5334
  }
5309
5335
 
5310
- function wasm_bindgen__convert__closures_____invoke__h30a0dff095ad3b69(arg0, arg1, arg2, arg3, arg4) {
5311
- wasm.wasm_bindgen__convert__closures_____invoke__h30a0dff095ad3b69(arg0, arg1, arg2, arg3, arg4);
5336
+ function wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__wasm_bindgen_f6cec86e125fc799___JsValue__js_sys_8961d256bb8b8e6d___Set______true_(arg0, arg1, arg2, arg3, arg4) {
5337
+ wasm.wasm_bindgen_f6cec86e125fc799___convert__closures_____invoke___wasm_bindgen_f6cec86e125fc799___JsValue__wasm_bindgen_f6cec86e125fc799___JsValue__js_sys_8961d256bb8b8e6d___Set______true_(arg0, arg1, arg2, arg3, arg4);
5312
5338
  }
5313
5339
 
5314
5340
 
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Vista Tech & Art GmbH"
6
6
  ],
7
7
  "description": "Universal GPU abstraction for Javascript, Python, Swift and Kotlin",
8
- "version": "0.12.3",
8
+ "version": "0.12.5",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",