tracy_gizmos_sys/
bindings.rs

1/* automatically generated by rust-bindgen 0.69.1 */
2
3pub type TracyPlotFormatEnum = ::std::os::raw::c_int;
4pub type TracyCZoneCtx = ___tracy_c_zone_context;
5#[repr(C)]
6#[derive(Debug, Copy, Clone)]
7pub struct ___tracy_source_location_data {
8    pub name: *const ::std::os::raw::c_char,
9    pub function: *const ::std::os::raw::c_char,
10    pub file: *const ::std::os::raw::c_char,
11    pub line: u32,
12    pub color: u32,
13}
14#[repr(C)]
15#[derive(Debug, Copy, Clone)]
16pub struct ___tracy_c_zone_context {
17    pub id: u32,
18    pub active: ::std::os::raw::c_int,
19}
20#[repr(C)]
21#[derive(Debug, Copy, Clone)]
22pub struct ___tracy_gpu_time_data {
23    pub gpuTime: i64,
24    pub queryId: u16,
25    pub context: u8,
26    pub __bindgen_padding_0: [u8; 5usize],
27}
28#[repr(C)]
29#[derive(Debug, Copy, Clone)]
30pub struct ___tracy_gpu_zone_begin_data {
31    pub srcloc: u64,
32    pub queryId: u16,
33    pub context: u8,
34    pub __bindgen_padding_0: [u8; 5usize],
35}
36#[repr(C)]
37#[derive(Debug, Copy, Clone)]
38pub struct ___tracy_gpu_zone_begin_callstack_data {
39    pub srcloc: u64,
40    pub depth: ::std::os::raw::c_int,
41    pub queryId: u16,
42    pub context: u8,
43    pub __bindgen_padding_0: u8,
44}
45#[repr(C)]
46#[derive(Debug, Copy, Clone)]
47pub struct ___tracy_gpu_zone_end_data {
48    pub queryId: u16,
49    pub context: u8,
50    pub __bindgen_padding_0: u8,
51}
52#[repr(C)]
53#[derive(Debug, Copy, Clone)]
54pub struct ___tracy_gpu_new_context_data {
55    pub gpuTime: i64,
56    pub period: f32,
57    pub context: u8,
58    pub flags: u8,
59    pub type_: u8,
60    pub __bindgen_padding_0: u8,
61}
62#[repr(C)]
63#[derive(Debug, Copy, Clone)]
64pub struct ___tracy_gpu_context_name_data {
65    pub context: u8,
66    pub __bindgen_padding_0: [u8; 7usize],
67    pub name: *const ::std::os::raw::c_char,
68    pub len: u16,
69    pub __bindgen_padding_1: [u8; 6usize],
70}
71#[repr(C)]
72#[derive(Debug, Copy, Clone)]
73pub struct ___tracy_gpu_calibration_data {
74    pub gpuTime: i64,
75    pub cpuDelta: i64,
76    pub context: u8,
77    pub __bindgen_padding_0: [u8; 7usize],
78}
79pub const TracyPlotFormatNumber: TracyPlotFormatEnum = 0;
80pub const TracyPlotFormatMemory: TracyPlotFormatEnum = 1;
81pub const TracyPlotFormatPercentage: TracyPlotFormatEnum = 2;
82pub const TracyPlotFormatWatt: TracyPlotFormatEnum = 3;
83extern "C" {
84    pub fn ___tracy_set_thread_name(name: *const ::std::os::raw::c_char);
85    pub fn ___tracy_startup_profiler();
86    pub fn ___tracy_shutdown_profiler();
87    pub fn ___tracy_alloc_srcloc(
88        line: u32,
89        source: *const ::std::os::raw::c_char,
90        sourceSz: usize,
91        function: *const ::std::os::raw::c_char,
92        functionSz: usize,
93    ) -> u64;
94    pub fn ___tracy_alloc_srcloc_name(
95        line: u32,
96        source: *const ::std::os::raw::c_char,
97        sourceSz: usize,
98        function: *const ::std::os::raw::c_char,
99        functionSz: usize,
100        name: *const ::std::os::raw::c_char,
101        nameSz: usize,
102    ) -> u64;
103    #[must_use]
104    pub fn ___tracy_emit_zone_begin(
105        srcloc: *const ___tracy_source_location_data,
106        active: ::std::os::raw::c_int,
107    ) -> TracyCZoneCtx;
108    #[must_use]
109    pub fn ___tracy_emit_zone_begin_callstack(
110        srcloc: *const ___tracy_source_location_data,
111        depth: ::std::os::raw::c_int,
112        active: ::std::os::raw::c_int,
113    ) -> TracyCZoneCtx;
114    #[must_use]
115    pub fn ___tracy_emit_zone_begin_alloc(
116        srcloc: u64,
117        active: ::std::os::raw::c_int,
118    ) -> TracyCZoneCtx;
119    #[must_use]
120    pub fn ___tracy_emit_zone_begin_alloc_callstack(
121        srcloc: u64,
122        depth: ::std::os::raw::c_int,
123        active: ::std::os::raw::c_int,
124    ) -> TracyCZoneCtx;
125    pub fn ___tracy_emit_zone_end(ctx: TracyCZoneCtx);
126    pub fn ___tracy_emit_zone_text(
127        ctx: TracyCZoneCtx,
128        txt: *const ::std::os::raw::c_char,
129        size: usize,
130    );
131    pub fn ___tracy_emit_zone_name(
132        ctx: TracyCZoneCtx,
133        txt: *const ::std::os::raw::c_char,
134        size: usize,
135    );
136    pub fn ___tracy_emit_zone_color(ctx: TracyCZoneCtx, color: u32);
137    pub fn ___tracy_emit_zone_value(ctx: TracyCZoneCtx, value: u64);
138    pub fn ___tracy_emit_gpu_zone_begin(arg1: ___tracy_gpu_zone_begin_data);
139    pub fn ___tracy_emit_gpu_zone_begin_callstack(arg1: ___tracy_gpu_zone_begin_callstack_data);
140    pub fn ___tracy_emit_gpu_zone_begin_alloc(arg1: ___tracy_gpu_zone_begin_data);
141    pub fn ___tracy_emit_gpu_zone_begin_alloc_callstack(
142        arg1: ___tracy_gpu_zone_begin_callstack_data,
143    );
144    pub fn ___tracy_emit_gpu_zone_end(data: ___tracy_gpu_zone_end_data);
145    pub fn ___tracy_emit_gpu_time(arg1: ___tracy_gpu_time_data);
146    pub fn ___tracy_emit_gpu_new_context(arg1: ___tracy_gpu_new_context_data);
147    pub fn ___tracy_emit_gpu_context_name(arg1: ___tracy_gpu_context_name_data);
148    pub fn ___tracy_emit_gpu_calibration(arg1: ___tracy_gpu_calibration_data);
149    pub fn ___tracy_emit_gpu_zone_begin_serial(arg1: ___tracy_gpu_zone_begin_data);
150    pub fn ___tracy_emit_gpu_zone_begin_callstack_serial(
151        arg1: ___tracy_gpu_zone_begin_callstack_data,
152    );
153    pub fn ___tracy_emit_gpu_zone_begin_alloc_serial(arg1: ___tracy_gpu_zone_begin_data);
154    pub fn ___tracy_emit_gpu_zone_begin_alloc_callstack_serial(
155        arg1: ___tracy_gpu_zone_begin_callstack_data,
156    );
157    pub fn ___tracy_emit_gpu_zone_end_serial(data: ___tracy_gpu_zone_end_data);
158    pub fn ___tracy_emit_gpu_time_serial(arg1: ___tracy_gpu_time_data);
159    pub fn ___tracy_emit_gpu_new_context_serial(arg1: ___tracy_gpu_new_context_data);
160    pub fn ___tracy_emit_gpu_context_name_serial(arg1: ___tracy_gpu_context_name_data);
161    pub fn ___tracy_emit_gpu_calibration_serial(arg1: ___tracy_gpu_calibration_data);
162    pub fn ___tracy_connected() -> ::std::os::raw::c_int;
163    pub fn ___tracy_emit_memory_alloc(
164        ptr: *const ::std::os::raw::c_void,
165        size: usize,
166        secure: ::std::os::raw::c_int,
167    );
168    pub fn ___tracy_emit_memory_alloc_callstack(
169        ptr: *const ::std::os::raw::c_void,
170        size: usize,
171        depth: ::std::os::raw::c_int,
172        secure: ::std::os::raw::c_int,
173    );
174    pub fn ___tracy_emit_memory_free(
175        ptr: *const ::std::os::raw::c_void,
176        secure: ::std::os::raw::c_int,
177    );
178    pub fn ___tracy_emit_memory_free_callstack(
179        ptr: *const ::std::os::raw::c_void,
180        depth: ::std::os::raw::c_int,
181        secure: ::std::os::raw::c_int,
182    );
183    pub fn ___tracy_emit_memory_alloc_named(
184        ptr: *const ::std::os::raw::c_void,
185        size: usize,
186        secure: ::std::os::raw::c_int,
187        name: *const ::std::os::raw::c_char,
188    );
189    pub fn ___tracy_emit_memory_alloc_callstack_named(
190        ptr: *const ::std::os::raw::c_void,
191        size: usize,
192        depth: ::std::os::raw::c_int,
193        secure: ::std::os::raw::c_int,
194        name: *const ::std::os::raw::c_char,
195    );
196    pub fn ___tracy_emit_memory_free_named(
197        ptr: *const ::std::os::raw::c_void,
198        secure: ::std::os::raw::c_int,
199        name: *const ::std::os::raw::c_char,
200    );
201    pub fn ___tracy_emit_memory_free_callstack_named(
202        ptr: *const ::std::os::raw::c_void,
203        depth: ::std::os::raw::c_int,
204        secure: ::std::os::raw::c_int,
205        name: *const ::std::os::raw::c_char,
206    );
207    pub fn ___tracy_emit_message(
208        txt: *const ::std::os::raw::c_char,
209        size: usize,
210        callstack: ::std::os::raw::c_int,
211    );
212    pub fn ___tracy_emit_messageL(
213        txt: *const ::std::os::raw::c_char,
214        callstack: ::std::os::raw::c_int,
215    );
216    pub fn ___tracy_emit_messageC(
217        txt: *const ::std::os::raw::c_char,
218        size: usize,
219        color: u32,
220        callstack: ::std::os::raw::c_int,
221    );
222    pub fn ___tracy_emit_messageLC(
223        txt: *const ::std::os::raw::c_char,
224        color: u32,
225        callstack: ::std::os::raw::c_int,
226    );
227    pub fn ___tracy_emit_frame_mark(name: *const ::std::os::raw::c_char);
228    pub fn ___tracy_emit_frame_mark_start(name: *const ::std::os::raw::c_char);
229    pub fn ___tracy_emit_frame_mark_end(name: *const ::std::os::raw::c_char);
230    pub fn ___tracy_emit_frame_image(
231        image: *const ::std::os::raw::c_void,
232        w: u16,
233        h: u16,
234        offset: u8,
235        flip: ::std::os::raw::c_int,
236    );
237    pub fn ___tracy_emit_plot(name: *const ::std::os::raw::c_char, val: f64);
238    pub fn ___tracy_emit_plot_float(name: *const ::std::os::raw::c_char, val: f32);
239    pub fn ___tracy_emit_plot_int(name: *const ::std::os::raw::c_char, val: i64);
240    pub fn ___tracy_emit_plot_config(
241        name: *const ::std::os::raw::c_char,
242        type_: ::std::os::raw::c_int,
243        step: ::std::os::raw::c_int,
244        fill: ::std::os::raw::c_int,
245        color: u32,
246    );
247    pub fn ___tracy_emit_message_appinfo(txt: *const ::std::os::raw::c_char, size: usize);
248}