Function subgroup_barrier

Source
pub fn subgroup_barrier()
Expand description

The function subgroupBarrier() enforces that all active invocations within a subgroup must execute this function before any are allowed to continue their execution, and the results of any memory stores performed using coherent variables performed prior to the call will be visible to any future coherent access to the same memory performed by any other shader invocation within the same subgroup.

Requires Capability GroupNonUniform.