mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Fix descriptor write rollover to skip padding binds. Closes #2231
This commit is contained in:
@@ -1243,6 +1243,13 @@ void WrappedVulkan::vkUpdateDescriptorSets(VkDevice device, uint32_t writeCount,
|
||||
binding++;
|
||||
curIdx = 0;
|
||||
|
||||
// skip past invalid padding descriptors to get to the next real one
|
||||
while(layoutBinding->descriptorType == VK_DESCRIPTOR_TYPE_MAX_ENUM)
|
||||
{
|
||||
layoutBinding++;
|
||||
binding++;
|
||||
}
|
||||
|
||||
ref = GetRefType(layoutBinding->descriptorType);
|
||||
}
|
||||
|
||||
@@ -1649,6 +1656,13 @@ void WrappedVulkan::vkUpdateDescriptorSetWithTemplate(
|
||||
binding++;
|
||||
curIdx = 0;
|
||||
|
||||
// skip past invalid padding descriptors to get to the next real one
|
||||
while(layoutBinding->descriptorType == VK_DESCRIPTOR_TYPE_MAX_ENUM)
|
||||
{
|
||||
layoutBinding++;
|
||||
binding++;
|
||||
}
|
||||
|
||||
ref = GetRefType(layoutBinding->descriptorType);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user