Wyvern: When reallocating Vulkan vertex and index buffers, only reallocate for the current thread
Wyvern: When reallocating Vulkan vertex and index buffers, only reallocate for the current thread

A bug was introduced with the switch to indexed rendering.  Indexed rendering requires
the Vulkan vertex and index buffers to be resized as necessary.  Unfortunately each thread
was resizing the buffers for all threads, which appeared to work but it only showed up a
problem when there was a very large amount of rendering to do.  The resize now happens for
each thread independently.

Example:

cargo run --bin aeolius -- --vulkan --vkdebug 14 --threads 8 --osd --divisions 64 --lodfactor 128 --cpulodfactor 128 --debug --debug

Resulted in something like:

...
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x156 for bound Buffer object 0x155, please fill the memory before using.
ERRR: da39a3ee5e6b4b0d3255bfef95601890afd80709@[DS]: Cannot submit cmd buffer using deleted buffer 0x32.
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x15a for bound Buffer object 0x159, please fill the memory before using.
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x15a for bound Buffer object 0x159, please fill the memory before using.
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x15c for bound Buffer object 0x15b, please fill the memory before using.
ERRR: da39a3ee5e6b4b0d3255bfef95601890afd80709@[DS]: Cannot submit cmd buffer using deleted buffer 0x3e.
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x162 for bound Buffer object 0x161, please fill the memory before using.
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x15e for bound Buffer object 0x15d, please fill the memory before using.
ERRR: 5d62f0ade111b550d53cb947e2dbbcd10f791a9a@[MEM]: vkCmdBindVertexBuffers(): Cannot read invalid region of memory allocation 0x100 for bound Buffer object 0xff, please fill the memory before using.
WARN: da39a3ee5e6b4b0d3255bfef95601890afd80709@[MEM]: vkCmdBindIndexBuffer(): Cannot read invalid region of memory allocation 0x164 for bound Buffer object 0x163, please fill the memory before using.
Thread 0, Frame 0:
vkQueueSubmit(queue, submitCount, pSubmits, fence) returns VkResult VK_SUCCESS (0):
...

StrayLightning/wyvern