Skip to content

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:59

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. An already shelled function is reused when its argument and return schemas match.

Args extends BaseData[]

Return extends BaseData

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.