HandleArray
인터페이스, 레이아웃 분류
A fixed-size array<Element, N> uniform field whose element is a struct handle: patterns: arrayOf.
import type { HandleArray } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface HandleArray<H extends StructHandle> { readonly element: H; readonly count: number;}설명
The field proxy exposes a typed .at(i) that returns
the element’s field proxy, U.field.patterns.at(k).id. The declared WGSL type is
array<T, N>.
인스턴스 속성
element읽기 전용HThe element’s struct handle.
count읽기 전용numberThe array length.
소스
src/core/sot.ts, 604행, 커밋 c66579bf 기준