cleaned loop. Compiles. Refactoring Canvas next
This commit is contained in:
@@ -213,25 +213,16 @@ impl<'a> VkProcessor<'a> {
|
||||
Err(err) => panic!("{:?}", err)
|
||||
};
|
||||
|
||||
let xy = self.compute_image.clone().unwrap().get_size();
|
||||
|
||||
let mut command_buffer =
|
||||
AutoCommandBufferBuilder::primary_one_time_submit(self.device.clone(), self.queue.family())
|
||||
.unwrap()
|
||||
AutoCommandBufferBuilder::primary_one_time_submit(self.device.clone(), self.queue.family()).unwrap();
|
||||
|
||||
.dispatch([xy.0, xy.1, 1],
|
||||
self.compute_kernel.clone().unwrap().clone().get_pipeline(),
|
||||
self.compute_image.clone().unwrap().clone()
|
||||
.get_descriptor_set(self.compute_kernel.clone().unwrap().clone().get_pipeline()).clone(), ()).unwrap()
|
||||
|
||||
.copy_buffer_to_image(self.compute_image.clone().unwrap().clone().rw_buffers.get(0).unwrap().clone(),
|
||||
self.compute_image.clone().unwrap().clone().get_swap_buffer().clone()).unwrap();
|
||||
|
||||
// ditto with the compuframe
|
||||
// Add the compute commands
|
||||
let mut command_buffer = self.compute_state.compute_commands(compute_frame, command_buffer, &self.canvas);
|
||||
|
||||
// Add the draw commands
|
||||
let mut command_buffer = self.canvas.draw_commands(command_buffer, framebuffers, image_num);
|
||||
|
||||
// And build
|
||||
let command_buffer = command_buffer.build().unwrap();
|
||||
|
||||
// Wait on the previous frame, then execute the command buffer and present the image
|
||||
|
||||
Reference in New Issue
Block a user