@builtin("vertex_index")
On this page

@builtin("vertex_index")

Builtin value

The index of the current vertex within its draw call.

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

Syntax

@builtin("vertex_index"): u32

Description

Examples

See also

Edit this page Report a problem