aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/instructions/group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/instructions/group.cpp')
-rw-r--r--src/instructions/group.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/instructions/group.cpp b/src/instructions/group.cpp
index 71ec8c9..3b6f71a 100644
--- a/src/instructions/group.cpp
+++ b/src/instructions/group.cpp
@@ -42,6 +42,12 @@ Id Module::OpGroupNonUniformBroadcast(Id result_type, Id scope, Id value, Id id)
<< id << EndOp{};
}
+Id Module::OpGroupNonUniformShuffle(Id result_type, Id scope, Id value, Id id) {
+ code->Reserve(6);
+ return *code << OpId{spv::Op::OpGroupNonUniformShuffle, result_type} << scope << value << id
+ << EndOp{};
+}
+
Id Module::OpGroupNonUniformShuffleXor(Id result_type, Id scope, Id value, Id mask) {
code->Reserve(6);
return *code << OpId{spv::Op::OpGroupNonUniformShuffleXor, result_type} << scope << value