const ArrayData: LiveComponent<ArrayDataProps>
Up-to-4D array of a WGSL type. Reads input data
or samples a given expr
.
number[]
Input size up to [width, height, depth, layers]
string
WGSL type per sample
number[] | TypedArray
Input data
Emitter
Input emitter expression
number
Emit N items per expr
call. Output size is [items, ...size]
if > 1.
boolean
Emit 0 or N items per expr
call. Output size is [N]
or [items, N]
.
boolean
Add current TimeContext
to the expr
arguments.
boolean
Resample data
or expr
on every animation frame.
( source: StorageSource, ) => LiveElement<ArrowFunction>
Leave empty to yeet source instead.
packages / workbench / src / data / array-data.ts