diff options
author | ReinUsesLisp <[email protected]> | 2019-11-03 00:32:35 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2019-11-03 00:32:35 -0300 |
commit | 688d6d9799b33787506a768b5cf10b392e226567 (patch) | |
tree | 9d6cd38201737b80f83860472f7b3df41e357cfa /src/instructions | |
parent | 9b897c35411353a7578a2102fde53ae6ba0878e5 (diff) | |
download | sirit-688d6d9799b33787506a768b5cf10b392e226567.tar.gz sirit-688d6d9799b33787506a768b5cf10b392e226567.zip |
Add OpSubgroupReadInvocationKHR
Diffstat (limited to 'src/instructions')
-rw-r--r-- | src/instructions/group.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/instructions/group.cpp b/src/instructions/group.cpp index 4025553..3c3d429 100644 --- a/src/instructions/group.cpp +++ b/src/instructions/group.cpp @@ -9,6 +9,13 @@ namespace Sirit { +Id Module::OpSubgroupReadInvocationKHR(Id result_type, Id value, Id index) { + auto op = std::make_unique<Op>(spv::Op::OpSubgroupReadInvocationKHR, bound++, result_type); + op->Add(value); + op->Add(index); + return AddCode(std::move(op)); +} + Id Module::OpGroupNonUniformShuffleXor(Id result_type, spv::Scope scope, Id value, Id mask) { auto op = std::make_unique<Op>(spv::Op::OpGroupNonUniformShuffleXor, bound++, result_type); op->Add(static_cast<u32>(scope)); |