mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
Vulkan Command pool optimization (#3065)
This commit is contained in:
parent
26f223964e
commit
7b8dd4e0bd
@ -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)
|
||||
|
@ -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)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user