[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
2024-06-21 21:29:47 +02:00
committed by Teodor Tanasoaia
parent 1de04926b1
commit 355613342e
2 changed files with 3 additions and 0 deletions

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)

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)
//