TgpuFragmentFnShell
TgpuFragmentFnShell<
FragmentIn,FragmentOut>:TgpuFragmentFnShellHeader<FragmentIn,FragmentOut> & (implementation) =>TgpuFragmentFn<OmitBuiltins<FragmentIn>,FragmentOut> & (implementation) =>TgpuFragmentFn<OmitBuiltins<FragmentIn>,FragmentOut> & (strings, …values) =>TgpuFragmentFn<OmitBuiltins<FragmentIn>,FragmentOut>
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.
Type Parameters
Section titled “Type Parameters”• FragmentIn extends FragmentInConstrained
• FragmentOut extends FragmentOutConstrained