diff options
Diffstat (limited to 'examples/integration/src/main.rs')
-rw-r--r-- | examples/integration/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs index 386e0f70..7c5388ab 100644 --- a/examples/integration/src/main.rs +++ b/examples/integration/src/main.rs @@ -70,10 +70,9 @@ pub fn main() -> Result<(), winit::error::EventLoopError> { ); let clipboard = Clipboard::connect(window.clone()); - let backend = - wgpu::util::backend_bits_from_env().unwrap_or_default(); + let backend = wgpu::Backends::from_env().unwrap_or_default(); - let instance = wgpu::Instance::new(wgpu::InstanceDescriptor { + let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor { backends: backend, ..Default::default() }); |