add OpenGL and DX11 backends (#7481)

# Objective

Avoid  ‘Unable to find a GPU! Make sure you have installed required drivers!’ .
Because many devices only support OpenGL without Vulkan.

Fixes #3191

## Solution

Use all backends supported by wgpu.
This commit is contained in:
wangling12 2023-02-04 23:20:20 +00:00
parent 67826b21d4
commit 5ee57ff4ba

View file

@ -48,7 +48,7 @@ impl Default for WgpuSettings {
let default_backends = if cfg!(feature = "webgl") {
Backends::GL
} else {
Backends::PRIMARY
Backends::all()
};
let backends = Some(wgpu::util::backend_bits_from_env().unwrap_or(default_backends));