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:55
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.
Type Parameters
Section titled “Type Parameters”Args extends BaseData[]
Return
Section titled “Return”Return extends BaseData
© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.