[naga] Add packed as a keyword for GLSL

Turns out that sometimes `packed` is a keyword,
and the produced GLSL had syntax errors due to that.
This commit is contained in:
Kamil Jarosz authored and Teodor Tanasoaia committed 2024-06-24 11:21:24 +02:00
1 parent 1de04926b1
commit 355613342e
2 files changed
+3

No files matched your search

+1
View File
@@ -181,6 +181,7 @@ By @atlv24 in [#5383](https://github.com/gfx-rs/wgpu/pull/5383)
#### Naga
- In spv-out don't decorate a `BindingArray`'s type with `Block` if the type is a struct with a runtime array by @Vecvec in [#5776](https://github.com/gfx-rs/wgpu/pull/5776)
- Add `packed` as a keyword for GLSL by @kjarosh in [#5855](https://github.com/gfx-rs/wgpu/pull/5855)
## v0.20.0 (2024-04-28)
+2
View File
@@ -473,6 +473,8 @@ pub const RESERVED_KEYWORDS: &[&str] = &[
"anyInvocation",
"allInvocations",
"allInvocationsEqual",
// Sometimes "packed" is a keyword, see https://github.com/gfx-rs/wgpu/issues/5853
"packed",
//
// entry point name (should not be shadowed)
//