Commit 198762e
feat: Add 32-bit floating-point atomics (
* feat: Add 32-bit floating-point atomics
* Current supported platforms: Metal
* Platforms to support in the future: Vulkan
Related issues or PRs:
* #1020
* Add changelog
* Edit changelog
* feat: Add 32-bit float atomics support for Vulkan (SPIR-V shaders)
* atomicSub for f32 in the previous commits is removed.
* Update test
* chore: doc type link
* refactor: Revise float atomics on msl and spv
* Make branches tidy
* Also revise old codes
* Ensure the implementations are supported by Metal and Vulkan backends
* refactor: Renaming flt32 atomics to float32 atomics
* chore: Add link to Vulkan feature
* fix: cargo fmt
* chore: hack comment
* Revert changelog
* Fix: Cargo advisory
* Update wgpu-hal/src/metal/adapter.rs
Co-authored-by: Teodor Tanasoaia <[email protected]>
* Update naga/src/lib.rs
Co-authored-by: Teodor Tanasoaia <[email protected]>
* Adjust feature flag position
---------
Co-authored-by: Teodor Tanasoaia <[email protected]>SHADER_FLOAT32_ATOMIC) (#6234)1 parent 6e2394b commit 198762e
File tree
20 files changed
+633
-148
lines changed- naga
- src
- back/spv
- front/spv
- valid
- tests
- in
- out
- msl
- spv
- wgsl
- tests/tests/shader
- wgpu-core/src/device
- wgpu-hal/src
- metal
- vulkan
- wgpu-types/src
20 files changed
+633
-148
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2730 | 2730 | | |
2731 | 2731 | | |
2732 | 2732 | | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
2733 | 2739 | | |
2734 | | - | |
2735 | | - | |
2736 | | - | |
2737 | | - | |
2738 | | - | |
2739 | | - | |
2740 | | - | |
2741 | | - | |
2742 | | - | |
2743 | | - | |
2744 | | - | |
2745 | | - | |
2746 | | - | |
2747 | | - | |
2748 | | - | |
2749 | | - | |
2750 | | - | |
2751 | | - | |
2752 | | - | |
2753 | | - | |
2754 | | - | |
2755 | | - | |
2756 | | - | |
2757 | | - | |
2758 | | - | |
2759 | | - | |
2760 | | - | |
2761 | | - | |
2762 | | - | |
2763 | | - | |
2764 | | - | |
2765 | | - | |
2766 | | - | |
2767 | | - | |
2768 | | - | |
2769 | | - | |
2770 | | - | |
2771 | | - | |
2772 | | - | |
2773 | | - | |
2774 | | - | |
2775 | | - | |
2776 | | - | |
2777 | | - | |
2778 | | - | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
2779 | 2838 | | |
2780 | | - | |
2781 | | - | |
2782 | | - | |
2783 | | - | |
2784 | | - | |
2785 | | - | |
2786 | | - | |
2787 | | - | |
2788 | | - | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
2789 | 2842 | | |
2790 | 2843 | | |
2791 | 2844 | | |
| |||
2799 | 2852 | | |
2800 | 2853 | | |
2801 | 2854 | | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
2805 | | - | |
2806 | | - | |
2807 | | - | |
2808 | | - | |
2809 | | - | |
2810 | | - | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
2811 | 2858 | | |
2812 | 2859 | | |
2813 | 2860 | | |
| |||
2832 | 2879 | | |
2833 | 2880 | | |
2834 | 2881 | | |
2835 | | - | |
2836 | | - | |
2837 | | - | |
2838 | | - | |
2839 | | - | |
2840 | | - | |
2841 | | - | |
2842 | | - | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2843 | 2885 | | |
2844 | 2886 | | |
2845 | 2887 | | |
2846 | 2888 | | |
2847 | 2889 | | |
2848 | 2890 | | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
2849 | 2897 | | |
2850 | 2898 | | |
2851 | 2899 | | |
| |||
2857 | 2905 | | |
2858 | 2906 | | |
2859 | 2907 | | |
2860 | | - | |
| 2908 | + | |
2861 | 2909 | | |
2862 | 2910 | | |
2863 | 2911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
860 | 870 | | |
861 | 871 | | |
862 | 872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
4339 | 4341 | | |
4340 | 4342 | | |
4341 | 4343 | | |
4342 | | - | |
| 4344 | + | |
| 4345 | + | |
4343 | 4346 | | |
4344 | 4347 | | |
4345 | 4348 | | |
| |||
4348 | 4351 | | |
4349 | 4352 | | |
4350 | 4353 | | |
4351 | | - | |
| 4354 | + | |
4352 | 4355 | | |
4353 | 4356 | | |
4354 | 4357 | | |
4355 | 4358 | | |
4356 | 4359 | | |
4357 | 4360 | | |
4358 | 4361 | | |
4359 | | - | |
| 4362 | + | |
| 4363 | + | |
4360 | 4364 | | |
4361 | 4365 | | |
4362 | 4366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1949 | 1949 | | |
1950 | 1950 | | |
1951 | 1951 | | |
| 1952 | + | |
| 1953 | + | |
1952 | 1954 | | |
1953 | 1955 | | |
1954 | 1956 | | |
1955 | 1957 | | |
1956 | 1958 | | |
1957 | 1959 | | |
| 1960 | + | |
1958 | 1961 | | |
1959 | 1962 | | |
| 1963 | + | |
1960 | 1964 | | |
1961 | 1965 | | |
1962 | 1966 | | |
| |||
1967 | 1971 | | |
1968 | 1972 | | |
1969 | 1973 | | |
1970 | | - | |
| 1974 | + | |
| 1975 | + | |
1971 | 1976 | | |
1972 | 1977 | | |
1973 | 1978 | | |
1974 | 1979 | | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1975 | 1987 | | |
| 1988 | + | |
1976 | 1989 | | |
1977 | 1990 | | |
| 1991 | + | |
1978 | 1992 | | |
1979 | 1993 | | |
1980 | 1994 | | |
| |||
0 commit comments