summaryrefslogtreecommitdiffstats
path: root/examples/custom_shader/src/scene
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/custom_shader/src/scene
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/custom_shader/src/scene')
-rw-r--r--examples/custom_shader/src/scene/pipeline.rs10
1 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..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 {