You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: transition swapchain images only after acquisition
CreateBackBuffers transitioned every swapchain image to Present and submitted
that command buffer before the first acquisition. Vulkan permits use of a
presentable image only between vkAcquireNextImageKHR and vkQueuePresentKHR,
and a layout transition is such a use. Validation reported the violation once
per image per swapchain creation.
The transition existed to give the tracked layout a valid source. AcquireNextImage
now sets that state to Undefined instead, which is correct because the contents
of a newly acquired image are undefined. This also removes a vkQueueWaitIdle
from every swapchain creation and resize.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments