tiny.tracy.GpuZone
Defined in tiny.tracy.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/tracy/src/runtime.zig:221
zig
pub const GpuZone = struct { context: u32 = 0, begin_query: u32 = 0, active: bool = false, pub inline fn end(self: GpuZone) void { if (enabled and self.active) global.endGpuZone(self.context, 0, false); } pub inline fn endQuery(self: GpuZone, query: u32) void { if (enabled and self.active) global.endGpuZone(self.context, query, false); } pub inline fn endSerial(self: GpuZone) void { if (enabled and self.active) global.endGpuZone(self.context, 0, true); } pub inline fn endWithTimes(self: GpuZone, gpu_start: i64, gpu_end: i64) void { if (enabled and self.active) global.endGpuZoneWithTimes(self.context, self.begin_query, 0, gpu_start, gpu_end, false); } pub inline fn endQueryWithTimes(self: GpuZone, query: u32, gpu_start: i64, gpu_end: i64) void { if (enabled and self.active) global.endGpuZoneWithTimes(self.context, self.begin_query, query, gpu_start, gpu_end, false); } pub inline fn annotate(self: GpuZone, id: i64, value: f64) void { if (enabled and self.active) global.gpuAnnotation(self.context, self.begin_query, id, value); }};Source: lib/tracy/src/root.zig:76
zig
pub const GpuZone = runtime.GpuZone;Audit
| Definitions | 7 |
|---|---|
| Public names | 7 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |