$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 #include <stdbool.h>
5 #include <stdint.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #ifdef TRACY_ENABLE
12 
15 void tracy_gpu_init(void);
16 
19 void tracy_gpu_collect(void);
20 
22 void tracy_gpu_screenshot(const void* data, uint16_t w, uint16_t h);
23 
25 void* tracy_gpu_zone_begin(const char* name, const char* function,
26  const char* file, uint32_t line, uint32_t color);
27 
29 void tracy_gpu_zone_end(void* ctx);
30 
31 #else
32 
33 #define tracy_gpu_init() ((void)0)
34 #define tracy_gpu_collect() ((void)0)
35 #define tracy_gpu_zone_begin(name, function, file, line, color) (0)
36 #define tracy_gpu_zone_end(ctx) ((void)0)
37 
38 #endif
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif // TRACY_GPU_H
#define tracy_gpu_zone_end(ctx)
Definition: tracy_gpu.h:36
#define tracy_gpu_init()
Definition: tracy_gpu.h:33
#define tracy_gpu_collect()
Definition: tracy_gpu.h:34
#define tracy_gpu_zone_begin(name, function, file, line, color)
Definition: tracy_gpu.h:35