pub fn subgroup_ballot_bit_extract(value: SubgroupMask, index: u32) -> bool
Expand description
Evaluates a value for all active invocations in the group, resulting in true if the bit in value
that corresponds to index
is set to one, otherwise the result is false.
Result Type must be a Boolean type.
Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.
value
must be a vector of four components of integer type scalar, whose Width operand is 32 and whose Signedness operand is 0.
value
is a set of bitfields where the first invocation is represented in the lowest bit of the first vector component and the last (up to the size of the group) is the higher bit number of the last bitmask needed to represent all bits of the group invocations.
index
must be a scalar of integer type, whose Signedness operand is 0.
The resulting value is undefined if index
is greater than or equal to the size of the group.
Requires Capability GroupNonUniformBallot
.
ยงSafety
- This function is safe
- Result is undefined if
id
is out of bounds