summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2019-07-29 14:55:04 -0700
committerGitHub <noreply@github.com>2019-07-29 14:55:04 -0700
commit89758544c45a15e546a1eb08891e2787bb88de4a (patch)
tree1a8628e76d6a859beef511c512d4a648e6d1a958 /source/slang/slang.cpp
parent9f33d3d4eb81afde1b4445a4251979eeb5436e7f (diff)
Fix issue with outputting "static" in GLSL (#1006)
This appears to be a regression introduced in #1001, and missed because none of our existing tests covered `static const` arrays on the GLSL/SPIR-V targets. The basic problem is that we cannot output a `static const` definition in GLSL because `static` is a reserved word and not a keyword. Instead for GLSL we just want a `const` array. This change makes the emission of `static` for global-scope constants key on the target language for code generation, and only emit it for HLSL, C, and C++. This change also adds a test case specifically for running Slang input that has a `static const` array on the Vulkan target.
Diffstat (limited to 'source/slang/slang.cpp')
0 files changed, 0 insertions, 0 deletions