TgpuComputeFnShell
TgpuComputeFnShell<
ComputeIn
>:TgpuComputeFnShellHeader
<ComputeIn
> & (implementation
) =>TgpuComputeFn
<ComputeIn
> & (implementation
) =>TgpuComputeFn
<ComputeIn
> & (strings
, …values
) =>TgpuComputeFn
<ComputeIn
> &object
Defined in: packages/typegpu/src/core/function/tgpuComputeFn.ts:37
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 declaration
Section titled “Type declaration”does: (
implementation
) =>TgpuComputeFn
<ComputeIn
> & (implementation
) =>TgpuComputeFn
<ComputeIn
>
Type Parameters
Section titled “Type Parameters”• ComputeIn extends IORecord
<AnyComputeBuiltin
>