mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 22:10:43 +00:00
Update local descriptor set tracking when replaying vkUpdateDescSets
This commit is contained in:
@@ -398,11 +398,29 @@ bool WrappedVulkan::Serialise_vkUpdateDescriptorSets(
|
||||
}
|
||||
|
||||
if(valid)
|
||||
{
|
||||
ObjDisp(device)->UpdateDescriptorSets(Unwrap(device), 1, &writeDesc, 0, NULL);
|
||||
|
||||
// update our local tracking
|
||||
vector<VkDescriptorInfo *> &bindings = m_DescriptorSetInfo[GetResourceManager()->GetOriginalID(GetResourceManager()->GetNonDispWrapper(writeDesc.destSet)->id)].currentBindings;
|
||||
|
||||
{
|
||||
RDCASSERT(writeDesc.destBinding < bindings.size());
|
||||
RDCASSERT(writeDesc.destArrayElement == 0);
|
||||
|
||||
VkDescriptorInfo *bind = bindings[writeDesc.destBinding];
|
||||
|
||||
for(uint32_t d=0; d < writeDesc.count; d++)
|
||||
bind[d] = writeDesc.pDescriptors[d];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ObjDisp(device)->UpdateDescriptorSets(Unwrap(device), 0, NULL, 1, ©Desc);
|
||||
|
||||
// don't want to implement this blindly
|
||||
RDCUNIMPLEMENTED("Copying descriptors not implemented");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user