mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-29 02:41:08 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user