Mark command pools as transient
This commit is contained in:
@@ -92,7 +92,7 @@ vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx)
|
||||
{
|
||||
auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{
|
||||
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient,
|
||||
.queueFamilyIndex = *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index,
|
||||
});
|
||||
vk.name(res, std::format("x264 encoder {} command pool", stream_idx));
|
||||
|
||||
Reference in New Issue
Block a user