From 8ed0f49d337338426c05aa643106098e755b8d9d Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 10 Jul 2024 10:41:53 -0700 Subject: Emit spirv insts in the right sections. (#4590) --- source/slang/slang-emit-spirv.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') 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; -- cgit v1.2.3