RawPayload
타입, IR 분류
rawStmt의 인자로, raw 문에 삽입할 wgsl 및 glsl 소스 텍스트를 담습니다.
import type { RawPayload } from 'typeshade'import type { RawPayload } from 'typeshade/core/ir'
설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.
구문
type RawPayload = | { readonly wgsl: string; readonly glsl?: string } | { readonly wgsl?: string; readonly glsl: string };설명
최소 한쪽은 있어야 하므로 rawStmt({})는 컴파일되지 않습니다.
함께 보기
소스
src/core/ir/nodes.ts, 338행, 커밋 af54ddad5 기준