HandleArray
이 페이지에서

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읽기 전용 H

The element’s struct handle.

count읽기 전용 number

The array length.

소스

src/core/sot.ts, 604행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고