# GlslDiagnostic

interface in `@dioramajs/diorama/glsl`

```ts
import type { GlslDiagnostic } from '@dioramajs/diorama/glsl'
```

A problem or note found while converting GLSL.

```ts
interface GlslDiagnostic
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `code` | `GlslCode` | Diagnostic code, the key of its page in the docs. |
| `column` | `number` | Column, from 1. |
| `file` | `string` | File of the problem. |
| `frame` | `string` | Three source lines with a caret, for terminals and the Vite overlay. |
| `hint` | `string \| undefined` | What to change, in one line. |
| `line` | `number` | Line, from 1. |
| `message` | `string` | What was found. |
| `severity` | `'info' \| 'error' \| 'warning'` | Errors stop the conversion, warnings and notes do not. |

Also exported from `@dioramajs/glsl`, `@dioramajs/glsl/convert`.

Defined in [packages/glsl/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/glsl/src/types.ts#L74).
