Understand the setting. Enjoy the session.

Primitive restart breaks one index stream into separate strips

Two separate low-poly mesh strips displayed on a developer's monitor.
AI-generated photographic illustration; not documentary photography.

An index buffer can describe more than one connected strip of geometry. The renderer needs a way to know when one strip ends and a fresh one begins.

Primitive restart provides that boundary. In Vulkan’s drawing specification, primitive-restart state controls whether a special index value restarts primitive assembly. The value is a marker in the index stream, not an instruction to fetch another ordinary vertex.

Read a tiny example

Consider this illustrative sequence for a supported indexed strip: 0, 1, 2, 3, R, 4, 5, 6. Here R stands for the configured restart value; it is not a literal character stored in the index buffer.

The first indices build one strip. At the marker, assembly starts over, so the later indices form a separate strip rather than extending the first one across the gap. That difference matters when disconnected pieces share an index stream.

The marker only has its intended meaning when the relevant API state and topology support it. Treating a reserved value as an ordinary index, or forgetting to enable restart where required, can produce missing or incorrect geometry. The index type and enabled features also affect which values and arrangements are valid.

Debug the input before blaming the shader

In a small test mesh, record the index type, topology, restart setting and actual marker value together. Inspect the indices immediately before and after the break. This creates a more focused investigation than changing lighting or material code when the triangles themselves are connected incorrectly.

Primitive restart is a mesh-assembly tool, not a promise of higher frame rates. A game’s best rendering arrangement depends on its data and workload. For a player curious about graphics, the key idea is simple: a special boundary in the geometry instructions can tell the GPU to begin another strip without pretending the two pieces touch.