CsPaint  1.0.1
cspaint_commandpool.h
1 
19 #ifndef INCLUDED_CSPAINT_COMMANDPOOL_H
20 #define INCLUDED_CSPAINT_COMMANDPOOL_H
21 
22 #include <cspaint_fwd.h>
23 
24 #include <vulkan/vulkan.hpp>
25 
26 namespace CsPaint
27 {
28 
30 {
31  public:
32  using handle = std::shared_ptr<command_pool>;
33 
34  command_pool(const vk::Device &device, uint32_t queueFamily);
35 
36  command_pool(const command_pool &) = delete;
37  void operator=(const command_pool &) = delete;
38 
39  // const vk::UniqueCommandPool &pool() const;
40 
42 
43  private:
44  const vk::Device &m_device;
45  vk::UniqueCommandPool m_pool;
46 };
47 };
48 
49 #endif
50 
std::shared_ptr< command_buffer > command_buffer_handle
Definition: cspaint_fwd.h:30
void operator=(const command_pool &) = delete
command_buffer_handle createCommandBuffer()
command_pool(const vk::Device &device, uint32_t queueFamily)
Definition: cspaint_device.h:35
std::shared_ptr< command_pool > handle
Definition: cspaint_commandpool.h:32
Definition: cspaint_commandpool.h:29
Definition: cspaint_buffer.h:26