aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/instructions
diff options
context:
space:
mode:
authorBilly Laws <[email protected]>2022-10-21 23:14:21 +0100
committerRodrigo Locatti <[email protected]>2022-10-22 17:06:10 -0300
commitda4ffce189fa5d4e0fe3a45df2af38c9853d1a11 (patch)
tree4b0d317dab95f697810aa0bd4f0b4fc241aedb7b /src/instructions
parentaa292d56650bc28f2b2d75973fab2e61d0136f9c (diff)
downloadsirit-da4ffce189fa5d4e0fe3a45df2af38c9853d1a11.tar.gz
sirit-da4ffce189fa5d4e0fe3a45df2af38c9853d1a11.zip
Add OpGroupNonUniformBroadcast subgroup op
Diffstat (limited to 'src/instructions')
-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 274b5b6..71ec8c9 100644
--- a/src/instructions/group.cpp
+++ b/src/instructions/group.cpp
@@ -36,6 +36,12 @@ Id Module::OpSubgroupAllEqualKHR(Id result_type, Id predicate) {
return *code << OpId{spv::Op::OpSubgroupAllEqualKHR, result_type} << predicate << EndOp{};
}
+Id Module::OpGroupNonUniformBroadcast(Id result_type, Id scope, Id value, Id id) {
+ code->Reserve(6);
+ return *code << OpId{spv::Op::OpGroupNonUniformBroadcast, 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