diff --git a/wgpu-hal/src/vulkan/command.rs b/wgpu-hal/src/vulkan/command.rs index e225ca835..96a638483 100644 --- a/wgpu-hal/src/vulkan/command.rs +++ b/wgpu-hal/src/vulkan/command.rs @@ -98,7 +98,7 @@ impl crate::CommandEncoder 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) diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index b9d74e36e..41b5e0028 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -1059,6 +1059,7 @@ impl crate::Device for super::Device { ) -> Result { 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)?;