spirv_std::arch

Function subgroup_elect

Source
pub unsafe fn subgroup_elect() -> bool
Expand description

Result is true only in the active invocation with the lowest id in the group, otherwise result is false.

Result Type must be a Boolean type.

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

Requires Capability GroupNonUniform.