summaryrefslogtreecommitdiff
path: root/source/slang/lower-to-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/lower-to-ir.cpp')
-rw-r--r--source/slang/lower-to-ir.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp
index 1390cddaf..09f463ab6 100644
--- a/source/slang/lower-to-ir.cpp
+++ b/source/slang/lower-to-ir.cpp
@@ -1268,6 +1268,10 @@ void addVarDecorations(
{
builder->addDecoration<IRVulkanHitAttributesDecoration>(inst);
}
+ else if(mod.As<GloballyCoherentModifier>())
+ {
+ builder->addDecoration<IRGloballyCoherentDecoration>(inst);
+ }
// TODO: what are other modifiers we need to propagate through?
}
@@ -3765,6 +3769,8 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo>
maybeSetRate(context, irGlobal, decl);
+ addVarDecorations(context, irGlobal, decl);
+
if (decl)
{
builder->addHighLevelDeclDecoration(irGlobal, decl);