Set default device limits to downlevel_webgl2_defaults (#223)

- Fixes #139
- See also #115
This commit is contained in:
Jay Oster 2021-11-12 11:01:32 -08:00 committed by GitHub
parent 0fc722e011
commit 6662fec55b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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"

View file

@ -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,