Skip to main content

list_adapters

Function list_adapters 

Source
pub fn list_adapters() -> Vec<AdapterDescription>
Expand description

Every graphics adapter wgpu enumerates on this machine, in wgpu’s order.

The order is the enumeration’s own and is not promised to agree with any other API’s roster; a caller that needs one adapter across two APIs matches by name on each side rather than by shared index (ADR-0146).