PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
CommandPool.hpp
1#pragma once
2
3#include <volk.h>
4
5#include <thread>
6
7namespace PixelBullet
8{
9 class LogicalDevice;
10
15 {
16 public:
17 explicit CommandPool(const LogicalDevice* logicalDevice,
18 const std::thread::id& threadId = std::this_thread::get_id());
19
21
22 operator const VkCommandPool&() const
23 {
24 return m_CommandPool;
25 }
26
27 const VkCommandPool& GetCommandPool() const
28 {
29 return m_CommandPool;
30 }
31 const std::thread::id& GetThreadId() const
32 {
33 return m_ThreadId;
34 }
35
36 private:
37 VkCommandPool m_CommandPool = VK_NULL_HANDLE;
38
39 const LogicalDevice* m_LogicalDevice;
40 std::thread::id m_ThreadId;
41 };
42} // namespace PixelBullet
Class that represents a command pool.
Definition CommandPool.hpp:15
Definition LogicalDevice.hpp:13