spirv_std::arch

Function subgroup_memory_barrier

Source
pub unsafe fn subgroup_memory_barrier()
Expand description

Only usable if the extension GL_KHR_shader_subgroup_basic is enabled.

The function subgroupMemoryBarrier() enforces the ordering of all memory transactions issued within a single shader invocation, as viewed by other invocations in the same subgroup.

Requires Capability GroupNonUniform.