const RawData: LiveComponent<RawDataProps>
1D array of a WGSL type. Reads input data
or samples a given expr
of WGSL type format
.
number
Set/override input length
string
WGSL format per sample
number[] | TypedArray
Input data
Emitter
Input emitter expression
number
Emit N items per expr call. Output size is [items, N]
if items > 1.
boolean
Emit 0 or N items per expr call. Output size is [N]
or [items, N]
.
boolean
Resample data
on every animation frame.
boolean
Add current TimeContext
to the expr
arguments.
boolean
Split output into 1 source per item.
( ...source: ShaderSource[], ) => LiveElement<ArrowFunction>
Leave empty to yeet source(s) instead.
packages / workbench / src / data / raw-data.ts