summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-07-10 10:41:53 -0700
committerGitHub <noreply@github.com>2024-07-10 10:41:53 -0700
commit8ed0f49d337338426c05aa643106098e755b8d9d (patch)
tree9d56c3b2ecf65e95ed1662852f0b47482bc9433c /source
parentf4fac59372cf30f39fe508e01edf670b509aea73 (diff)
Emit spirv insts in the right sections. (#4590)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-spirv.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index f7d807190..8a0b9f2ed 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -6060,8 +6060,13 @@ struct SPIRVEmitContext
case SpvOpExtension:
return getSection(SpvLogicalSectionID::Extensions);
case SpvOpExecutionMode:
+ case SpvOpExecutionModeId:
return getSection(SpvLogicalSectionID::ExecutionModes);
case SpvOpDecorate:
+ case SpvOpDecorateId:
+ case SpvOpDecorateString:
+ case SpvOpMemberDecorate:
+ case SpvOpMemberDecorateString:
return getSection(SpvLogicalSectionID::Annotations);
default:
return defaultParent;