pub fn preferred_surface_format(
formats: &[TextureFormat],
) -> Option<TextureFormat>Expand description
Picks the surface format. Non-sRGB formats are preferred so blending happens
in sRGB space, matching browsers and design tools; *Srgb formats still work
because the shaders linearize colors when told to.