flowchart TD
A["tess_prefix
index count of the draw"] --> B["tess_so_plan, one thread
fits whole primitives,
advances filled sizes"]
A --> C["tess_emit
domain points and indices"]
B --> D["barrier object → vertex"]
C --> D
D --> E["stream-output draw: domain shader
vertex id = record number,
domain vertex read from the
tessellator's index buffer"]
E --> F{"pipeline
rasterizes?"}
F -- yes --> G["domain draw
indexed, indirect"]
F -- no --> H["done"]