Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/opcode.cpp')
-rw-r--r--source/opcode.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/opcode.cpp b/source/opcode.cpp
index 2584d51eb..e3797b707 100644
--- a/source/opcode.cpp
+++ b/source/opcode.cpp
@@ -468,8 +468,16 @@ bool spvOpcodeIsBlockTerminator(SpvOp opcode) {
}
bool spvOpcodeTerminatesExecution(SpvOp opcode) {
- return opcode == SpvOpKill || opcode == SpvOpTerminateInvocation ||
- opcode == SpvOpTerminateRayKHR || opcode == SpvOpIgnoreIntersectionKHR;
+ switch (opcode) {
+ case SpvOpKill:
+ case SpvOpTerminateInvocation:
+ case SpvOpTerminateRayKHR:
+ case SpvOpIgnoreIntersectionKHR:
+ case SpvOpEmitMeshTasksEXT:
+ return true;
+ default:
+ return false;
+ }
}
bool spvOpcodeIsBaseOpaqueType(SpvOp opcode) {