Skip to content

Commit

Permalink
Vulkan.rs updated successfully
Browse files Browse the repository at this point in the history
Updated to ash v0.38
  • Loading branch information
Rishik-Y authored Sep 17, 2024
1 parent 961607f commit 60c22fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/frame/vulkan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,20 +608,18 @@ impl Vulkan {
.expect("Failed to end command buffer");
};

// Updated submit_info without builder()

let submit_info = vk::SubmitInfo::default().command_buffers(&self.command_buffers);

unsafe {
// Submit the command buffers to the queue
self.device
.queue_submit(self.queue, &[submit_info], self.fence)
.map_err(anyhow::Error::msg)?;
.expect("Failed to submit queue");

// Wait for the fences
self.device
.wait_for_fences(&[self.fence], true, FENCES_TIMEOUT_NS)
.map_err(anyhow::Error::msg)?;
.expect("Failed to wait for fences");
}

Ok(())
Expand Down

0 comments on commit 60c22fe

Please sign in to comment.