---
title: "Rule 1.2: Introduction, a TypeShade design rule"
description: "Rule 1.2 of the TypeShade language design, in Introduction. GLSL ES 3.00 is a target of the compiler; it must not be the definition of a construct."
url: https://typeshade.dev/reference/rules/1-2/
language: en
---

# Rule 1.2

Chapter 1, Introduction Code only

GLSL ES 3.00 is a target of the compiler; it must not be the definition of a construct.

The rule text and the parts under it are the compiler's own English, as the design document writes them.

## Rationale

a construct GLSL ES 3.00 lacks is still a construct of the language; the GLSL writer either lowers it or fails closed (§10).

## Derives from

the roadmap’s second rule, “make what does not compile, compile”, and `AGENTS.md`.

## How it is verified

Only the implementation carries it; no test checks it yet. The file below names the rule in an `Implements:` tag.

Where the rule says the compiler enforces it:

`src/core/passes/required-caps.ts` (`assertCaps`), which fails a GLSL emit closed on a capability the writer has no row for.

The files that verify it at commit af54ddad5, each at the first line that names the rule:

- [`src/core/passes/required-caps.ts:10`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/required-caps.ts#L10)

## Explained in

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

- [§12 Module constants](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#12-module-constants)
- [§18 A list as an array's initializer](https://github.com/typeshade/typeshade/blob/af54ddad5/docs/use-typeshade-surface.md#18-a-list-as-an-arrays-initializer)

## See also

- [Rule 1.1](https://typeshade.dev/reference/rules/1-1/) Test
- [Rule 1.3](https://typeshade.dev/reference/rules/1-3/) Test
- [Design rules](https://typeshade.dev/reference/rules/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

The rule at commit af54ddad5:

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