mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Handle secondary command buffers with no inheritance info RP
This commit is contained in:
@@ -1121,13 +1121,20 @@ bool WrappedVulkan::Serialise_vkBeginCommandBuffer(SerialiserType &ser, VkComman
|
||||
|
||||
if(m_ActionCallback && m_ActionCallback->ForceLoadRPs())
|
||||
{
|
||||
const VulkanCreationInfo::RenderPass &rpinfo =
|
||||
m_CreationInfo.m_RenderPass[GetResID(unwrappedInheritInfo.renderPass)];
|
||||
const VulkanCreationInfo::Framebuffer &fbinfo =
|
||||
m_CreationInfo.m_Framebuffer[GetResID(unwrappedInheritInfo.framebuffer)];
|
||||
if(unwrappedInheritInfo.framebuffer != VK_NULL_HANDLE)
|
||||
{
|
||||
const VulkanCreationInfo::Framebuffer &fbinfo =
|
||||
m_CreationInfo.m_Framebuffer[GetResID(unwrappedInheritInfo.framebuffer)];
|
||||
|
||||
unwrappedInheritInfo.framebuffer = Unwrap(fbinfo.loadFBs[unwrappedInheritInfo.subpass]);
|
||||
unwrappedInheritInfo.renderPass = Unwrap(rpinfo.loadRPs[unwrappedInheritInfo.subpass]);
|
||||
unwrappedInheritInfo.framebuffer = Unwrap(fbinfo.loadFBs[unwrappedInheritInfo.subpass]);
|
||||
}
|
||||
|
||||
if(unwrappedInheritInfo.renderPass != VK_NULL_HANDLE)
|
||||
{
|
||||
const VulkanCreationInfo::RenderPass &rpinfo =
|
||||
m_CreationInfo.m_RenderPass[GetResID(unwrappedInheritInfo.renderPass)];
|
||||
unwrappedInheritInfo.renderPass = Unwrap(rpinfo.loadRPs[unwrappedInheritInfo.subpass]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user