Set default device limits to downlevel_webgl2_defaults
(#223)
- Fixes #139 - See also #115
This commit is contained in:
parent
0fc722e011
commit
6662fec55b
|
@ -12,7 +12,7 @@ default = ["optimize"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
egui = "0.15"
|
egui = "0.15"
|
||||||
egui_wgpu_backend = { git = "https://github.com/hasenbanck/egui_wgpu_backend.git", rev = "961125e7bd2c71c5ead1d61a7ca7ffa8c0d17f48" }
|
egui_wgpu_backend = "0.14"
|
||||||
egui-winit = { version = "0.15", default-features = false, features = ["links"] }
|
egui-winit = { version = "0.15", default-features = false, features = ["links"] }
|
||||||
env_logger = "0.9"
|
env_logger = "0.9"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
|
@ -46,7 +46,10 @@ impl<'req, 'dev, 'win, W: HasRawWindowHandle> PixelsBuilder<'req, 'dev, 'win, W>
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
request_adapter_options: None,
|
request_adapter_options: None,
|
||||||
device_descriptor: wgpu::DeviceDescriptor::default(),
|
device_descriptor: wgpu::DeviceDescriptor {
|
||||||
|
limits: wgpu::Limits::downlevel_webgl2_defaults(),
|
||||||
|
..wgpu::DeviceDescriptor::default()
|
||||||
|
},
|
||||||
backend: wgpu::util::backend_bits_from_env().unwrap_or(wgpu::Backends::PRIMARY),
|
backend: wgpu::util::backend_bits_from_env().unwrap_or(wgpu::Backends::PRIMARY),
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
|
|
Loading…
Reference in a new issue