StructDecl
인터페이스, IR 분류
A ModuleDecl.structs entry: a WGSL struct declaration.
import type { StructDecl } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface StructDecl { readonly name: string; readonly fields: readonly StructField[];}설명
On GLSL it becomes a
plain struct, or a flattened set of in/out globals when its fields carry
location/builtin (see StructField). Use uniformStruct or
ioStruct to derive one together with its binding and typed field access
instead of writing this shape by hand.
인스턴스 속성
name읽기 전용stringfields읽기 전용readonly StructField[]
함께 보기
소스
src/core/ir/nodes.ts, 492행, 커밋 c66579bf 기준