spirv_std::arch

Function subgroup_barrier

Source
pub unsafe fn subgroup_barrier()
Expand description

Only usable if the extension GL_KHR_shader_subgroup_basic is enabled.

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.