spirv_std::arch

Function subgroup_shuffle

Source
pub unsafe fn subgroup_shuffle<T: VectorOrScalar>(value: T, id: u32) -> T
Expand description

Result is the Value of the invocation identified by the id Id.

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.

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

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

The resulting value is undefined if Id is an inactive invocation, or is greater than or equal to the size of the group.

Requires Capability GroupNonUniformShuffle.