Hello
In this article https://developer.nvidia.com/vulkan-memory-management , Nvidia advises us to use one unique buffer for vertices, indices and uniform (or other).
But I don’t know how to use them because I don’t understand how can I make them use cache efficiently.
It would be really ineficient to interleave one vertex, one indice, and one uniform value.
So, I can interleave “some of them”.
For example :
U, V1,V2,V3,…VN,I1,I2,I3,…,IN, VN+1, …
Or Buffer1 : U, V1,V2,V3,…VN,I1,I2,I3,…,IN,
Buffer2: U, V1,…VM,I1,…,IM, (but AFAIK, it is not the good solution because we want to avoid multiple buffer)
It seems good to me, but I don’t see how it could be “more cache friendly” than to have 3 buffers.
Thanks for your clarifications :).
Antoine