Rumba C++ SDK
ProfilerGPU.h
Go to the documentation of this file.
1 /*
2 
3  *
4  ***
5  *****
6  ********************* Mercenaries Engineering SARL
7  ***************** Copyright (C) 2025
8  *************
9  ********* http://www.mercenaries-engineering.com
10  ***********
11  **** ****
12  ** **
13 
14 */
15 #pragma once
16 
17 #include "Profiler.h"
18 
19 #ifdef TRACY_ENABLE
20 
21 #include <tracy/TracyOpenGL.hpp>
22 
23 #else
24 
25 #define TracyGpuContext
26 #define TracyGpuContextName(x,y)
27 #define TracyGpuNamedZone(x,y,z)
28 #define TracyGpuNamedZoneC(x,y,z,w)
29 #define TracyGpuZone(x)
30 #define TracyGpuZoneC(x,y)
31 #define TracyGpuZoneTransient(x,y,z)
32 #define TracyGpuCollect
33 
34 #define TracyGpuNamedZoneS(x,y,z,w)
35 #define TracyGpuNamedZoneCS(x,y,z,w,a)
36 #define TracyGpuZoneS(x,y)
37 #define TracyGpuZoneCS(x,y,z)
38 #define TracyGpuZoneTransientS(x,y,z,w)
39 
40 namespace tracy
41 {
42 struct SourceLocationData;
44 {
45 public:
46  GpuCtxScope( const SourceLocationData*, bool ) {}
47  GpuCtxScope( const SourceLocationData*, int32_t, bool ) {}
48 };
49 }
50 
51 #endif
GpuCtxScope(const SourceLocationData *, bool)
Definition: ProfilerGPU.h:46
GpuCtxScope(const SourceLocationData *, int32_t, bool)
Definition: ProfilerGPU.h:47
Definition: ProfilerGPU.h:40
Definition: ProfilerGPU.h:43