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'import type { HandleArray } from 'typeshade/core/ir'
The signature, the description and the examples come from the compiler's own source at commit af54ddad5.
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 611, at commit af54ddad5