Skip to content

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

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.

does: (implementation) => TgpuVertexFn<OmitBuiltins<VertexIn>, OmitBuiltins<VertexOut>> & (implementation) => TgpuVertexFn<OmitBuiltins<VertexIn>, OmitBuiltins<VertexOut>>

VertexIn extends VertexInConstrained

VertexOut extends VertexOutConstrained