$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
pp_exposure_readback.h
Go to the documentation of this file.
1 #ifndef PP_EXPOSURE_READBACK_H
2 #define PP_EXPOSURE_READBACK_H
3 
9 #include "gl_common.h"
10 #include <stdint.h>
11 
12 #define POSTPROCESS_HISTOGRAM_BUCKETS 256
13 
18 typedef struct {
19  GLuint
20  exposure_pbo[2];
21  GLuint histogram_pbo[2];
23  GLsync exposure_sync[2];
25  GLsync histogram_sync[2];
29  int last_buckets[POSTPROCESS_HISTOGRAM_BUCKETS];
30  float last_min_lum;
31  float last_max_lum;
33  uint64_t frame_count;
35 
36 #endif /* PP_EXPOSURE_READBACK_H */
Common OpenGL definitions, RAII helpers, and utilities.
#define POSTPROCESS_HISTOGRAM_BUCKETS
Definition: pp_exposure_readback.h:12
Async GPU readback state for exposure and histogram.
Definition: pp_exposure_readback.h:18
float current_exposure
Definition: pp_exposure_readback.h:27
uint64_t frame_count
Definition: pp_exposure_readback.h:33
float last_max_lum
Definition: pp_exposure_readback.h:31
float auto_threshold
Definition: pp_exposure_readback.h:28
float last_min_lum
Definition: pp_exposure_readback.h:30
int last_histogram_updated
Definition: pp_exposure_readback.h:32