Function spirv_std::arch::subgroup_quad_broadcast

source ·
pub unsafe fn subgroup_quad_broadcast<T: VectorOrScalar>(value: T, id: 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.