summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-01 16:19:08 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-20 00:14:46 +0200
commitaed9a03e3cc30c68488f6e177e2ea0513e7ffc99 (patch)
tree1626b4d0e387ef26b0bc083e117acf3b809c0604 /examples
parentfed9c8d19bed572aec80376722fc5ef0d48ac417 (diff)
downloadiced-aed9a03e3cc30c68488f6e177e2ea0513e7ffc99.tar.gz
iced-aed9a03e3cc30c68488f6e177e2ea0513e7ffc99.tar.bz2
iced-aed9a03e3cc30c68488f6e177e2ea0513e7ffc99.zip
Update `wgpu` to `0.20.1`
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_shader/src/scene/pipeline.rs8
-rw-r--r--examples/integration/src/scene.rs2
2 files changed, 10 insertions, 0 deletions
diff --git a/examples/custom_shader/src/scene/pipeline.rs b/examples/custom_shader/src/scene/pipeline.rs
index 50b70a98..20ca6a67 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,6 +278,8 @@ impl Pipeline {
}),
write_mask: wgpu::ColorWrites::ALL,
})],
+ compilation_options:
+ wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
});
@@ -490,6 +494,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,6 +514,8 @@ impl DepthPipeline {
blend: Some(wgpu::BlendState::REPLACE),
write_mask: wgpu::ColorWrites::ALL,
})],
+ compilation_options:
+ wgpu::PipelineCompilationOptions::default(),
}),
multiview: None,
});
diff --git a/examples/integration/src/scene.rs b/examples/integration/src/scene.rs
index e29558bf..f3a7a194 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,