type VirtualDraw = {
pipeline: Update<GPURenderPipelineDescriptor>,
defines: Record<string, any>,
mode: string,
renderer: string,
vertexCount?: Lazy<number>,
instanceCount?: Lazy<number>,
firstVertex?: Lazy<number>,
firstInstance?: Lazy<number>,
bounds?: Lazy<DataBounds>,
indirect?: StorageSource,
links:
Record<string,
ParsedBundle<any> | ParsedModule<any> | null | undefined>,
shouldDispatch?:
(
u: Record<string, any>,
) => boolean | number | null | undefined,
onDispatch?: (u: Record<string, any>) => void,
}
packages / workbench / src / pass / types.ts