Silently skip out of bounds declared vertex buffers. Closes #1287

* We assume that these vertex buffers are unused in any actual declared inputs
  so they can safely be treated as empty.
This commit is contained in:
baldurk
2019-02-27 13:50:05 +00:00
parent 5878787daf
commit 829e494e5e
+6
View File
@@ -1960,6 +1960,12 @@ void VulkanReplay::FetchVSOut(uint32_t eventId)
for(uint32_t vb = 0; vb < vi->vertexBindingDescriptionCount; vb++)
{
uint32_t binding = vi->pVertexBindingDescriptions[vb].binding;
if(binding >= state.vbuffers.size())
{
origVBs.push_back(bytebuf());
continue;
}
VkDeviceSize offs = state.vbuffers[binding].offs;
uint64_t len = 0;