Created attachment 136813 [details] [review]
Modification to the 'instancing' demo
The following code leads to incorrect vertex buffer reads if pVertexBindingDescriptions[n].binding != n for any given n:
binding = input_state->pVertexAttributeDescriptions[i].binding;
Instead, this function should scan the binding descriptions for a binding that has the same binding number as the vertex attribute.
This can be reproduced by reordering the vertex binding definition in the 'instancing' demo from Sascha Willems' Vulkan samples, see attachments.
Created attachment 136814 [details] [review]
Fixed on git by