Skip to content

d3d11/swapchain: add support for configuring swap chain color space

Initially creates the swap chain with a standard 8bit or 10bit RGB format with the default sRGB color space. As a color space hint is received, it is mapped against known-to-work alternatives which are then checked to be supported, and then configured during the following start_frame call.

Additionally, add some helpers to print out DXGI formats and color spaces.

Edited by Jan Ekström

Merge request reports