NarcEngine 0.1.1
C++ Vulkan game engine
 
Loading...
Searching...
No Matches
CommandPool.h
1#pragma once
2#include <vulkan/vulkan_core.h>
3
4#include "CommandBuffer.h"
5#include "core/DeviceComponent.h"
6#include "core/DeviceHandler.h"
7
8namespace narc_engine {
9 class CommandPool : public DeviceComponent
10 {
11 public:
12 CommandPool();
13 ~CommandPool();
14
15 CommandBuffer* getCommandBuffer(uint32_t index) { return &m_commandBuffers[index]; }
16
17 void createCommandBuffers(uint32_t commandBufferCount);
18
19 CommandBuffer beginSingleTimeCommands() const;
20 void endSingleTimeCommands(CommandBuffer commandBuffer) const;
21
22 private:
23 VkCommandPool m_commandPool;
24
25 std::vector<CommandBuffer> m_commandBuffers;
26 };
27}
Definition CommandBuffer.h:6