| ... | ... | @@ -1317,11 +1317,22 @@ pub const DeclGen = struct { |
| 1317 | 1317 | |
| 1318 | 1318 | fn spvStorageClass(as: std.builtin.AddressSpace) StorageClass { |
| 1319 | 1319 | return switch (as) { |
| 1320 | | .generic => .Generic, // TODO: Disallow? |
| 1321 | | .gs, .fs, .ss => unreachable, |
| 1320 | .generic => .Generic, |
| 1322 | 1321 | .shared => .Workgroup, |
| 1323 | 1322 | .local => .Private, |
| 1324 | | .global, .param, .constant, .flash, .flash1, .flash2, .flash3, .flash4, .flash5 => unreachable, |
| 1323 | .global => .CrossWorkgroup, |
| 1324 | .constant => .UniformConstant, |
| 1325 | .gs, |
| 1326 | .fs, |
| 1327 | .ss, |
| 1328 | .param, |
| 1329 | .flash, |
| 1330 | .flash1, |
| 1331 | .flash2, |
| 1332 | .flash3, |
| 1333 | .flash4, |
| 1334 | .flash5, |
| 1335 | => unreachable, |
| 1325 | 1336 | }; |
| 1326 | 1337 | } |
| 1327 | 1338 | |