$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
tracy_gpu.h
Go to the documentation of this file.
1 #ifndef TRACY_GPU_H
2 #define TRACY_GPU_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #ifdef TRACY_ENABLE
9 
12 void tracy_gpu_init(void);
13 
16 void tracy_gpu_collect(void);
17 
19 void tracy_gpu_screenshot(const void* data, uint16_t w, uint16_t h);
20 
22 void* tracy_gpu_zone_begin(const char* name, const char* function,
23  const char* file, uint32_t line, uint32_t color);
24 
26 void tracy_gpu_zone_end(void* ctx);
27 
28 #else
29 
30 #define tracy_gpu_init() ((void)0)
31 #define tracy_gpu_collect() ((void)0)
32 #define tracy_gpu_zone_begin(name, function, file, line, color) (0)
33 #define tracy_gpu_zone_end(ctx) ((void)0)
34 
35 #endif
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif // TRACY_GPU_H
#define tracy_gpu_zone_end(ctx)
Definition: tracy_gpu.h:33
#define tracy_gpu_init()
Definition: tracy_gpu.h:30
#define tracy_gpu_collect()
Definition: tracy_gpu.h:31
#define tracy_gpu_zone_begin(name, function, file, line, color)
Definition: tracy_gpu.h:32