spirv_std::arch

Function subgroup_shuffle_up

Source
pub unsafe fn subgroup_shuffle_up<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 the current invocation’s id within the group or if the selected lane is inactive.

Requires Capability GroupNonUniformShuffleRelative.