SUBGROUP_INTRINSICS
Constant in Backends
The subgroup built-in functions of WGSL's subgroups extension.
import { SUBGROUP_INTRINSICS } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
Syntax
const SUBGROUP_INTRINSICS: ReadonlySet<string>Description
On WGSL each
is its own call; on GLSL ES 3.00 and on the CPU oracle a subgroup is one invocation (Rule
11.21), so passes/subgroups-one-lane.ts rewrites each call before the GLSL writer runs and
the oracle’s table gives each its one-lane value. Exported so the capability pass derives
subgroups from a call, the uniformity walk reads the set, and the front end routes one.
Source
src/core/intrinsics.ts, line 269, at commit af54ddad5