summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-09-20 01:27:08 +0200
committerLibravatar GitHub <noreply@github.com>2024-09-20 01:27:08 +0200
commitb78b8bc8e3c8dcb778b4e76bb9ef0ab1b88f633d (patch)
tree90a35a189a431adaff0d7121f12fbdf268083c67 /examples
parentfed9c8d19bed572aec80376722fc5ef0d48ac417 (diff)
parent84b658dbef0b29c57f67e041a1496c699ce78615 (diff)
downloadiced-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')
-rw-r--r--examples/custom_shader/src/scene/pipeline.rs10
-rw-r--r--examples/integration/src/main.rs2
-rw-r--r--examples/integration/src/scene.rs3
3 files changed, 15 insertions, 0 deletions
diff --git a/examples/custom_shader/src/scene/pipeline.rs b/examples/custom_shader/src/scene/pipeline.rs
index 50b70a98..84a3e5e2 100644
--- a/examples/custom_shader/src/scene/pipeline.rs
+++ b/examples/custom_shader/src/scene/pipeline.rs
@@ -243,6 +243,8 @@ impl Pipeline {
module: &shader,
entry_point: "vs_main",
buffers: &[Vertex::desc(), cube::Raw::desc()],
+ compilation_options:
+ wgpu::PipelineCompilationOptions::default(),
},
primitive: wgpu::PrimitiveState::default(),
depth_stencil: Some(wgpu::DepthStencilState {
@@ -276,8 +278,11 @@ impl Pipeline {
}),
write_mask: wgpu::ColorWrites::ALL,
})],
+ compilation_options:
+ wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
+ cache: None,
});
let depth_pipeline = DepthPipeline::new(
@@ -490,6 +495,8 @@ impl DepthPipeline {
module: &shader,
entry_point: "vs_main",
buffers: &[],
+ compilation_options:
+ wgpu::PipelineCompilationOptions::default(),
},
primitive: wgpu::PrimitiveState::default(),
depth_stencil: Some(wgpu::DepthStencilState {
@@ -508,8 +515,11 @@ impl DepthPipeline {
blend: Some(wgpu::BlendState::REPLACE),
write_mask: wgpu::ColorWrites::ALL,
})],
+ compilation_options:
+ 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 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,
})
}