TgpuComputeFnShell
TgpuComputeFnShell<
ComputeIn>:TgpuComputeFnShellHeader<ComputeIn> & (implementation) =>TgpuComputeFn<ComputeIn> & (implementation) =>TgpuComputeFn<ComputeIn> & (strings, …values) =>TgpuComputeFn<ComputeIn>
Describes a compute entry function signature (its arguments, return type and workgroup size). Allows creating tgpu compute functions by calling this shell and passing the implementation (as WGSL string or JS function) as the argument.
Type Parameters
Section titled “Type Parameters”• ComputeIn extends IORecord<AnyComputeBuiltin>