aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2019-11-03 00:32:35 -0300
committerReinUsesLisp <[email protected]>2019-11-03 00:32:35 -0300
commit688d6d9799b33787506a768b5cf10b392e226567 (patch)
tree9d6cd38201737b80f83860472f7b3df41e357cfa /include
parent9b897c35411353a7578a2102fde53ae6ba0878e5 (diff)
downloadsirit-688d6d9799b33787506a768b5cf10b392e226567.tar.gz
sirit-688d6d9799b33787506a768b5cf10b392e226567.zip
Add OpSubgroupReadInvocationKHR
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 2181d26..7b68757 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -941,6 +941,11 @@ public:
// Group
+ /// Return the value from the invocation in the subgroup with an invocation ID equal to index.
+ /// The index must be the same for all active invocations in the subgroup, otherwise the results
+ /// are undefined.
+ Id OpSubgroupReadInvocationKHR(Id result_type, Id value, Id index);
+
/// Return the value of the invocation identified by the current invocation's id within the
/// group xor'ed with mask.
Id OpGroupNonUniformShuffleXor(Id result_type, spv::Scope scope, Id value, Id mask);