TypeArray
Interface in Layout
A fixed-size array uniform field with a plain element type: dash_array: arrayOf(vec4fT, 2).
import type { TypeArray } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface TypeArray<T extends ShaderType> { readonly elemType: T; readonly count: number;}Description
The field proxy exposes .at(i), which returns the typed element read.
Instance properties
elemTyperead onlyTThe element’s shader type.
countread onlynumberThe array length.
Source
src/core/sot.ts, line 615, at commit 26de7be8