Skip to main content

heatmap_budget

Function heatmap_budget 

Source
pub fn heatmap_budget(caps: &SurfaceCaps) -> Result<HeatmapBudget>
Expand description

Derive the checked heatmap budget for a surface.

Density provides a conservative baseline; physical pixel dimensions cap the useful cell count when present. Open display metadata may advertise lower or higher heatmap-max-cells and heatmap-max-bytes values, bounded by MAX_HEATMAP_CELLS and MAX_HEATMAP_BYTES. Malformed or overflowing advertised values fail closed.