Skip to content

Commit

Permalink
[glsl] add more reserved keywords from previous specs
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Jun 24, 2024
1 parent ddff69b commit 7cf0711
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions naga/src/back/glsl/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ pub const RESERVED_KEYWORDS: &[&str] = &[
"namespace",
"using",
"sampler3DRect",
// Reserved keywords that were unreserved in GLSL 4.2
"image1DArrayShadow",
"image1DShadow",
"image2DArrayShadow",
"image2DShadow",
// Reserved keywords that were unreserved in GLSL 4.4
"packed",
"row_major",
//
// GLSL 4.6 Built-In Functions, from https://github.com/KhronosGroup/OpenGL-Registry/blob/d00e11dc1a1ffba581d633f21f70202051248d5c/specs/gl/GLSLangSpec.4.60.html#L13314
//
Expand Down Expand Up @@ -473,8 +481,6 @@ 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)
//
Expand Down

0 comments on commit 7cf0711

Please sign in to comment.