mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-07 07:11:06 +00:00
Sanitise image layouts for revert of partial renderpass layout changes
This commit is contained in:
@@ -997,7 +997,12 @@ bool WrappedVulkan::Serialise_vkEndCommandBuffer(SerialiserType &ser, VkCommandB
|
||||
|
||||
if(barrier.oldLayout != barrier.newLayout &&
|
||||
barrier.newLayout != VK_IMAGE_LAYOUT_UNDEFINED)
|
||||
{
|
||||
SanitiseOldImageLayout(barrier.oldLayout);
|
||||
SanitiseNewImageLayout(barrier.newLayout);
|
||||
|
||||
revertBarriers.push_back(barrier);
|
||||
}
|
||||
}
|
||||
|
||||
if(!revertBarriers.empty())
|
||||
|
||||
Reference in New Issue
Block a user