Commit 4121a65
committed
meshletcodec: Simplify vertex decoding tail
switch/case doesn't really help here; the typical lowering is using
branches, and we always need to write the first component anyway. As
such it's simpler - and a little faster - to use explicit ifs/writes.
Also change more general repack shuffle to shufflelo with an immediate
for 16-bit tail processing. The compiler can do this transform too but
it's better to be explicit.1 parent 476953b commit 4121a65
1 file changed
+9
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
791 | | - | |
792 | 790 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
| 791 | + | |
| 792 | + | |
797 | 793 | | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
| 794 | + | |
| 795 | + | |
802 | 796 | | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
| 797 | + | |
| 798 | + | |
807 | 799 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 800 | + | |
| 801 | + | |
812 | 802 | | |
813 | | - | |
814 | | - | |
815 | 803 | | |
816 | 804 | | |
817 | 805 | | |
| |||
863 | 851 | | |
864 | 852 | | |
865 | 853 | | |
866 | | - | |
| 854 | + | |
867 | 855 | | |
868 | 856 | | |
869 | 857 | | |
| |||
0 commit comments