mirror of
https://github.com/shadps4-emu/sirit.git
synced 2024-11-23 03:10:02 +00:00
Implement OpGroupNonUniformBroadcastFirst
- update to latest spirv-headers - add OpGroupNonUniformBroadcastFirst
This commit is contained in:
parent
8db09231c4
commit
d5a049d589
2
externals/SPIRV-Headers
vendored
2
externals/SPIRV-Headers
vendored
@ -1 +1 @@
|
|||||||
Subproject commit a3fdfe81465d57efc97cfd28ac6c8190fb31a6c8
|
Subproject commit 2acb319af38d43be3ea76bfabf3998e5281d8d12
|
@ -1212,6 +1212,10 @@ public:
|
|||||||
// the group.
|
// the group.
|
||||||
Id OpGroupNonUniformBroadcast(Id result_type, Id scope, Id value, Id id);
|
Id OpGroupNonUniformBroadcast(Id result_type, Id scope, Id value, Id id);
|
||||||
|
|
||||||
|
// Result is the Value of the invocation from the active invocation with the lowest id
|
||||||
|
// in the group to all active invocations in the group.
|
||||||
|
Id OpGroupNonUniformBroadcastFirst(Id result_type, Id scope, Id value);
|
||||||
|
|
||||||
/// Return the value of the invocation identified by the current invocation's id within the
|
/// Return the value of the invocation identified by the current invocation's id within the
|
||||||
/// group xor'ed with mask.
|
/// group xor'ed with mask.
|
||||||
Id OpGroupNonUniformShuffleXor(Id result_type, Id scope, Id value, Id mask);
|
Id OpGroupNonUniformShuffleXor(Id result_type, Id scope, Id value, Id mask);
|
||||||
|
@ -42,6 +42,12 @@ Id Module::OpGroupNonUniformBroadcast(Id result_type, Id scope, Id value, Id id)
|
|||||||
<< id << EndOp{};
|
<< id << EndOp{};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Id Module::OpGroupNonUniformBroadcastFirst(Id result_type, Id scope, Id value) {
|
||||||
|
code->Reserve(5);
|
||||||
|
return *code << OpId{spv::Op::OpGroupNonUniformBroadcastFirst, result_type} << scope << value
|
||||||
|
<< EndOp{};
|
||||||
|
}
|
||||||
|
|
||||||
Id Module::OpGroupNonUniformShuffleXor(Id result_type, Id scope, Id value, Id mask) {
|
Id Module::OpGroupNonUniformShuffleXor(Id result_type, Id scope, Id value, Id mask) {
|
||||||
code->Reserve(6);
|
code->Reserve(6);
|
||||||
return *code << OpId{spv::Op::OpGroupNonUniformShuffleXor, result_type} << scope << value
|
return *code << OpId{spv::Op::OpGroupNonUniformShuffleXor, result_type} << scope << value
|
||||||
|
Loading…
Reference in New Issue
Block a user