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 Vulkan swap chain, you generally need to free the associated resources, including command buffers, before creating new ones. Command buffers are tied to the swap chain and can't be reused after the swap chain has been destroyed.
Here's a general outline of the steps to follow when recreating a Vulkan swap chain:
- Create a new swap chain and get the new image views.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.