BARRIER_INTRINSICS
Constant in Backends
The barriers: workgroupBarrier() and storageBarrier(), statements with no value that every invocation of a workgroup reaches before any runs on.
import { BARRIER_INTRINSICS } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const BARRIER_INTRINSICS: ReadonlySet<string>Description
WGSL spells them bare; GLSL ES 3.00 has no compute stage and no barrier. The CPU oracle runs
them through dispatch, which holds each invocation of a workgroup at the barrier until
all have arrived.
Source
src/core/intrinsics.ts, line 122, at commit 26de7be8