VariantWgslResult
인터페이스, 배리언트 분류
What happened to one variant on the WGSL side.
import type { VariantWgslResult } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface VariantWgslResult { readonly key: string; readonly ok: boolean; readonly failedAt?: 'emit' | 'validate'; readonly errors?: readonly string[];}인스턴스 속성
key읽기 전용stringok읽기 전용booleanfailedAt선택 사항읽기 전용'emit' | 'validate'Which step failed. Absent when
ok.'emit'means the DSL threw before any device call.'validate'means the WGSL compiler reported errors, or the device call itself threw.errors선택 사항읽기 전용readonly string[]Every compilation message of type
'error', formatted asL<line>: <message>. Absent whenok. Warnings and info messages are never counted as failures: the compiler emits them for valid shaders, and a check that fails on them is soon ignored.
소스
src/core/variant-link.ts, 201행, 커밋 c66579bf 기준