ComputePipeline
Interface in Runtime
A compute pipeline: one entry, dispatched with bindings by name.
import type { ComputePipeline } from 'typeshade/runtime'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface ComputePipeline { readonly entry: string; dispatch(target: object, bindings: Bindings, workgroups: number | readonly number[]): void;}Instance properties
entryread onlystring
Instance methods
dispatch(target: object, bindings: Bindings, workgroups: number | readonly number[]): voidRecord a dispatch into the host’s encoder or compute pass, or a frame’s.
Source
src/runtime/program.ts, line 137, at commit 26de7be8