Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
PPExposureReadback Struct Reference

Async GPU readback state for exposure and histogram. More...

#include <pp_exposure_readback.h>

Data Fields

GLuint exposure_pbo [2]
 
GLuint histogram_pbo [2]
 
GLsync exposure_sync [2]
 
GLsync histogram_sync [2]
 
float current_exposure
 
float auto_threshold
 
int last_buckets [256]
 
float last_min_lum
 
float last_max_lum
 
bool last_histogram_updated
 
uint64_t frame_count
 

Detailed Description

Async GPU readback state for exposure and histogram.

Field Documentation

◆ auto_threshold

float PPExposureReadback::auto_threshold

Dynamic exposure target.

◆ current_exposure

float PPExposureReadback::current_exposure

Cached exposure from GPU readback.

◆ exposure_pbo

GLuint PPExposureReadback::exposure_pbo[2]

Pixel Buffer Object for mean luma readback.

◆ exposure_sync

GLsync PPExposureReadback::exposure_sync[2]

Sync objects to avoid CPU stalls on exposure readback.

◆ frame_count

uint64_t PPExposureReadback::frame_count

Internal frame counter for readback sync.

◆ histogram_pbo

GLuint PPExposureReadback::histogram_pbo[2]

Pixel Buffer Object for luminance histogram readback.

◆ histogram_sync

GLsync PPExposureReadback::histogram_sync[2]

Sync objects to avoid CPU stalls on histogram readback.

◆ last_buckets

int PPExposureReadback::last_buckets[256]

◆ last_histogram_updated

bool PPExposureReadback::last_histogram_updated

◆ last_max_lum

float PPExposureReadback::last_max_lum

◆ last_min_lum

float PPExposureReadback::last_min_lum

The documentation for this struct was generated from the following file: