Skip to content

TgpuVertexFnShell

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:52

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>>

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:60

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>>

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

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:63

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>>

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

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:64

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>>

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

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:36

TgpuVertexFnShellHeader.argTypes


readonly entryPoint: "vertex"

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:37

TgpuVertexFnShellHeader.entryPoint


readonly in: TIn | undefined

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:34

TgpuVertexFnShellHeader.in


readonly out: TOut

Defined in: packages/typegpu/src/core/function/tgpuVertexFn.ts:35

TgpuVertexFnShellHeader.out