Commit 68676e3
authored
Refactor isTextureFormatUsableAsStorageFormatInCreateShaderModule (#4419)
The function had an incomplete list. I still think the function
is better than checking for array membership in each test that needs
it. It's a single place that can encapsulate what to do to do check.
It's a single place to hide the type casting. It's also a single
place to fix if someone wants to change the internals for how this
info is stored. It's a central place to make device dependent changes
if that ever comes up.1 parent eba794d commit 68676e3
File tree
2 files changed
+8
-6
lines changed- src/webgpu
- shader/validation/types
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2534 | 2534 | | |
2535 | 2535 | | |
2536 | 2536 | | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
2542 | 2540 | | |
2543 | 2541 | | |
2544 | 2542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments