mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-03-09 03:16:27 +00:00
Add OpSubgroupReadInvocationKHR
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user