diff options
author | Liam <[email protected]> | 2022-11-23 17:17:31 -0500 |
---|---|---|
committer | Rodrigo Locatti <[email protected]> | 2022-11-23 22:43:28 -0300 |
commit | d7ad93a88864bda94e282e95028f90b5784e4d20 (patch) | |
tree | caf847f80dc6cfda0a220e6b85f05a71fe4e33de /src/instructions/flow.cpp | |
parent | 661499f6ecb85a81e18f160ae7cc2302b958e109 (diff) | |
download | sirit-d7ad93a88864bda94e282e95028f90b5784e4d20.tar.gz sirit-d7ad93a88864bda94e282e95028f90b5784e4d20.zip |
Add OpDemoteToHelperInvocation, OpTerminateInvocation
Diffstat (limited to 'src/instructions/flow.cpp')
-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 |