Skip to content

TgpuFragmentFnShell

TgpuFragmentFnShell<FragmentIn, FragmentOut>: TgpuFragmentFnShellHeader<FragmentIn, FragmentOut> & (implementation) => TgpuFragmentFn<OmitBuiltins<FragmentIn>, OmitBuiltins<FragmentOut>> & (implementation) => TgpuFragmentFn<OmitBuiltins<FragmentIn>, OmitBuiltins<FragmentOut>> & (strings, …values) => TgpuFragmentFn<OmitBuiltins<FragmentIn>, OmitBuiltins<FragmentOut>> & object

Defined in: packages/typegpu/src/core/function/tgpuFragmentFn.ts:67

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

does: (implementation) => TgpuFragmentFn<OmitBuiltins<FragmentIn>, OmitBuiltins<FragmentOut>> & (implementation) => TgpuFragmentFn<OmitBuiltins<FragmentIn>, OmitBuiltins<FragmentOut>>

FragmentIn extends FragmentInConstrained

FragmentOut extends FragmentOutConstrained