#pragma once #include #include class Instance; class CommandPool { public: explicit CommandPool(uint32_t queueFamilyIndex, uint32_t bufferCount); ~CommandPool(); VkCommandPool handle = VK_NULL_HANDLE; std::vector buffers; private: void allocateBuffers(uint32_t count); };