---
title: "wgslBackend: constant in Emit, TypeShade API reference"
description: "wgslBackend, a constant in Emit. The WGSL target: a Backend that spells types, literals, intrinsics and module declarations for device.createShaderModule."
url: https://typeshade.dev/api/wgslbackend/
language: en
---

# `wgslBackend`

Constant in Emit

The WGSL target: a Backend that spells types, literals, intrinsics and module declarations for device.createShaderModule.

`import { wgslBackend } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
const wgslBackend: Backend
```

## Description

Pass it to any API that takes a backend, such as [`hostFeaturesFor`](https://typeshade.dev/api/hostfeaturesfor/) or [`capabilityMatrix`](https://typeshade.dev/api/capabilitymatrix/). The WGSL emitters in this module ([`emitModule`](https://typeshade.dev/api/emitmodule/), [`emitFragment`](https://typeshade.dev/api/emitfragment/), [`emitFuncs`](https://typeshade.dev/api/emitfuncs/), …) are already bound to it.

## See also

- [`Backend`](https://typeshade.dev/api/backend/)
- [`hostFeaturesFor`](https://typeshade.dev/api/hostfeaturesfor/)
- [`capabilityMatrix`](https://typeshade.dev/api/capabilitymatrix/)
- [`emitModule`](https://typeshade.dev/api/emitmodule/)
- [`emitFragment`](https://typeshade.dev/api/emitfragment/)
- [`emitFuncs`](https://typeshade.dev/api/emitfuncs/)

## Source

[`src/core/backends/wgsl.ts`, line 52](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/wgsl.ts#L52), at commit af54ddad5
