Add 16f option to render_bit_depth command

This change adds an option to let sway render onto XBGR16161616F
buffers, assuming hardware and drivers support this. Such half-float
formats may be used in the future for applications (including nested
Sway) to submit high-dynamic-range buffers.

Using this option is even more likely to reveal bugs in graphics
drivers, monitors, and screenshot tools than 'render_bit_depth 10'.
This commit is contained in:
Manuel Stoeckl 2022-07-20 20:11:37 -04:00
parent 6b97c4fa71
commit 1351c4e505
4 changed files with 13 additions and 3 deletions

View file

@ -258,6 +258,7 @@ enum render_bit_depth {
RENDER_BIT_DEPTH_DEFAULT, // the default is currently 8
RENDER_BIT_DEPTH_8,
RENDER_BIT_DEPTH_10,
RENDER_BIT_DEPTH_16F,
};
/**