Skip to content

Commit

Permalink
Emit spirv insts in the right sections. (#4590)
Browse files Browse the repository at this point in the history
  • Loading branch information
csyonghe authored Jul 10, 2024
1 parent f4fac59 commit 8ed0f49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/slang/slang-emit-spirv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ed0f49

Please sign in to comment.