const SampledData: LiveComponent<SampledDataProps>
Up-to-4D array of a WGSL type. Samples a given expr
on the given range
.
number[]
Sample count up to [width, height, depth, layers]
string
WGSL type per sample
Emitter
Input emitter expression
([number, number])[]
Input range to sample on each axis
number
Extra padding samples to add outside the input range.
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[] | boolean
Use centered samples (0.5, 1.5, ..., N-0.5) instead of edge-to-edge samples (0, 1, ..., N).
boolean
Add current indices i
, j
, k
, l
to the expr
arguments.
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 / sampled-data.ts