TgpuVertexFnShell
TgpuVertexFnShell<
VertexIn
,VertexOut
>:TgpuVertexFnShellHeader
<VertexIn
,VertexOut
> & (implementation
) =>TgpuVertexFn
<OmitBuiltins
<VertexIn
>,OmitBuiltins
<VertexOut
>> & (implementation
) =>TgpuVertexFn
<OmitBuiltins
<VertexIn
>,OmitBuiltins
<VertexOut
>> & (strings
, …values
) =>TgpuVertexFn
<OmitBuiltins
<VertexIn
>,OmitBuiltins
<VertexOut
>> &object
Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:62
Describes a vertex entry function signature (its arguments, return type and attributes). Allows creating tgpu vertex 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
) =>TgpuVertexFn
<OmitBuiltins
<VertexIn
>,OmitBuiltins
<VertexOut
>> & (implementation
) =>TgpuVertexFn
<OmitBuiltins
<VertexIn
>,OmitBuiltins
<VertexOut
>>
Type Parameters
Section titled “Type Parameters”• VertexIn extends VertexInConstrained
• VertexOut extends VertexOutConstrained