pub fn rank_adapters(
records: &[AdapterRecord],
policy: &AdapterPolicy,
decode_allowed: bool,
) -> Result<AdapterOrder, String>Expand description
The adapters policy accepts among records (in high-performance order), best first.
decode_allowed says whether the decode policy allows GPU decoding. Software adapters always
rank after hardware ones.
ยงErrors
Returns why no adapter can be taken: none renders, or the pin matches no rendering adapter.