summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-03-09 01:57:25 +0100
committerLibravatar GitHub <noreply@github.com>2025-03-09 01:57:25 +0100
commitbae25b74f68078e5ff74cdae717273cf315d4e90 (patch)
tree3760dd8a8c1d3bafaadefd3e07c7c70820e8d582 /examples
parent86e8494bfa460bdbf506695f8f4b4f01a9cf5088 (diff)
parentfb2544021a40d029a99cadda7cf59acf5e7dc455 (diff)
downloadiced-bae25b74f68078e5ff74cdae717273cf315d4e90.tar.gz
iced-bae25b74f68078e5ff74cdae717273cf315d4e90.tar.bz2
iced-bae25b74f68078e5ff74cdae717273cf315d4e90.zip
Merge pull request #2832 from codewing/feature/wgpu-24
Update `wgpu` to `24` and use `cryoglyph` fork
Diffstat (limited to 'examples')
-rw-r--r--examples/integration/src/main.rs5
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()
});