Rule 10.5
Chapter 10, Extensions and capabilities Test
A GLSL lowering of a WGSL-only feature (the family #130 to #139: 1d, multisampled, depth read both ways, gather, cube array, storage texture, read-write storage, atomics, and barriers) is deferred by the maintainer, and must not be written until the deferral is lifted. The deferral is lifted for read-write storage, atomics, barriers and the compute entry (#137, #138, #139): a compute entry lowers to the pass program of change 0054, its memory as words, its barriers and atomic operations as the cuts of the phased order (Rule 11.8, surface §23 and §25). It is lifted for the storage texture (#136) in a compute entry on WebGL2 alone: the pass program holds the texture as a memory root of words, read in from the texture before the first pass and drawn back into it after the last, and a format the tier does not support yet is refused as “not supported yet on the WebGL2 tier (Rule 10.5)”, a fallback for it being later work (OD-11; change 0054, fifth amendment, surface §33). Until it is lifted for the others (#131 to #135, and #136 in a draw), each of those features must fail closed on GLSL by Rule 10.3, and the deferral must be written where the refusal is.
The rule text and the parts under it are the compiler's own English, as the design document writes them.
Rationale
the lowering family is one design (#130’s fidelity classes) and is worked one item at a time when the maintainer says so.
Derives from
How it is verified
Checked by a test. A test, a gate script or a CI workflow names this rule, and the traceability check fails when a file listed below stops naming it.
Where the rule says the compiler enforces it:
review; capability-reachability.test.ts records which target each capability has a row for.
The files that verify it at commit af54ddad5, each at the first line that names the rule:
Explained in
The sections of the surface document that explain this rule, at commit af54ddad5:
- §23 Atomics
- §24 Module variables
- §25 Barriers, and running a workgroup on the CPU
- §33 A storage texture
- §36 The WGSL-only textures:
texture_1d,texture_cube_array,textureGather - §37 A multisampled texture, read one sample at a time
- §67 Calling an entry point from host code
- §77 The subgroup built-in functions:
subgroupAddand the twenty beside it
See also
Source
The rule at commit af54ddad5:
docs/language-design.md:1426(the design document)reqs/rules/RULE-1005.md(its traceability item)