diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/instructions/flow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/instructions/flow.cpp b/src/instructions/flow.cpp index e462dcb..5f6b693 100644 --- a/src/instructions/flow.cpp +++ b/src/instructions/flow.cpp @@ -92,9 +92,18 @@ void Module::OpKill() { *code << spv::Op::OpKill << EndOp{}; } +void Module::OpDemoteToHelperInvocation() { + code->Reserve(1); + *code << spv::Op::OpDemoteToHelperInvocation << EndOp{}; +} + void Module::OpDemoteToHelperInvocationEXT() { + OpDemoteToHelperInvocation(); +} + +void Module::OpTerminateInvocation() { code->Reserve(1); - *code << spv::Op::OpDemoteToHelperInvocationEXT << EndOp{}; + *code << spv::Op::OpTerminateInvocation << EndOp{}; } } // namespace Sirit |