$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
gpu_profiler_ui.h File Reference
#include "gpu_profiler.h"
#include "ui.h"
#include <stdbool.h>
Include dependency graph for gpu_profiler_ui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GPUProfilerUI
 Manages the visual state and animations for the GPU timeline. More...
 

Functions

void gpu_profiler_ui_init (GPUProfilerUI *profiler_ui)
 Initializes the GPU timeline UI state. More...
 
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. More...
 
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. More...
 
void gpu_profiler_ui_toggle_visibility (GPUProfilerUI *profiler_ui)
 Toggles the timeline visibility (with animation). More...
 
void gpu_profiler_ui_toggle_position (GPUProfilerUI *profiler_ui)
 Toggles the timeline position (Top/Bottom). More...
 
void gpu_profiler_ui_cleanup (GPUProfilerUI *profiler_ui)
 Cleans up GPU resources used by the UI. More...
 

Function Documentation

◆ gpu_profiler_ui_cleanup()

void gpu_profiler_ui_cleanup ( GPUProfilerUI profiler_ui)

Cleans up GPU resources used by the UI.

Here is the call graph for this function:

◆ gpu_profiler_ui_draw()

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.

Here is the call graph for this function:

◆ gpu_profiler_ui_init()

void gpu_profiler_ui_init ( GPUProfilerUI profiler_ui)

Initializes the GPU timeline UI state.

Here is the call graph for this function:

◆ gpu_profiler_ui_toggle_position()

void gpu_profiler_ui_toggle_position ( GPUProfilerUI profiler_ui)

Toggles the timeline position (Top/Bottom).

◆ gpu_profiler_ui_toggle_visibility()

void gpu_profiler_ui_toggle_visibility ( GPUProfilerUI profiler_ui)

Toggles the timeline visibility (with animation).

◆ gpu_profiler_ui_update()

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.

Here is the call graph for this function: