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