vulkan: move StreamBuffer frame management to StreamBuffer implementation

Fixes crashes with lots of auto-batched draws in a frame.
This commit is contained in:
slime
2022-09-25 17:40:53 -03:00
parent d082e91435
commit 95bfd948ca
7 changed files with 64 additions and 89 deletions
+2
View File
@@ -49,6 +49,8 @@ struct TextureFormat
VkComponentSwizzle swizzleA = VK_COMPONENT_SWIZZLE_IDENTITY;
};
constexpr uint32_t MAX_FRAMES_IN_FLIGHT = 2;
class Vulkan
{
public: