Skip to content

Sign up to be notified when the ShaderHunt platform is available, along with interactive examples teaching TypeGPU from the ground up.

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