mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Android seems to have broken descriptor set copies, disable
* We take the push descriptor path which replaces it with writes, which works for any descriptor set as we know the current contents.
This commit is contained in:
@@ -1519,7 +1519,9 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
|
||||
WrappedVulkan::DescriptorSetInfo &setInfo =
|
||||
m_pDriver->m_DescriptorSetState[state.graphics.descSets[i].descSet];
|
||||
|
||||
#if DISABLED(RDOC_ANDROID)
|
||||
if(setInfo.push)
|
||||
#endif
|
||||
{
|
||||
// push descriptors don't have a source to copy from, we need to add writes
|
||||
VkWriteDescriptorSet write = {VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET};
|
||||
@@ -1585,6 +1587,7 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
|
||||
write.pTexelBufferView = NULL;
|
||||
}
|
||||
}
|
||||
#if DISABLED(RDOC_ANDROID)
|
||||
else
|
||||
{
|
||||
VkCopyDescriptorSet copy = {VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET};
|
||||
@@ -1606,6 +1609,7 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
|
||||
descCopies.push_back(copy);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
m_pDriver->vkUpdateDescriptorSets(dev, (uint32_t)descWrites.size(), descWrites.data(),
|
||||
|
||||
Reference in New Issue
Block a user