HandleArray
Interface in Layout
A fixed-size array<Element, N> uniform field whose element is a struct handle: patterns: arrayOf.
import type { HandleArray } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface HandleArray<H extends StructHandle> { readonly element: H; readonly count: number;}Description
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>.
Instance properties
elementread onlyHThe element’s struct handle.
countread onlynumberThe array length.
Source
src/core/sot.ts, line 604, at commit 26de7be8