Update wgpu in custom_shader example

This commit is contained in:
Héctor Ramón Jiménez 2023-11-14 11:38:16 +01:00
parent 46a48af97f
commit 3e8ed05356
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 17 additions and 8 deletions

View file

@ -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);