|
@@ -323,7 +323,15 @@ impl<'a> State<'a> {
|
|
|
label: Some("Render Encoder"),
|
|
label: Some("Render Encoder"),
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- //Modify the buffer
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ let mut compute_pass = encoder.begin_compute_pass(&wgpu::ComputePassDescriptor{
|
|
|
|
|
+ label: Some("Main Compute pass"),
|
|
|
|
|
+ timestamp_writes: None
|
|
|
|
|
+ });
|
|
|
|
|
+ compute_pass.set_pipeline(&self.compute_pipeline);
|
|
|
|
|
+ compute_pass.set_bind_group(0, &self.heightmap2_bindgroup, &[]);
|
|
|
|
|
+ compute_pass.dispatch_workgroups(self.dispatch.0, self.dispatch.1, 1);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
{
|
|
@@ -346,7 +354,7 @@ impl<'a> State<'a> {
|
|
|
occlusion_query_set: None,
|
|
occlusion_query_set: None,
|
|
|
timestamp_writes: None,
|
|
timestamp_writes: None,
|
|
|
});
|
|
});
|
|
|
- //Compute pipeline
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//Render Pipeline
|
|
//Render Pipeline
|
|
|
//render_pass.set_pipeline(&self.sky_pipeline);
|
|
//render_pass.set_pipeline(&self.sky_pipeline);
|