when should i re-record a command buffer in vulkan?

  Kiến thức lập trình

The Vulkan specification allows a command buffer to be re-executed without re-recording it if there were no changes made to the resources used by the command buffer, including VkBuffer, VkImage, and other types of resources.

does changing the data in the VkDeviceMemory require re-recording of the command buffer?

or should I just re-record it anyway?

will it give undefined behaviour if i don’t?

New contributor

MR Paul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.