nCine
2025.08.r507-936d9b8
A cross-platform 2D game engine
Loading...
Searching...
No Matches
include
ncine
tracy_opengl.h
1
#define WITH_TRACY_OPENGL (!defined(__ANDROID__) && !defined(__APPLE__) && !defined(__EMSCRIPTEN__))
2
3
#if (defined(WITH_TRACY) || NCINE_WITH_TRACY) && defined(WITH_TRACY_OPENGL)
4
5
#ifdef __ANDROID__
6
#define GL_TIMESTAMP GL_TIMESTAMP_EXT
7
#define GL_QUERY_COUNTER_BITS GL_QUERY_COUNTER_BITS_EXT
8
#define GL_QUERY_RESULT GL_QUERY_RESULT_EXT
9
#define GL_QUERY_RESULT_AVAILABLE GL_QUERY_RESULT_AVAILABLE_EXT
10
#define glQueryCounter glQueryCounterEXT
11
#define glGetQueryiv glGetQueryivEXT
12
#define glGetQueryObjectiv glGetQueryObjectivEXT
13
#define glGetQueryObjectui64v glGetQueryObjectui64vEXT
14
#define glGenQueries glGenQueriesEXT
15
#define glGetInteger64v glGetInteger64vAPPLE
16
#endif
17
18
#include "tracy/TracyOpenGL.hpp"
19
20
#else
21
22
#include "tracy.h"
23
24
#define TracyGpuContext
25
#define TracyGpuContextName(x, y)
26
#define TracyGpuNamedZone(x, y, z)
27
#define TracyGpuNamedZoneC(x, y, z, w)
28
#define TracyGpuZone(x)
29
#define TracyGpuZoneC(x, y)
30
#define TracyGpuZoneTransient(x, y, z)
31
#define TracyGpuCollect
32
33
#define TracyGpuNamedZoneS(x, y, z, w)
34
#define TracyGpuNamedZoneCS(x, y, z, w, a)
35
#define TracyGpuZoneS(x, y)
36
#define TracyGpuZoneCS(x, y, z)
37
#define TracyGpuZoneTransientS(x, y, z, w)
38
39
namespace
tracy {
40
41
struct
SourceLocationData;
42
class
GpuCtxScope
43
{
44
public
:
45
GpuCtxScope
(
const
SourceLocationData *,
bool
) {}
46
GpuCtxScope
(
const
SourceLocationData *,
int
,
bool
) {}
47
};
48
49
}
50
51
#endif
tracy::GpuCtxScope
Definition
tracy_opengl.h:43
Generated on Mon Sep 1 2025 02:07:27 for nCine by
1.9.8