diff options
author | 2024-09-20 01:27:08 +0200 | |
---|---|---|
committer | 2024-09-20 01:27:08 +0200 | |
commit | b78b8bc8e3c8dcb778b4e76bb9ef0ab1b88f633d (patch) | |
tree | 90a35a189a431adaff0d7121f12fbdf268083c67 /examples/integration | |
parent | fed9c8d19bed572aec80376722fc5ef0d48ac417 (diff) | |
parent | 84b658dbef0b29c57f67e041a1496c699ce78615 (diff) | |
download | iced-b78b8bc8e3c8dcb778b4e76bb9ef0ab1b88f633d.tar.gz iced-b78b8bc8e3c8dcb778b4e76bb9ef0ab1b88f633d.tar.bz2 iced-b78b8bc8e3c8dcb778b4e76bb9ef0ab1b88f633d.zip |
Merge pull request #2510 from iced-rs/wgpu-22.0
Update `wgpu` to `22.0`
Diffstat (limited to 'examples/integration')
-rw-r--r-- | examples/integration/src/main.rs | 2 | ||||
-rw-r--r-- | examples/integration/src/scene.rs | 3 |
2 files changed, 5 insertions, 0 deletions
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 e29558bf..15f97e08 100644 --- a/examples/integration/src/scene.rs +++ b/examples/integration/src/scene.rs @@ -74,6 +74,7 @@ fn build_pipeline( module: &vs_module, entry_point: "main", buffers: &[], + compilation_options: wgpu::PipelineCompilationOptions::default(), }, fragment: Some(wgpu::FragmentState { module: &fs_module, @@ -86,6 +87,7 @@ fn build_pipeline( }), write_mask: wgpu::ColorWrites::ALL, })], + compilation_options: wgpu::PipelineCompilationOptions::default(), }), primitive: wgpu::PrimitiveState { topology: wgpu::PrimitiveTopology::TriangleList, @@ -99,5 +101,6 @@ fn build_pipeline( alpha_to_coverage_enabled: false, }, multiview: None, + cache: None, }) } |