---
title: "TypeShade language reference for shader authors"
description: "Every name a `\"use typeshade\"` file can write, 325 of them: types, attributes, builtin values, functions, constants and `Math` members."
url: https://typeshade.dev/reference/
language: en
---

# Language reference

The language reference for files that start with `"use typeshade"`. It lists 325 names from the compiler's language service at commit af54ddad5, the same table the editor uses for hover information.

This reference is for shader authors. Host applications and the [`fn()`](https://typeshade.dev/api/fn/) builder use the [compiler API reference](https://typeshade.dev/api/).

**[Types](https://typeshade.dev/reference/types/) 67 names**

The scalar, vector, matrix and memory types a declaration names.

**[Attributes](https://typeshade.dev/reference/attributes/) 9 names**

The attributes written with `@`: an entry’s stage, a kernel function’s workgroup size and the decorated form of the attribute types.

**[Builtin values](https://typeshade.dev/reference/builtin-values/) 18 names**

The ids `builtin<N>` names, with the stage each belongs to.

**[Functions](https://typeshade.dev/reference/functions/) 188 names**

The functions a shader calls, by family, with the text each backend writes.

**[Constants](https://typeshade.dev/reference/constants/) 2 names**

The compile-time literals the compiler inlines, and `discard`.

**[Math members](https://typeshade.dev/reference/math/) 41 names**

The `Math` members a shader may reach, each routed to a builtin or a literal.

**[Error codes](https://typeshade.dev/reference/errors/) 87 codes**

The code on a diagnostic, what it means and how to fix it.

**[Design rules](https://typeshade.dev/reference/rules/) 137 rules**

What the language may contain and how it may change, one rule per page.

## Reading an entry

An entry holds the declaration the editor loads for that name, the compiler's sentence about it, and for a builtin function the WGSL and the GLSL ES 3.00 text each backend writes. The [builtin table](https://typeshade.dev/guide/language/builtins/) is the scanning view over the same calls, four columns wide.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
