Module surface_config

Module surface_config 

Source
Expand description

Validation of a surface configuration against its capabilities, including resolving SurfaceColorSpace::Auto (and present/alpha Auto) to concrete values. Split out of the very large resource.rs.

Functionsยง

resolve_auto_color_space ๐Ÿ”’
The concrete color space SurfaceColorSpace::Auto resolves to for format, given the color spaces a surface supports for it, or None if Auto cannot be satisfied.
validate_surface_configuration ๐Ÿ”’
Validate config against caps, resolving the Auto values in config to concrete ones.