DiagnosticDirective
이 페이지에서

DiagnosticDirective

인터페이스, IR 분류

WGSL `diagnostic(severity, rule);` 지시문입니다.

import type { DiagnosticDirective } from 'typeshade'
import type { DiagnosticDirective } from 'typeshade/core/ir'

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

구문

interface DiagnosticDirective {
readonly severity: 'off' | 'info' | 'warning' | 'error';
readonly rule: string;
}

인스턴스 속성

severity읽기 전용 'off' | 'info' | 'warning' | 'error'
rule읽기 전용 string

소스

src/core/ir/nodes/entry-and-directive.ts, 4행, 커밋 af54ddad5 기준

이 페이지 편집 문제 보고