pub fn subgroup_quad_broadcast<T: VectorOrScalar>(value: T, index: u32) -> T
Expand description
Result is the value
of the invocation within the quad with a quad index equal to index
.
Result Type must be a scalar or vector of floating-point type, integer type, or Boolean type.
Execution is a Scope, but has no effect on the behavior of this instruction. It must be Subgroup.
The type of value
must be the same as Result Type.
index
must be a scalar of integer type, whose Signedness operand is 0.
Before version 1.5, index
must come from a constant instruction. Starting with version 1.5, index
must be dynamically uniform.
If the value of index
is greater than or equal to 4, or refers to an inactive invocation, the resulting value is undefined.
Requires Capability GroupNonUniformQuad
.
ยงSafety
- This function is safe
- Result is undefined if the value of
index
is greater than or equal to 4, or refers to an inactive invocation