diff options
Diffstat (limited to 'source/opcode.cpp')
-rw-r--r-- | source/opcode.cpp | 12 |
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) { |