DiagnosticDirective
Interface in IR
One WGSL diagnostic; directive.
import type { DiagnosticDirective } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface DiagnosticDirective { readonly severity: 'off' | 'info' | 'warning' | 'error'; readonly rule: string;}Instance properties
severityread only'off' | 'info' | 'warning' | 'error'ruleread onlystring
Source
src/core/ir/nodes.ts, line 877, at commit 26de7be8