summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-19 19:10:23 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-20 00:14:47 +0200
commita5e69cfb5f7856e4d139ef58e5d022b9d408b542 (patch)
tree27004395eda5917e2a0bb77f440ac05ff8d8352d /examples
parentaed9a03e3cc30c68488f6e177e2ea0513e7ffc99 (diff)
downloadiced-a5e69cfb5f7856e4d139ef58e5d022b9d408b542.tar.gz
iced-a5e69cfb5f7856e4d139ef58e5d022b9d408b542.tar.bz2
iced-a5e69cfb5f7856e4d139ef58e5d022b9d408b542.zip
Update `wgpu` to `22.0`
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_shader/src/scene/pipeline.rs2
-rw-r--r--examples/integration/src/main.rs2
-rw-r--r--examples/integration/src/scene.rs1
3 files changed, 5 insertions, 0 deletions
diff --git a/examples/custom_shader/src/scene/pipeline.rs b/examples/custom_shader/src/scene/pipeline.rs
index 20ca6a67..84a3e5e2 100644
--- a/examples/custom_shader/src/scene/pipeline.rs
+++ b/examples/custom_shader/src/scene/pipeline.rs
@@ -282,6 +282,7 @@ impl Pipeline {
wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
+ cache: None,
});
let depth_pipeline = DepthPipeline::new(
@@ -518,6 +519,7 @@ impl DepthPipeline {
wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
+ cache: None,
});
Self {
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index 5b64cbd1..87a5b22b 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -102,6 +102,8 @@ pub fn main() -> Result<(), winit::error::EventLoopError> {
required_features: adapter_features
& wgpu::Features::default(),
required_limits: wgpu::Limits::default(),
+ memory_hints:
+ wgpu::MemoryHints::MemoryUsage,
},
None,
)
diff --git a/examples/integration/src/scene.rs b/examples/integration/src/scene.rs
index f3a7a194..15f97e08 100644
--- a/examples/integration/src/scene.rs
+++ b/examples/integration/src/scene.rs
@@ -101,5 +101,6 @@ fn build_pipeline(
alpha_to_coverage_enabled: false,
},
multiview: None,
+ cache: None,
})
}