---
title: "glslEs300Backend: constant in Emit, TypeShade API reference"
description: "glslEs300Backend, a constant in Emit. The GLSL ES 3.00 (WebGL2) Backend."
url: https://typeshade.dev/api/glsles300backend/
language: en
---

# `glslEs300Backend`

Constant in Emit

The GLSL ES 3.00 (WebGL2) Backend.

`import { glslEs300Backend } from 'typeshade'`

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

## Syntax

```ts
const glslEs300Backend: Backend
```

## Description

The GLSL ES 3.00 (WebGL2) [`Backend`](https://typeshade.dev/api/backend/). It supplies the GLSL spelling of types, literals, intrinsics and declarations to the shared emitter, which walks a module’s control flow the same way for every target. [`emitGlslModule`](https://typeshade.dev/api/emitglslmodule/), [`emitGlslStages`](https://typeshade.dev/api/emitglslstages/) and [`emitGlslFragment`](https://typeshade.dev/api/emitglslfragment/) drive it; pass it to a function that takes a `Backend` when you need GLSL spelling for a single construct.

Everything GLSL ES 3.00 cannot express throws [`UnsupportedFeatureError`](https://typeshade.dev/api/unsupportedfeatureerror/) ([`SD0030`](https://typeshade.dev/reference/errors/sd0030/)) before any source is produced: a `@compute` entry that is not declared `portable`, a multisampled (`2d-ms`) texture load, `f16`, a standalone `sampler` binding (GLSL has only the combined `sampler2D`), and a vertex entry that returns a bare non-struct output (GLSL links inter-stage varyings by field name, so the output must be a struct whose field the fragment input shares). A `storage` binding does not throw: [`emitGlslModule`](https://typeshade.dev/api/emitglslmodule/) rewrites it to a data-texture read first, and only the shapes that rewrite cannot cover throw, such as a `read_write` storage binding or an unsupported element type.

## See also

- [`Backend`](https://typeshade.dev/api/backend/)
- [`emitGlslModule`](https://typeshade.dev/api/emitglslmodule/)
- [`emitGlslStages`](https://typeshade.dev/api/emitglslstages/)
- [`emitGlslFragment`](https://typeshade.dev/api/emitglslfragment/)
- [`UnsupportedFeatureError`](https://typeshade.dev/api/unsupportedfeatureerror/)

## Source

[`src/core/backends/glsl/backend.ts`, line 50](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/glsl/backend.ts#L50), at commit af54ddad5
