You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
328 B

#pragma once
#include <vector>
#include <vulkan/vulkan_core.h>
class Instance;
class CommandPool {
public:
explicit CommandPool(uint32_t queueFamilyIndex, uint32_t bufferCount);
~CommandPool();
VkCommandPool handle = VK_NULL_HANDLE;
std::vector<VkCommandBuffer> buffers;
private:
void allocateBuffers(uint32_t count);
};