---
title: "Rule 10.5: Extensions and capabilities in TypeShade"
description: "Rule 10.5 of the TypeShade language design, in Extensions and capabilities."
url: https://typeshade.dev/reference/rules/10-5/
language: en
---

# Rule 10.5

Chapter 10, Extensions and capabilities Test

A GLSL lowering of a WGSL-only feature (the family [#130](https://github.com/typeshade/typeshade/issues/130) to [#139](https://github.com/typeshade/typeshade/issues/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](https://github.com/typeshade/typeshade/issues/137), [#138](https://github.com/typeshade/typeshade/issues/138), [#139](https://github.com/typeshade/typeshade/issues/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](https://typeshade.dev/reference/rules/11-8/), surface §23 and §25). It is lifted for the storage texture ([#136](https://github.com/typeshade/typeshade/issues/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](https://github.com/typeshade/typeshade/issues/131) to [#135](https://github.com/typeshade/typeshade/issues/135), and [#136](https://github.com/typeshade/typeshade/issues/136) in a draw), each of those features must fail closed on GLSL by [Rule 10.3](https://typeshade.dev/reference/rules/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](https://github.com/typeshade/typeshade/issues/130)’s fidelity classes) and is worked one item at a time when the maintainer says so.

## Derives from

the deferral recorded in [#162](https://github.com/typeshade/typeshade/issues/162), whose summary asks that the lowering family be worked one item at a time; decision 1 of change `0054` in `changes/`, which lifts it for [#137](https://github.com/typeshade/typeshade/issues/137), [#138](https://github.com/typeshade/typeshade/issues/138) and [#139](https://github.com/typeshade/typeshade/issues/139).

## 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:

- [`src/core/backends/capability-reachability.test.ts:1`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/capability-reachability.test.ts#L1)

## Explained in

The sections of the surface document that explain this rule, at commit af54ddad5:

- [§23 Atomics](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#23-atomics)
- [§24 Module variables](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#24-module-variables)
- [§25 Barriers, and running a workgroup on the CPU](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#25-barriers-and-running-a-workgroup-on-the-cpu)
- [§33 A storage texture](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#33-a-storage-texture)
- [§36 The WGSL-only textures: `texture_1d`, `texture_cube_array`, `textureGather`](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#36-the-wgsl-only-textures-texture_1d-texture_cube_array-texturegather)
- [§37 A multisampled texture, read one sample at a time](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#37-a-multisampled-texture-read-one-sample-at-a-time)
- [§67 Calling an entry point from host code](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#67-calling-an-entry-point-from-host-code)
- [§77 The subgroup built-in functions: `subgroupAdd` and the twenty beside it](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#77-the-subgroup-built-in-functions-subgroupadd-and-the-twenty-beside-it)

## See also

- [Rule 10.4](https://typeshade.dev/reference/rules/10-4/) Test
- [Rule 11.1](https://typeshade.dev/reference/rules/11-1/) Test
- [Rule 10.3](https://typeshade.dev/reference/rules/10-3/)
- [Rule 11.8](https://typeshade.dev/reference/rules/11-8/)
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

- [`docs/language-design.md:1426`](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/language-design.md#L1426) (the design document)
- [`reqs/rules/RULE-1005.md`](https://github.com/typeshade/typeshade/blob/af54ddad5/reqs/rules/RULE-1005.md) (its traceability item)
