@vertex
On this page

@vertex

Attribute

Marks a top-level exported function as the pipeline's vertex-stage entry point.

The signature and the sentence under each name are the compiler's own text at commit 26de7be8.

Syntax

declare function vertex(target: Function, context?: unknown): void

Parameters

This decorator is written on its own and takes no arguments.

The declaration also names what the TypeScript decorator runtime hands a decorator, target and context. A call passes neither.

Examples

See also

Edit this page Report a problem