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