diff options
author | 2023-11-14 11:38:16 +0100 | |
---|---|---|
committer | 2023-11-14 11:38:16 +0100 | |
commit | 3e8ed05356dde17a6e31a0dc927a3c19b593b09a (patch) | |
tree | 1e9e77be89cc187748bb7d29286922dac4718aea /examples | |
parent | 46a48af97fa472e1158e07d4deb988c5601197e0 (diff) | |
download | iced-3e8ed05356dde17a6e31a0dc927a3c19b593b09a.tar.gz iced-3e8ed05356dde17a6e31a0dc927a3c19b593b09a.tar.bz2 iced-3e8ed05356dde17a6e31a0dc927a3c19b593b09a.zip |
Update `wgpu` in `custom_shader` example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/custom_shader/Cargo.toml | 15 | ||||
-rw-r--r-- | examples/custom_shader/src/pipeline.rs | 10 |
2 files changed, 17 insertions, 8 deletions
diff --git a/examples/custom_shader/Cargo.toml b/examples/custom_shader/Cargo.toml index 7a927811..0b8466a9 100644 --- a/examples/custom_shader/Cargo.toml +++ b/examples/custom_shader/Cargo.toml @@ -5,9 +5,14 @@ authors = ["Bingus <shankern@protonmail.com>"] edition = "2021" [dependencies] -iced = { path = "../..", features = ["debug", "advanced"]} -image = { version = "0.24.6"} -wgpu = "0.17" -bytemuck = { version = "1.13.1" } -glam = { version = "0.24.0", features = ["bytemuck"] } +iced.workspace = true +iced.features = ["debug", "advanced"] + +image.workspace = true +wgpu.workspace = true +bytemuck.workspace = true + +glam.workspace = true +glam.features = ["bytemuck"] + rand = "0.8.5" diff --git a/examples/custom_shader/src/pipeline.rs b/examples/custom_shader/src/pipeline.rs index 9dd154e8..eef1081d 100644 --- a/examples/custom_shader/src/pipeline.rs +++ b/examples/custom_shader/src/pipeline.rs @@ -355,7 +355,7 @@ impl Pipeline { resolve_target: None, ops: wgpu::Operations { load: wgpu::LoadOp::Load, - store: true, + store: wgpu::StoreOp::Store, }, }, )], @@ -364,11 +364,13 @@ impl Pipeline { view: &self.depth_view, depth_ops: Some(wgpu::Operations { load: wgpu::LoadOp::Clear(1.0), - store: true, + store: wgpu::StoreOp::Store, }), stencil_ops: None, }, ), + timestamp_writes: None, + occlusion_query_set: None, }); pass.set_scissor_rect( @@ -547,7 +549,7 @@ impl DepthPipeline { resolve_target: None, ops: wgpu::Operations { load: wgpu::LoadOp::Load, - store: true, + store: wgpu::StoreOp::Store, }, })], depth_stencil_attachment: Some( @@ -557,6 +559,8 @@ impl DepthPipeline { stencil_ops: None, }, ), + timestamp_writes: None, + occlusion_query_set: None, }); pass.set_scissor_rect(bounds.x, bounds.y, bounds.width, bounds.height); |