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.
19 lines
492 B
19 lines
492 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;
|
|
uint32_t queueFamilyIndex;
|
|
VkCommandBuffer beginSingleTimeCommandBuffer();
|
|
void endSingleTimeCommandBuffer(VkCommandBuffer commandBuffer, VkQueue queue);
|
|
private:
|
|
void allocateInitialBuffers(uint32_t count);
|
|
}; |