Function spirv_std::arch::subgroup_shuffle_down

source ·
pub unsafe fn subgroup_shuffle_down<T: VectorOrScalar>(
    value: T,
    delta: u32
) -> T
Expand description

Result is the Value of the invocation identified by the current invocation’s id within the group + Delta.

Result Type must be a scalar or vector of floating-point type, integer type, or Boolean type.

Execution is a Scope that identifies the group of invocations affected by this command. It must be Subgroup.

The type of Value must be the same as Result Type.

Delta must be a scalar of integer type, whose Signedness operand is 0.

Delta is treated as unsigned and the resulting value is undefined if Delta is greater than or equal to the size of the group, or if the current invocation’s id within the group + Delta is either an inactive invocation or greater than or equal to the size of the group.

Requires Capability GroupNonUniformShuffleRelative.