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 recreating the swapchain in Vulkan, you should free the command buffers that were previously allocated for the old swapchain, and then allocate new command buffers for the new swapchain.
This is because the command buffers are associated with the swapchain and are used to record commands for rendering to the swapchain images. When the swapchain is recreated, the old command buffers are no longer valid and should be freed.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.