$darkmode
Manages GPU timing using double-buffered queries to avoid stalls. More...
#include <gpu_profiler.h>
Data Fields | |
| GPUStage | stages [MAX_GPU_STAGES] |
| int | stage_count |
| int | recording_count |
| GPUQueryBuffer | buffers [GPU_QUERY_BUFFER_COUNT] |
| int | write_index |
| int | read_index |
| int | current_stage_index |
| MetricStack | hierarchy_stack |
| float | transition_progress |
| bool | enabled |
Manages GPU timing using double-buffered queries to avoid stalls.
| GPUQueryBuffer GPUProfiler::buffers[GPU_QUERY_BUFFER_COUNT] |
| int GPUProfiler::current_stage_index |
| bool GPUProfiler::enabled |
Whether profiling is currently active.
| MetricStack GPUProfiler::hierarchy_stack |
Stack to track hierarchy.
| int GPUProfiler::read_index |
Index of the buffer we are reading results from.
| int GPUProfiler::recording_count |
Number of stages recorded this frame (write-path counter, not for UI).
| int GPUProfiler::stage_count |
Number of stages from last completed read-back (used by UI for display).
| GPUStage GPUProfiler::stages[MAX_GPU_STAGES] |
| float GPUProfiler::transition_progress |
0.0 to 1.0 animation timer.
| int GPUProfiler::write_index |
Index of the buffer we are currently recording to.