Update wgpu in custom_shader example
This commit is contained in:
parent
46a48af97f
commit
3e8ed05356
2 changed files with 17 additions and 8 deletions
|
|
@ -5,9 +5,14 @@ authors = ["Bingus <shankern@protonmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced = { path = "../..", features = ["debug", "advanced"]}
|
iced.workspace = true
|
||||||
image = { version = "0.24.6"}
|
iced.features = ["debug", "advanced"]
|
||||||
wgpu = "0.17"
|
|
||||||
bytemuck = { version = "1.13.1" }
|
image.workspace = true
|
||||||
glam = { version = "0.24.0", features = ["bytemuck"] }
|
wgpu.workspace = true
|
||||||
|
bytemuck.workspace = true
|
||||||
|
|
||||||
|
glam.workspace = true
|
||||||
|
glam.features = ["bytemuck"]
|
||||||
|
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@ impl Pipeline {
|
||||||
resolve_target: None,
|
resolve_target: None,
|
||||||
ops: wgpu::Operations {
|
ops: wgpu::Operations {
|
||||||
load: wgpu::LoadOp::Load,
|
load: wgpu::LoadOp::Load,
|
||||||
store: true,
|
store: wgpu::StoreOp::Store,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)],
|
)],
|
||||||
|
|
@ -364,11 +364,13 @@ impl Pipeline {
|
||||||
view: &self.depth_view,
|
view: &self.depth_view,
|
||||||
depth_ops: Some(wgpu::Operations {
|
depth_ops: Some(wgpu::Operations {
|
||||||
load: wgpu::LoadOp::Clear(1.0),
|
load: wgpu::LoadOp::Clear(1.0),
|
||||||
store: true,
|
store: wgpu::StoreOp::Store,
|
||||||
}),
|
}),
|
||||||
stencil_ops: None,
|
stencil_ops: None,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
timestamp_writes: None,
|
||||||
|
occlusion_query_set: None,
|
||||||
});
|
});
|
||||||
|
|
||||||
pass.set_scissor_rect(
|
pass.set_scissor_rect(
|
||||||
|
|
@ -547,7 +549,7 @@ impl DepthPipeline {
|
||||||
resolve_target: None,
|
resolve_target: None,
|
||||||
ops: wgpu::Operations {
|
ops: wgpu::Operations {
|
||||||
load: wgpu::LoadOp::Load,
|
load: wgpu::LoadOp::Load,
|
||||||
store: true,
|
store: wgpu::StoreOp::Store,
|
||||||
},
|
},
|
||||||
})],
|
})],
|
||||||
depth_stencil_attachment: Some(
|
depth_stencil_attachment: Some(
|
||||||
|
|
@ -557,6 +559,8 @@ impl DepthPipeline {
|
||||||
stencil_ops: None,
|
stencil_ops: None,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
timestamp_writes: None,
|
||||||
|
occlusion_query_set: None,
|
||||||
});
|
});
|
||||||
|
|
||||||
pass.set_scissor_rect(bounds.x, bounds.y, bounds.width, bounds.height);
|
pass.set_scissor_rect(bounds.x, bounds.y, bounds.width, bounds.height);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue