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.
Extends
Section titled “Extends”TgpuVertexFnShellHeader<TIn,TOut>
Type Parameters
Section titled “Type Parameters”• 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.
Parameters
Section titled “Parameters”implementation
Section titled “implementation”(input, out) => InferIO<TOut>
Returns
Section titled “Returns”TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>
Defined in
Section titled “Defined in”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.
Parameters
Section titled “Parameters”implementation
Section titled “implementation”string
Returns
Section titled “Returns”TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>
Defined in
Section titled “Defined in”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.
Parameters
Section titled “Parameters”strings
Section titled “strings”TemplateStringsArray
values
Section titled “values”…unknown[]
Returns
Section titled “Returns”TgpuVertexFn<CleanIO<TIn>, CleanIO<TOut>>
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuVertexFn.ts:89
Properties
Section titled “Properties”argTypes
Section titled “argTypes”
readonlyargTypes: [] | [IOLayoutToSchema<TIn>]
Inherited from
Section titled “Inherited from”TgpuVertexFnShellHeader.argTypes
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuVertexFn.ts:57
entryPoint
Section titled “entryPoint”
readonlyentryPoint:"vertex"
Inherited from
Section titled “Inherited from”TgpuVertexFnShellHeader.entryPoint
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuVertexFn.ts:58
readonlyin:undefined|TIn
Inherited from
Section titled “Inherited from”TgpuVertexFnShellHeader.in
Defined in
Section titled “Defined in”packages/typegpu/src/core/function/tgpuVertexFn.ts:55
readonlyout:TOut
Inherited from
Section titled “Inherited from”TgpuVertexFnShellHeader.out