Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

TgpuFnShell

TgpuFnShell<Args, Return>: TgpuFnShellHeader<Args, Return> & <T>(implementation) => TgpuFn<Prettify<InheritArgNames<(…args) => Return, T>>["result"]> & (implementation) => TgpuFn<(…args) => Return> & (strings, …values) => TgpuFn<(…args) => Return>

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:65

Describes a function signature (its arguments and return type). Allows creating tgpu functions by calling this shell and passing the implementation (as WGSL string or JS function) as the argument.

Args extends AnyData[]

Return extends AnyData