|
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
|
#include "gpu_profiler_ui.h"#include "adaptive_sampler.h"#include "app_metrics.h"#include "gpu_profiler.h"#include "gpu_profiler_ui_layout.h"#include "ui.h"#include "utils.h"#include <cglm/types.h>#include <math.h>#include <stdint.h>#include <string.h>Functions | |
| static void | hex_to_vec3 (uint32_t color, vec3 out) |
| static void | gpu_profiler_ui_update_visibility (GPUProfilerUI *profiler_ui, float alpha_step) |
| static void | gpu_stage_move (GPUStage *dest, GPUStage *src) |
| Safely moves contents of one stage to another, avoiding shallow copies of heap-allocated buffers in AdaptiveSamplers. | |
| static void | gpu_profiler_ui_compact_stages (GPUProfilerUI *profiler_ui) |
| static void | gpu_profiler_ui_sync_stage (GPUProfilerUI *profiler_ui, const GPUStage *live_stage, bool *display_updated) |
| void | gpu_profiler_ui_init (GPUProfilerUI *profiler_ui) |
| Initializes the GPU timeline UI state. | |
| void | gpu_profiler_ui_update (GPUProfilerUI *profiler_ui, GPUProfiler *live_profiler, double delta_time, double current_time, bool should_log_metrics) |
| Updates animations and synchronizes data with the live profiler. | |
| void | gpu_profiler_ui_draw (GPUProfilerUI *profiler_ui, UIContext *ctx, int screen_width, int screen_height) |
| Renders the GPU timeline using the provided UI context. | |
| void | gpu_profiler_ui_toggle_visibility (GPUProfilerUI *profiler_ui) |
| Toggles the timeline visibility (with animation). | |
| void | gpu_profiler_ui_toggle_position (GPUProfilerUI *profiler_ui) |
| Toggles the timeline position (Top/Bottom). | |
| void | gpu_profiler_ui_cleanup (GPUProfilerUI *profiler_ui) |
| Cleans up GPU resources used by the UI. | |
| void gpu_profiler_ui_cleanup | ( | GPUProfilerUI * | profiler_ui | ) |
Cleans up GPU resources used by the UI.
|
static |
| void gpu_profiler_ui_draw | ( | GPUProfilerUI * | profiler_ui, |
| UIContext * | ctx, | ||
| int | screen_width, | ||
| int | screen_height | ||
| ) |
Renders the GPU timeline using the provided UI context.
| void gpu_profiler_ui_init | ( | GPUProfilerUI * | profiler_ui | ) |
Initializes the GPU timeline UI state.
|
static |
| void gpu_profiler_ui_toggle_position | ( | GPUProfilerUI * | profiler_ui | ) |
Toggles the timeline position (Top/Bottom).
| void gpu_profiler_ui_toggle_visibility | ( | GPUProfilerUI * | profiler_ui | ) |
Toggles the timeline visibility (with animation).
| void gpu_profiler_ui_update | ( | GPUProfilerUI * | profiler_ui, |
| GPUProfiler * | live_profiler, | ||
| double | delta_time, | ||
| double | current_time, | ||
| bool | should_log_metrics | ||
| ) |
Updates animations and synchronizes data with the live profiler.
|
static |
Safely moves contents of one stage to another, avoiding shallow copies of heap-allocated buffers in AdaptiveSamplers.
|
static |