DiagnosticDirective
Interface in IR
A WGSL `diagnostic(severity, rule);` directive.
import type { DiagnosticDirective } from 'typeshade'import type { DiagnosticDirective } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
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/entry-and-directive.ts, line 4, at commit af54ddad5