Skip to content

TgpuVertexFnShell

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.

  • TgpuVertexFnShellHeader<TIn, TOut>

TIn extends In

TOut extends Out

TgpuVertexFnShell(implementation): TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>

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.

(input, out) => InferIO<TOut>

TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>

packages/typegpu/src/core/function/tgpuVertexFn.ts:80

TgpuVertexFnShell(implementation): TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>

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.

string

TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>

packages/typegpu/src/core/function/tgpuVertexFn.ts:86

TgpuVertexFnShell(strings, …values): TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>

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.

TemplateStringsArray

unknown[]

TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>

packages/typegpu/src/core/function/tgpuVertexFn.ts:89

readonly argTypes: [] | [IOLayoutToSchema<TIn>]

TgpuVertexFnShellHeader.argTypes

packages/typegpu/src/core/function/tgpuVertexFn.ts:57


readonly entryPoint: "vertex"

TgpuVertexFnShellHeader.entryPoint

packages/typegpu/src/core/function/tgpuVertexFn.ts:58


readonly in: undefined | TIn

TgpuVertexFnShellHeader.in

packages/typegpu/src/core/function/tgpuVertexFn.ts:55


readonly out: TOut

TgpuVertexFnShellHeader.out

packages/typegpu/src/core/function/tgpuVertexFn.ts:56