Skip to content

Commit

Permalink
Vulkan Command pool optimization (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
gents83 committed Oct 5, 2022
1 parent 26f2239 commit 7b8dd4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/vulkan/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {
let _ = self
.device
.raw
.reset_command_pool(self.raw, vk::CommandPoolResetFlags::RELEASE_RESOURCES);
.reset_command_pool(self.raw, vk::CommandPoolResetFlags::default());
}

unsafe fn transition_buffers<'a, T>(&mut self, barriers: T)
Expand Down
1 change: 1 addition & 0 deletions wgpu-hal/src/vulkan/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ impl crate::Device<super::Api> for super::Device {
) -> Result<super::CommandEncoder, crate::DeviceError> {
let vk_info = vk::CommandPoolCreateInfo::builder()
.queue_family_index(desc.queue.family_index)
.flags(vk::CommandPoolCreateFlags::TRANSIENT)
.build();
let raw = self.shared.raw.create_command_pool(&vk_info, None)?;

Expand Down

0 comments on commit 7b8dd4e

Please sign in to comment.