From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/r_glob.h | 71 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/parsec/include/r_glob.h (limited to 'src/parsec/include/r_glob.h') diff --git a/src/parsec/include/r_glob.h b/src/parsec/include/r_glob.h new file mode 100644 index 0000000..052ca87 --- /dev/null +++ b/src/parsec/include/r_glob.h @@ -0,0 +1,71 @@ +/* + * PARSEC HEADER: r_glob.h + */ + +#ifndef _R_GLOB_H_ +#define _R_GLOB_H_ + + +// ---------------------------------------------------------------------------- +// RENDERING SUBSYSTEM (R) related global declarations and definitions - +// ---------------------------------------------------------------------------- + + +// rasterization performance statistics + +struct rastperfstats_s { + + dword fieldstate; + + dword fragments; + dword pixels; + dword faildepth; + dword failalpha; + dword failchroma; +}; + +#define RASTPERF_NONE 0x0000 +#define RASTPERF_FRAGMENTS 0x0001 +#define RASTPERF_PIXELS 0x0002 +#define RASTPERF_FAILDEPTH 0x0004 +#define RASTPERF_FAILALPHA 0x0008 +#define RASTPERF_FAILCHROMA 0x0010 + + +// geometry performance statistics + +struct geomperfstats_s { + + dword fieldstate; + + dword vertices_in; + dword vertices_out; + dword polygons_in; + dword polygons_out; + dword triangles_in; + dword triangles_out; + dword edges; + dword spans_in; + dword spans_out; +}; + +#define GEOMPERF_NONE 0x0000 +#define GEOMPERF_VERTICES_IN 0x0001 +#define GEOMPERF_VERTICES_OUT 0x0002 +#define GEOMPERF_POLYGONS_IN 0x0004 +#define GEOMPERF_POLYGONS_OUT 0x0008 +#define GEOMPERF_TRIANGLES_IN 0x0010 +#define GEOMPERF_TRIANGLES_OUT 0x0020 +#define GEOMPERF_EDGES 0x0040 +#define GEOMPERF_SPANS_IN 0x0080 +#define GEOMPERF_SPANS_OUT 0x0100 + + +// make definition of pcluster pointers possible + +struct pcluster_s; + + +#endif // _R_GLOB_H_ + + -- cgit v1.2.3