in vulkan when recreating the swapchain. do i also need to free the command buffers or…
- User
in vulkan when recreating the swapchain. do i also need to free the command buffers or can i reuse them?
Assistant
When re-creating the swapchain in Vulkan, you should free the command buffers that were previously allocated for the old swapchain, and re-create them for the new swapchain.
This is because the command buffers are associated with the specific swapchain object and its properties, and they may need to be re-created with different parameters for the new swapchain.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.