Commit 38b6663
authored
validation: Fix type compatibility for streams vs. vertex inputs (gfx-rs#7600)
The old is_compatible_with handled scalar/scalar, scalar/vector, vector/vector, but was missing vector/scalar.
Since is_compatible_with is only used by vertex shader inputs, and vertex shader inputs can't be matrices (only scalars and vectors), we can actually simplify this by removing the other match and just only checking the kind.
Fixes gfx-rs#75681 parent 6a7aa14 commit 38b6663
1 file changed
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | 818 | | |
832 | 819 | | |
833 | 820 | | |
| |||
1221 | 1208 | | |
1222 | 1209 | | |
1223 | 1210 | | |
| 1211 | + | |
| 1212 | + | |
1224 | 1213 | | |
1225 | | - | |
| 1214 | + | |
1226 | 1215 | | |
1227 | 1216 | | |
1228 | 1217 | | |
| |||
0 commit comments