Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

GlslDiagnostic interface

A problem or note found while converting GLSL.

View as Markdown
import type { GlslDiagnostic } from '@dioramajs/diorama/glsl'
interface GlslDiagnostic

Members

NameTypeDescription
readonly codeGlslCode

Diagnostic code, the key of its page in the docs.

readonly columnnumber

Column, from 1.

readonly filestring

File of the problem.

readonly framestring

Three source lines with a caret, for terminals and the Vite overlay.

readonly hintstring | undefined

What to change, in one line.

readonly linenumber

Line, from 1.

readonly messagestring

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.