@builtin("vertex_index")
On this page

@builtin("vertex_index")

Builtin value

The index of the current vertex within its draw call.

Valid in
vertex input

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

Syntax

@builtin("vertex_index"): u32

Examples

See also

Edit this page Report a problem