---
title: "Constants, the TypeShade language reference for shaders"
description: "The 2 names a shader reads without declaring them: the maths literals the compiler inlines at compile time, and the fragment `discard`."
url: https://typeshade.dev/reference/constants/
language: en
---

# Constants

2 names

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

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

**[`discard`](https://typeshade.dev/reference/constants/discard/)**

Discards the current fragment, so nothing is written for it.

**[`TAU`](https://typeshade.dev/reference/constants/TAU/)**

The mathematical constant 2π (tau), inlined as a compile-time `f32` literal (approximately 6.28318).

Names, declarations and descriptions come from the compiler language-service tables at the pinned commit. Builtin output spellings and stage rules are read from compiler code. The site supplies the groupings and explanations around these entries.
