barrierOutsideDispatch()
Function in Backends
The error every CPU path throws when a barrier runs outside a dispatch: a barrier waits for the other invocations of the workgroup, and one invocation run alone, by a direct fns call or by a debug session, has none.
import { barrierOutsideDispatch } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
const barrierOutsideDispatch: (fn: string) => ErrorParameters
fnstring
Return value
Error
Description
The values after it would be ones no workgroup produces, so the run refuses and names the fix.
Source
src/core/intrinsics.ts, line 146, at commit 26de7be8