|
@@ -202,7 +202,7 @@ impl<'a> State<'a> {
|
|
|
let y = compute::visualisation::new(&device);
|
|
let y = compute::visualisation::new(&device);
|
|
|
|
|
|
|
|
let wireframe_pipeline = wireframe::wireframe_pipeline::new(&device, &config, &camera_bind_group_layout, &diffuse_bind_group_layout,&y.2);
|
|
let wireframe_pipeline = wireframe::wireframe_pipeline::new(&device, &config, &camera_bind_group_layout, &diffuse_bind_group_layout,&y.2);
|
|
|
- let wireframe = true;
|
|
|
|
|
|
|
+ let wireframe = false;
|
|
|
|
|
|
|
|
let pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor{
|
|
let pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor{
|
|
|
label: Some("Pipeline Layout"),
|
|
label: Some("Pipeline Layout"),
|
|
@@ -346,6 +346,7 @@ impl<'a> State<'a> {
|
|
|
compute_pass.set_pipeline(&self.compute_pipeline);
|
|
compute_pass.set_pipeline(&self.compute_pipeline);
|
|
|
compute_pass.set_bind_group(0, &self.heightmap2_bindgroup, &[]);
|
|
compute_pass.set_bind_group(0, &self.heightmap2_bindgroup, &[]);
|
|
|
compute_pass.dispatch_workgroups(self.dispatch.0, self.dispatch.1, 1);
|
|
compute_pass.dispatch_workgroups(self.dispatch.0, self.dispatch.1, 1);
|
|
|
|
|
+ //compute_pass.dispatch_workgroups(256, 256, 1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
encoder.copy_texture_to_texture(wgpu::ImageCopyTextureBase{
|
|
encoder.copy_texture_to_texture(wgpu::ImageCopyTextureBase{
|