---
title: "bool in WGSL, GLSL and TypeShade: shader type reference"
description: "bool is bool in both WGSL and GLSL ES 3.00. Boolean value. The scalar, vector, matrix and memory types a declaration names."
url: https://typeshade.dev/reference/types/bool/
language: en
---

# `bool`

Type

Boolean value.

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

## Syntax

```ts
type bool = boolean
```

## Examples

- [`gallery/rt-renderer-class/rt-renderer-class.shade.ts`](https://typeshade.dev/guide/examples/rt-renderer-class/)
- [`gallery/closures/closures.shade.ts`](https://typeshade.dev/guide/examples/closures/)
- [`gallery/generic-class/generic-class.shade.ts`](https://typeshade.dev/guide/examples/generic-class/)
- [`gallery/generic-helpers/generic-helpers.shade.ts`](https://typeshade.dev/guide/examples/generic-helpers/)
- [`gallery/inferred-returns/inferred-returns.shade.ts`](https://typeshade.dev/guide/examples/inferred-returns/)
- [`gallery/module-const/module-const.shade.ts`](https://typeshade.dev/guide/examples/module-const/)
- [`gallery/packing-bitcast/packing-bitcast.shade.ts`](https://typeshade.dev/guide/examples/packing-bitcast/)

## See also

- [Types](https://typeshade.dev/reference/types/)
- [`bool()` in `typeshade/core/ir`](https://typeshade.dev/api/bool/)
