Rule 1.1
On this page

Rule 1.1

Chapter 1, Introduction Test

A "use typeshade" program must mean what this document defines. A form borrowed from ECMAScript means what ECMAScript gives it, and a form borrowed from WGSL means what WGSL gives it, unless a rule of this document gives it another meaning and records the difference and its reason. The WGSL the compiler emits must be a program WGSL accepts, and must compute that meaning.

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

Rationale

TypeShade is a language of its own that borrows how an author writes from TypeScript and what the surface can express from WGSL. The source’s meaning is the default because an author reads a borrowed form by what it means there; a difference is allowed where it serves the GPU, and it is written down where the author can find it.

Derives from

changes/0100-typescript-meaning.md (section 1, the principle); WGSL Module and Introduction for the emitted program.

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:

the compile gate (scripts/compile-gate.ts), which hands every registered example to Tint; the open units of docs/typeshade-plan.md are listed in Appendix B.

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

See also

Source

The rule at commit af54ddad5:

Edit this page Report a problem