Debian Codegraph @

src/asahi/libagx/tessellator.h

raw
1 /*
2 * Copyright 2024 Valve Corporation
3 * SPDX-License-Identifier: MIT
4 */
5
6 #pragma once
7
8 #include "poly/tessellator.h"
9
10 #define libagx_tessellate(context, grid, barrier, prim, mode, state) \
11 if (prim == TESS_PRIMITIVE_QUADS) { \
12 libagx_tess_quad(context, grid, barrier, state, mode); \
13 } else if (prim == TESS_PRIMITIVE_TRIANGLES) { \
14 libagx_tess_tri(context, grid, barrier, state, mode); \
15 } else { \
16 assert(prim == TESS_PRIMITIVE_ISOLINES); \
17 libagx_tess_isoline(context, grid, barrier, state, mode); \
18 }