pub fn negotiate_output( caps: &SurfaceCapabilities, allow_hdr: bool, ) -> Option<Output>
Picks format, color space and encoding for caps (HDR if offered and allow_hdr).
caps
allow_hdr