Converted interface
Result with the module split into parts, for loaders that inline stages.
import type { Converted } from '@dioramajs/glsl/convert'interface Converted extends ConvertResultMembers
| Name | Type | Description |
|---|---|---|
readonly code | string | The TSL module. |
readonly declaration | string | The companion |
readonly diagnostics | readonly GlslDiagnostic[] | Warnings and infos. Errors throw GlslError. |
readonly includes | readonly string[] | Included files, to watch. |
readonly parts | ModuleParts | The module in parts. |
readonly shader | Omit<GlslShader, 'build'> | Shader metadata, as the module exports it. |
readonly stats | { readonly fixes: number; readonly glslLines: number; readonly tslLines: number } | Line counts and the number of fixes applied. |
Defined in packages/glsl/src/convert/index.ts.