aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/instructions/flow.cpp11
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