type DataBinding<T = any, S extends { table: any, name: string, code: string, hash: number, key?: number, entry?: string } = any> = {
attribute: UniformAttribute,
uniform?: StorageSource<any>,
storage?: StorageSource<any>,
texture?: TextureSource,
sampler?: SamplerSource,
lambda?: LambdaSource<S>,
constant?:
() => T | { expr: () => T } | { current: T } | NonNullable<T>,
}
packages / core / src / types.ts