const InterleavedData: LiveComponent<InterleavedDataProps>
Convert an interleaved, flat array-of-structs with fields T
into struct-of-array data.
TypedArray
Input data, array of structs of values/arrays
([UniformType, string])[]
WGSL schema of input data
boolean
Resample data
on every animation frame.
<T>( t: T[], ) => boolean
Per item isLoop
accessor
<T>( t: T[], ) => boolean
Per item hasStart
accessor
<T>( t: T[], ) => boolean
Per item hasEnd
accessor
on?
| LiveElement<ArrowFunction>[]
| ReactElementInterop
| DeferredCall<ArrowFunction>
( ...sources: StorageSource[], ) => LiveElement<ArrowFunction>
Receive 1 source per field, in struct-of-array format. Leave empty to yeet sources instead.
packages / workbench / src / data / interleaved-data.ts