Skip to main content

preferred_surface_format

Function preferred_surface_format 

Source
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.