summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 176cd0558..4fee5c440 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -1471,6 +1471,7 @@ Result linkAndOptimizeIR(
default:
break;
case CodeGenTarget::GLSL:
+ case CodeGenTarget::WGSL:
moveGlobalVarInitializationToEntryPoints(irModule);
break;
// For SPIR-V to SROA across 2 entry-points a value must not be a global