GlslDiagnostic interface
A problem or note found while converting GLSL.
import type { GlslDiagnostic } from '@dioramajs/diorama/glsl'interface GlslDiagnosticMembers
| Name | Type | Description |
|---|---|---|
readonly code | GlslCode | Diagnostic code, the key of its page in the docs. |
readonly column | number | Column, from 1. |
readonly file | string | File of the problem. |
readonly frame | string | Three source lines with a caret, for terminals and the Vite overlay. |
readonly hint | string | undefined | What to change, in one line. |
readonly line | number | Line, from 1. |
readonly message | string | What was found. |
readonly 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.