summaryrefslogtreecommitdiffstats
path: root/examples/custom_shader/src/pipeline.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-14 11:43:38 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-14 11:43:38 +0100
commit33f626294452aefd1cd04f455fa1d1dfcb7f549e (patch)
tree2072075d371172532dd1ce5c54039360e137764f /examples/custom_shader/src/pipeline.rs
parent3e8ed05356dde17a6e31a0dc927a3c19b593b09a (diff)
downloadiced-33f626294452aefd1cd04f455fa1d1dfcb7f549e.tar.gz
iced-33f626294452aefd1cd04f455fa1d1dfcb7f549e.tar.bz2
iced-33f626294452aefd1cd04f455fa1d1dfcb7f549e.zip
Fix `clippy` lints :crab:
Diffstat (limited to 'examples/custom_shader/src/pipeline.rs')
-rw-r--r--examples/custom_shader/src/pipeline.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/custom_shader/src/pipeline.rs b/examples/custom_shader/src/pipeline.rs
index eef1081d..44ad17a2 100644
--- a/examples/custom_shader/src/pipeline.rs
+++ b/examples/custom_shader/src/pipeline.rs
@@ -479,15 +479,15 @@ impl DepthPipeline {
entry_point: "vs_main",
buffers: &[],
},
- primitive: Default::default(),
+ primitive: wgpu::PrimitiveState::default(),
depth_stencil: Some(wgpu::DepthStencilState {
format: wgpu::TextureFormat::Depth32Float,
depth_write_enabled: false,
depth_compare: wgpu::CompareFunction::Less,
- stencil: Default::default(),
- bias: Default::default(),
+ stencil: wgpu::StencilState::default(),
+ bias: wgpu::DepthBiasState::default(),
}),
- multisample: Default::default(),
+ multisample: wgpu::MultisampleState::default(),
fragment: Some(wgpu::FragmentState {
module: &shader,
entry_point: "fs_main",