Skip to main content

euv_chart/backend/common/
struct.rs

1/// Creates the best rendering backend available on the host.
2///
3/// The preference order is WebGPU, then WebGL2, then Canvas2D. A canvas
4/// can only ever have one kind of context, so the choice has to be made
5/// before the first `get_context` call — which is why the WebGPU probe
6/// is asynchronous and the factory is asynchronous too.
7#[derive(Clone, Copy, Debug, Default)]
8pub struct BackendFactory;