Function spirv_std::arch::memory_barrier
source · Expand description
Control the order that memory accesses are observed.
Ensures that memory accesses issued before this instruction are observed
before memory accesses issued after this instruction. This control is
ensured only for memory accesses issued by this invocation and observed by
another invocation executing within MEMORY
scope. If the vulkan
memory
model is declared, this ordering only applies to memory accesses that
use the NonPrivatePointer
memory operand or NonPrivateTexel
image operand.
SEMANTICS
declares what kind of memory is being controlled and what kind
of control to apply.
To execute both a memory barrier and a control barrier,
see control_barrier
.