Add OpSubgroupReadInvocationKHR

This commit is contained in:
ReinUsesLisp 2019-11-03 00:32:35 -03:00
parent 9b897c3541
commit 688d6d9799
2 changed files with 12 additions and 0 deletions

View file

@ -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);